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.

A154810 Nonpalindromic numbers with binary digits only.

Original entry on oeis.org

10, 100, 110, 1000, 1010, 1011, 1100, 1101, 1110, 10000, 10010, 10011, 10100, 10110, 10111, 11000, 11001, 11010, 11100, 11101, 11110, 100000, 100010, 100011, 100100, 100101, 100110, 100111, 101000, 101001, 101010, 101011, 101100, 101110, 101111
Offset: 1

Views

Author

Omar E. Pol, Jan 24 2009

Keywords

Comments

A154809 written in base 2.

Crossrefs

Programs

  • Mathematica
    Map[FromDigits, Select[IntegerDigits[Range[50], 2], !PalindromeQ[#] &]] (* Paolo Xausa, Jul 24 2024 *)
  • Python
    def A154810(n):
        def f(x): return n+(x>>(l:=x.bit_length())-(k:=l+1>>1))-(int(bin(x)[k+1:1:-1],2)>(x&(1<Chai Wah Wu, Jul 24 2024

Formula

a(n) = A007088(A154809(n)). - Michel Marcus, Jul 24 2024

Extensions

Extended by Ray Chandler, Mar 14 2010