A118518 Define sequence S_m by: initial term = m, reverse digits and add 3 to get next term. Entry shows S_2. This reaches a cycle of length 6 in 3 steps.
2, 5, 8, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80, 11, 14, 44, 47, 77, 80
Offset: 1
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, 1).
Programs
-
Mathematica
Join[{2,5,8},LinearRecurrence[{0,0,0,0,0,1},{11,14,44,47,77,80},66]] (* Ray Chandler, Jul 18 2015 *) NestList[IntegerReverse[#]+3&,2,70] (* Requires Mathematica version 10 or later *) (* or *) PadRight[{2,5,8},70,{47,77,80,11,14,44}] (* Harvey P. Dale, Jun 02 2017 *)