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”).

A062773
Index of the smallest prime which follows square of n-th prime.
1
3, 5, 10, 16, 31, 40, 62, 73, 100, 147, 163, 220, 264, 284, 330, 410, 488, 520, 610, 676, 706, 812, 887, 1001, 1164, 1253, 1295, 1382, 1424, 1524, 1878, 1977, 2142, 2191, 2490, 2548, 2730, 2916, 3044, 3242, 3437, 3513, 3869, 3946, 4090, 4165, 4628
OFFSET
1,1
LINKS
FORMULA
a(n) = pi( nextprime( prime(n)^2 ) ).
a(n) = A000720(A062772(n)). - Michel Marcus, Jun 24 2014
EXAMPLE
100th prime, 541 immediately follows 529, square of 9th prime, a(9)=100.
MATHEMATICA
PrimePi[NextPrime[#]]&/@(Prime[Range[50]]^2) (* Harvey P. Dale, Apr 12 2023 *)
PROG
(PARI) a(n) = { primepi(prime(n)^2) + 1 } \\ Harry J. Smith, Aug 10 2009
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Jul 18 2001
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Aug 10 2009
STATUS
approved