login
A101184
a(n) = n + pi(n) + pi(pi(n)) + pi(pi(pi(n))) + pi(pi(pi(pi(n)))) + ...
2
1, 3, 6, 7, 11, 12, 14, 15, 16, 17, 22, 23, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 66, 67, 69, 70, 71, 72, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 85, 86, 90, 91, 93, 94, 95, 96, 97, 98, 101, 102, 103, 104
OFFSET
1,2
LINKS
MATHEMATICA
f[n_] := Plus @@ FixedPointList[ PrimePi, n]; Table[ f[n], {n, 70}]
PROG
(PARI) a(n) = { my (v=0); while (n, v+=n; n=primepi(n)); v } \\ Rémy Sigrist, Jun 07 2020
CROSSREFS
Cf. A000720, Complement in A101185.
Sequence in context: A292046 A051146 A136272 * A087643 A248150 A022544
KEYWORD
nonn
AUTHOR
STATUS
approved