cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A066124 Numbers that in base 2 need three 'Reverse and Add' steps to reach a palindrome.

Original entry on oeis.org

44, 50, 54, 58, 72, 92, 98, 118, 154, 156, 184, 194, 206, 214, 216, 234, 242, 272, 296, 316, 364, 376, 386, 406, 466, 470, 478, 502, 564, 566, 570, 572, 626, 628, 634, 688, 690, 696, 716, 732, 748, 752, 770, 790, 798, 806, 814, 820, 822, 824, 854, 870, 880
Offset: 1

Views

Author

Klaus Brockhaus, Dec 08 2001

Keywords

Comments

The analog of A065208 in base 2. The number of steps starts at 0, so palindromes (cf. A006995) are excluded.
Numbers k such that A066057(k) = 3. - Andrew Howroyd, Dec 05 2024

Crossrefs

Programs

  • PARI
    isok(n,s=3)={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

Extensions

Offset changed from 0 to 1 by Harry J. Smith, Feb 01 2010