login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A122933
a(n)-th prime is equal to the sum_{i=1..k} pi(i) for some k (cf. A000720).
1
2, 3, 5, 8, 9, 12, 14, 18, 23, 28, 42, 58, 61, 70, 91, 95, 101, 103, 132, 142, 150, 161, 167, 170, 248, 347, 361, 382, 409, 412, 424, 463, 476, 514, 532, 561, 645, 666, 710, 724, 736, 788, 795, 869, 999, 1010, 1083, 1106, 1124, 1136, 1143, 1149, 1163, 1205, 1244
OFFSET
1,1
COMMENTS
A046992 is sum_{k=1..n} pi(k). A122516 are the members of A046992 which are primes.
Primes in A046992[n] are {3,5,11,19,23,37,43,61,...} = A122516[n] = Prime[a(n)].
FORMULA
a(n) = PrimePi[ A122516[n] ].
EXAMPLE
A122516[n] begins {3,5,11,19,23,37,43,61,83,107,181,271,...}.
So a(1) = 2 because A122516[1] 3 = Prime[2].
a(2) = 3 because A122516[2] = 5 = Prime[3].
a(3) = 5 because A122516[3] = 11 = Prime[5].
MATHEMATICA
PrimePi[Flatten[Table[If[PrimeQ[Sum[ PrimePi[n], {n, 1, m}]], Sum[PrimePi[n], {n, 1, m}], {}], {m, 1, 500}]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Sep 20 2006
EXTENSIONS
Edited by Robert G. Wilson v, Sep 28 2006
STATUS
approved