login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A061265 Number of squares between n-th prime and (n+1)st prime. 5
0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

If n-th prime is a member of A053001 then a(n) is at least 1. If not, then a(n) = 0.

Legendre's conjecture (still open) that there is always a prime between n^2 and (n+1)^2 is equivalent to conjecturing that a(n)<=1 for all n. - Vladeta Jovovic (vladeta(AT)eunet.rs), May 01 2003

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,2000

FORMULA

a(n) = floor(sqrt(prime(n+1)))-floor(sqrt(prime(n))). - Vladeta Jovovic (vladeta(AT)eunet.rs), May 01 2003

EXAMPLE

a(3) = 0 as there is no square between 5, the third prime and 7, the fourth prime. a(4) = 1, as there is a square '9' between the 4th prime 7 and the 5th prime 11.

PROG

(PARI) { n=0; q=2; forprime (p=3, prime(2001), write("b061265.txt", n++, " ", floor(sqrt(p))-floor(sqrt(q))); q=p ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jul 20 2009]

CROSSREFS

Cf. A053001.

Cf. A038107.

Sequence in context: A173922 A141743 A112416 * A139312 A173923 A125122

Adjacent sequences:  A061262 A061263 A061264 * A061266 A061267 A061268

KEYWORD

nonn,base

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Apr 24 2001

EXTENSIONS

Extended by Patrick De Geest (pdg(AT)worldofnumbers.com), Jun 05 2001.

OFFSET changed from 0,1 to 1,1 by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jul 20 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 08:12 EST 2012. Contains 205451 sequences.