OFFSET
0,41
EXAMPLE
394 is a term of A063049. One 'Reverse and Add!' operation applied to 394 leads to a term (887) in the trajectory of 196, so the corresponding term of the present sequence is 1.
MATHEMATICA
limit = 10^3; x = NestList[ # + IntegerReverse[#] &, 196, limit];
y = Select[Range[197, 4942],
Intersection[NestList[ # + IntegerReverse[#] &, #, limit],
x] != {} &];
Table[
Length@NestWhileList[# + IntegerReverse[#] &,
y[[i]], ! MemberQ[x, #] &] - 1, {i, Length[y]}]
(* Robert Price, Oct 21 2019 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Klaus Brockhaus, Jul 07 2001
STATUS
approved