OFFSET
1,1
COMMENTS
Let T(S,Q) be the sequence obtained by starting with S and repeatedly reversing the digits and adding Q to get the next term. This is T(1057,2). 1057 is the first S for which T(S,2) reaches a cycle of length 45. The cycle is simply the first 45 terms, which then repeat. A full period is shown.
LINKS
N. J. A. Sloane and others, Sequences of RADD type, OEIS wiki.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n) = a(n-45). - Boštjan Gec, Sep 21 2023
MATHEMATICA
NestList[IntegerReverse[#]+2&, 1057, 50] (* Harvey P. Dale, Jan 25 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Klaus Brockhaus, Jun 11 2006
STATUS
approved