OFFSET
0,2
COMMENTS
This calculation relies on the fact that Pi(2*m) - Pi(m) > m/(3*log(m)) for m >= 5. It can be shown that a(n) is never zero, i.e., every nonnegative integer is in sequence A060715.
REFERENCES
P. Ribenboim, The Little Book of Big Primes. Springer-Verlag, 1991, p. 140.
LINKS
Eric Weisstein's World of Mathematics, Bertrand's Postulate.
EXAMPLE
a(22)=1 because there are 22 primes between 120 and 240 (namely, prime numbers p(31)=127 through p(52)=239), and in no other case are there exactly 22 primes between m and 2m exclusively.
CROSSREFS
KEYWORD
nonn
AUTHOR
Harry J. Smith, May 15 2003
STATUS
approved