OFFSET
1,2
COMMENTS
After 1 step enters a cycle of length 13.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
N. J. A. Sloane and others, Sequences of RADD type, OEIS wiki.
Index entries for periodic sequences, period 13.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n) = a(n-13) for n >= 15. - Wesley Ivan Hurt, Sep 04 2022
MATHEMATICA
NestList[IntegerReverse[#]+18&, 1, 60] (* or *) PadRight[{1}, 120, {1000, 19, 109, 919, 937, 757, 775, 595, 613, 334, 451, 172, 289}] (* Harvey P. Dale, Feb 19 2023 *)
PROG
(PARI) a(n)=if(n>1, 174531713779050249325533374699815341970\1001^(n%13)%1001, 1) \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
base,nonn,easy,changed
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 08 2006
STATUS
approved
