login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A066123
Numbers that in base 2 need two 'Reverse and Add' steps to reach a palindrome.
2
11, 13, 23, 29, 39, 43, 53, 55, 57, 59, 69, 79, 81, 87, 91, 109, 117, 121, 133, 143, 151, 161, 167, 171, 173, 175, 179, 181, 183, 205, 207, 213, 215, 229, 233, 235, 237, 239, 241, 243, 245, 247, 261, 265, 277, 287, 289, 303, 311, 321, 327, 337, 343, 347, 349
OFFSET
1,1
COMMENTS
The analog of A065207 in base 2. The number of steps starts at 0, so palindromes (cf. A006995) are excluded.
Numbers k such that A066057(k) = 2. - Andrew Howroyd, Dec 05 2024
PROG
(PARI) isok(n, s=2)={for(k=0, s, my(r=fromdigits(Vecrev(binary(n)), 2)); if(r==n, return(k==s)); n += r); 0} \\ Andrew Howroyd, Dec 05 2024
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Klaus Brockhaus, Dec 08 2001
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Feb 01 2010
STATUS
approved