OFFSET
4,7
LINKS
Michael De Vlieger, Table of n, a(n) for n = 4..10000
EXAMPLE
For n=4: a(4) = composite(4) mod (4-Pi(4)-1) = 9 mod 1 = 0; n=19:
a(19) = composite(19) mod (19-Pi(19)-1) = 30 mod 10 = 0.
MATHEMATICA
f[x_] := FixedPoint[x+PrimePi[ # ]+1&, x] Table[Mod[f[w], w-PrimePi[w]-1], {w, 1, 128}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 30 2002
EXTENSIONS
Edited by Michael De Vlieger, Nov 05 2020
STATUS
approved