A118521 Define sequence S_m by: initial term = m, reverse digits and add 3 to get next term. Entry shows S_6. This reaches a cycle of length 6 in 2 steps.
6, 9, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90, 12, 24, 45, 57, 78, 90
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
NestList[FromDigits[Reverse[IntegerDigits[#]]]+3&,6,70] (* Harvey P. Dale, Sep 25 2012 *) Join[{6,9},LinearRecurrence[{0,0,0,0,0,1},{12,24,45,57,78,90},66]] (* Ray Chandler, Jul 18 2015 *) PadRight[{6,9},100,{78,90,12,24,45,57}] (* Harvey P. Dale, Oct 03 2015 *)
Formula
a(n)=A118519(n+1). [From R. J. Mathar, Aug 08 2008]