A118295 Start with 20 and repeatedly reverse the digits and add 1 to get the next term.
20, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10
Offset: 1
Examples
After a(9) = 10 we get a(10) = (reversed digits of a(9)) + 1 = 01 + 1 = 2. - _David A. Corneth_, Jan 08 2024
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,1).
Programs
-
Mathematica
PadRight[{20},100,Range[2,10]] (* Paolo Xausa, Jan 08 2024 *)
-
PARI
a(n) = if(n == 1, return(20)); return(((n-1)%9) + 2) \\ David A. Corneth, Jan 08 2024
Comments