Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117767
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117767 a(n) is the differences between the smallest square greater than prime(n) and the largest square less than prime(n), where prime(n) = A000040(n) is the n-th prime number. +0
1
3, 3, 5, 5, 7, 7, 9, 9, 9, 11, 11, 13, 13, 13, 13, 15, 15, 15, 17, 17, 17, 17, 19, 19, 19, 21, 21, 21, 21, 21, 23, 23, 23, 23, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 33, 33, 33, 33, 33, 33, 33, 35, 35, 35, 35, 35, 37, 37, 37, 37, 37, 37 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n) = 2*floor(sqrt(prime(n)))+1 - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 21 2006

EXAMPLE

The 7-th prime number is 17, which is between the consecutive squares 16 and 25, so a(7) = 25-16 = 9.

MATHEMATICA

a[n_]:=2Floor[Sqrt[Prime[n]]]+1

PROGRAM

(PARI) { forprime(p=2, 200, f = floor(sqrt(p)) ; print1(2*f+1, ", ") ; ) ; } - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 21 2006

CROSSREFS

Cf. A000040.

Cf. a(n) = 2*A000006(n) + 1.

Sequence in context: A088524 A129337 A133909 this_sequence A063196 A127630 A109613

Adjacent sequences: A117764 A117765 A117766 this_sequence A117768 A117769 A117770

KEYWORD

easy,nonn

AUTHOR

Odimar Fabeny (aifab(AT)yahoo.com.br), Apr 15 2006

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 21 2006

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Jun 03 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research