login
30 'Reverse and Add' steps are needed to reach a palindrome.
1

%I #10 Sep 24 2013 06:54:48

%S 10548,11538,12528,13518,14508,20547,21537,22527,23517,24507,30546,

%T 31536,32526,33516,34506,40545,40849,41535,41839,42525,42829,43515,

%U 43819,44505,44809,44899,45889,46879,47869,48859,49849,50544,50848

%N 30 'Reverse and Add' steps are needed to reach a palindrome.

%C The number of steps starts at 0, so palindromes (cf. A002113) are excluded. 30 is a record (cf. A065199) of the number of 'Reverse and Add' steps needed to reach a palindrome.

%H Vincenzo Librandi, <a href="/A065319/b065319.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Res#RAA">Index entries for sequences related to Reverse and Add!</a>

%t lenQ[n_]:= Length[NestWhileList[# + FromDigits[Reverse[IntegerDigits[#]]]&, n, #! = FromDigits[Reverse[IntegerDigits[#]]]&, 1, 31]] == 31; Select[Range[10000], lenQ] (* _Vincenzo Librandi_, Sep 24 2013 *)

%Y Cf. A002113, A065198, A065199, A065318.

%K nonn,base

%O 1,1

%A _Klaus Brockhaus_, Oct 30 2001

%E Changed offset from 0 to 1 by _Vincenzo Librandi_, Sep 24 2013