OFFSET
1,8
COMMENTS
a(n) > 0 for n > 3 by Bertrand's postulate (and Chebyshev's proof of 1852). - Jonathan Vos Post, Aug 08 2013
LINKS
J. Sondow and E. Weisstein, Bertrand's Postulate, World of Mathematics
M. Tchebichef, Memoire sur les nombres premiers, J. Math. Pures Appliq. 17 (1852) 366.
EXAMPLE
a(19) = 3, the first value smaller than a previous value, because the only primes between 19 and 2 * 19 - 2 = 36 are {23,29,31}. - Jonathan Vos Post, Aug 08 2013
MATHEMATICA
a[n_] := PrimePi[2n - 2] - PrimePi[n]; a[1] = 0; Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Oct 31 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Nov 05 2002
STATUS
approved