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.

A081433 Numbers n such that RevBinary(RevDecimal(n))=RevDecimal(RevBinary(n)), where RevDecimal(n) is the decimal reversal of n (A004086) and RevBinary(n) is the binary reversal of n (A030101).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 33, 51, 66, 99, 165, 313, 516, 535, 561, 585, 615, 626, 717, 759, 858, 929, 957, 1241, 1421, 2112, 2482, 2552, 2842, 3579, 4224, 5485, 5845, 6336, 7447, 8448, 9009, 9753, 11051, 12631, 13621, 15011, 15351, 15375
Offset: 1

Views

Author

Reinhard Zumkeller, Mar 20 2003

Keywords

Comments

A030101(A004086(a(n)))=A004086(A030101(a(n))), A081431(a(n))=A081432(a(n)).

Crossrefs

Programs

  • Python
    def ok(n): return int(bin(int(str(n)[::-1]))[:1:-1], 2) == int(str(int(bin(n)[:1:-1], 2))[::-1])
    print([k for k in range(2**14) if ok(k)]) # Michael S. Branicky, Jan 30 2023