OFFSET
1,1
COMMENTS
The last term I encountered was a(130) = 144. Is this sequence finite? Is a(130) = 144 the final term?
EXAMPLE
For n=7, the list of values in the trajectory is {7,49,97,130,10,1,1,1,1,1,1,1,...}; max = 130 > 7 = n, so 7 is in the sequence.
For n=32, list = {32,13,10,1,1,...}; max = 32 = n, so 32 is not in the sequence.
The sequence includes all positive integers < 145 except {1,10,13,23,31,32,44,100,103,109,129,130,133,139}.
MATHEMATICA
ed[x_] :=IntegerDigits[x]; func[x_] :=Apply[Plus, ed[x]^2]; itef[x_, ho_] :=NestList[id2, x, 100]; ta={{0}}; Do[s=Max[Union[itef[w, 100]]]; If[Greater[s, w], Print[w]; ta=Append[ta, w]], {w, 1, 10000000}]; Delete[ta, 1]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Nov 12 2004
EXTENSIONS
Edited by Jon E. Schoenfield, Nov 26 2017
STATUS
approved