OFFSET
1,1
COMMENTS
Conjecture: There will always be an x such that a(x+1) - a(x) = k for k=1,2.. However, x becomes large when k > 70.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
Prime(n) = the n-th prime. Pi(x) = number of primes <= x.
MATHEMATICA
Table[Prime[n]-PrimePi[n], {n, 60}] (* Harvey P. Dale, Mar 11 2012 *)
PROG
(PARI) primexmpix(n, k) = { local(x, y, z); for(x=1, n, y=prime(x)-primepi(x); z=prime(x+1)-primepi(x+1); if(z-y == k, print1(y", ") ) ) }
(PARI) a(n)=prime(n)-primepi(n) \\ Charles R Greathouse IV, May 29 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Oct 22 2005
STATUS
approved