OFFSET
1,2
COMMENTS
See A060756 for the case they are excluded. - R. J. Mathar, Nov 28 2007
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
A related page [Broken link]
[Warning: As of March 2018 this site appears to have been hacked. Proceed with great caution. The original content should be retrieved from the Wayback machine and added here. - N. J. A. Sloane, Mar 29 2018]
Wilkinson, Erdos' proof of Bertrand's postulate, MathForum(AT)Drexel.
EXAMPLE
a(3)=7 because 7 is the least integer such that between 7 and 14 there are 3 primes.
MATHEMATICA
im[n_]:=Module[{m=1}, While[PrimePi[2m]-(PrimePi[m-1])!=n, m++]; m]; Array[ im, 60] (* Harvey P. Dale, May 19 2012 *)
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (mapMaybe)
a059316 n = a059316_list !! n
a059316_list = map (+ 1) $ mapMaybe (`elemIndex` a035250_list) [1..]
-- Reinhard Zumkeller, Jan 05 2012
CROSSREFS
KEYWORD
nice,nonn
AUTHOR
Felice Russo, Jan 25 2001
STATUS
approved