OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..900
MATHEMATICA
g[ n_Integer ] := (k = n + PrimePi[ n ] + 1; While[ k - PrimePi[ k ] - 1, k++ ]; k); NestList[ g, 13, 45 ]
PROG
(PARI) lista(nn) = {print1(a = 13, ", "); nb = 0; forcomposite(c=1, nn, nb++; if (nb==a, print1(c, ", "); a = c); ); } \\ Michel Marcus, May 14 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jan 29 2001
STATUS
approved