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

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A066144 In base 2: n sets a new record for the number of 'Reverse and Add' steps needed to reach a palindrome starting with n. 5
 0, 2, 11, 19, 20, 74, 398, 779, 1062, 2329, 4189, 4280, 11278, 19962, 98318, 135137, 1051360, 1592930 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS The analog of A065198 in base 2. Integers like 22, for which a palindrome is never reached (cf. A066059), are of course disregarded. A066145 gives the corresponding records. LINKS EXAMPLE Starting with 74, 11 'Reverse and Add' steps are needed to reach a palindrome; starting with n < 74, less (at most 5) steps are needed. MATHEMATICA limit = 10^4; (* Assumes that there is no palindrome if none is found before "limit" iterations *) best = -1; Select[Range[0, 100000], (np = #; i = 0;    While[np != IntegerReverse[np, 2] && i < limit,     np = np + IntegerReverse[np, 2]; i++]; If[i >= limit, False, If[i > best, best = i; True]]) &] (* Robert Price, Oct 14 2019 *) CROSSREFS Cf. A065198, A062130, A066057, A066058, A066059, A066145. Sequence in context: A030551 A121848 A074926 * A102343 A023173 A018443 Adjacent sequences:  A066141 A066142 A066143 * A066145 A066146 A066147 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 December 2 17:59 EST 2021. Contains 349445 sequences. (Running on oeis4.)