The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A066145 In base 2, records for the number of 'Reverse and Add' steps needed to reach a palindrome. 5
 0, 1, 2, 4, 5, 11, 21, 32, 37, 46, 48, 49, 53, 89, 99, 142, 147, 273 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS The analog of A065199 in base 2. A066144 gives the corresponding starting points. LINKS EXAMPLE Starting with 74, 11 'Reverse and Add' steps are needed to reach a palindrome; starting with n < 74, at most 5 steps are needed. MATHEMATICA limit = 10^3; (* Assumes that there is no palindrome if none is found before "limit" iterations *) best = -1; lst = {}; For[n = 0, n <= 10000, n++, np = n; i = 0; While[np != IntegerReverse[np, 2] && i < limit,   np = np + IntegerReverse[np, 2]; i++]; If[i < limit && i > best, best = i; AppendTo[lst, i]]]; lst (* Robert Price, Oct 14 2019 *) CROSSREFS Cf. A065199, A062130, A066057, A066058, A066059, A066144. Sequence in context: A049913 A223220 A113058 * A095022 A279050 A317828 Adjacent sequences:  A066142 A066143 A066144 * A066146 A066147 A066148 KEYWORD base,more,nonn AUTHOR Klaus Brockhaus, Dec 08 2001 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified November 28 13:47 EST 2021. Contains 349413 sequences. (Running on oeis4.)