OFFSET
1,2
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..4662
EXAMPLE
The sequence is probably finite and given in full. a(1)=1: the fixed point list from m=a(1) to composite[m] is: {1,2,3,4}, the length is 4; largest term seems to be a(4662)=77629, with transient list {77629,85259,85933,85990}. The terms appears in bursts of consecutive integers. A chain of 37 consecutive numbers starts at 28046.
MATHEMATICA
lfp[x_] := Length[FixedPointList[x+PrimePi[ # ]+1&, x]]-1 Do[s=lfp[n]; If[Equal[s, 4], Print[n]], {n, 1, 10000000}]
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Jul 31 2002
EXTENSIONS
Offset corrected by Sean A. Irvine, Nov 28 2024
STATUS
approved