OFFSET
1,1
FORMULA
See Program.
EXAMPLE
The sequence is most probably complete. a(1)=4: the fixed point list from m=a(1) to composite[m] is: {4,7,9}, the length is 3; last term is a(64)=1142 with transient list {1142,1332,1360}.
MATHEMATICA
lfp[x_] := Length[FixedPointList[x+PrimePi[ # ]+1&, x]]-1 Do[s=lfp[n]; If[Equal[s, 3], Print[n]], {n, 1, 10000000}]
CROSSREFS
KEYWORD
fini,full,nonn
AUTHOR
Labos Elemer, Jul 29 2002
STATUS
approved