login
Define sequence S_m by: initial term = m, reverse digits and add 1 to get next term. Entry shows S_11. This reaches a cycle of length 9 in 18 steps.
3

%I #12 Oct 13 2024 12:42:57

%S 11,12,22,23,33,34,44,45,55,56,66,67,77,78,88,89,99,100,2,3,4,5,6,7,8,

%T 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,

%U 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

%N Define sequence S_m by: initial term = m, reverse digits and add 1 to get next term. Entry shows S_11. This reaches a cycle of length 9 in 18 steps.

%H N. J. A. Sloane and others, <a href="/wiki/Sequences_of_RADD_type">Sequences of RADD type</a>, OEIS wiki.

%H <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 1).

%t NestList[FromDigits[Reverse[IntegerDigits[#]]]+1&,11,90] (* _Harvey P. Dale_, Oct 16 2011 *)

%t Join[{11,12,22,23,33,34,44,45,55,56,66,67,77,78,88,89,99,100},LinearRecurrence[{0,0,0,0,0,0,0,0,1},{2,3,4,5,6,7,8,9,10},72]] (* _Ray Chandler_, Jul 18 2015 *)

%t NestList[IntegerReverse[#]+1&,11,90] (* _Harvey P. Dale_, Oct 13 2024 *)

%Y Cf. A118510, A117831, A117230.

%K nonn,base

%O 1,1

%A _N. J. A. Sloane_, May 06 2006