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.

A166936 Positive integers n such that when they are written in binary, the longest palindromic substring (or at least one of which that is tied for longest) in binary n begins and ends with a 0.

Original entry on oeis.org

2, 4, 8, 10, 12, 16, 20, 22, 24, 26, 32, 36, 38, 40, 42, 44, 46, 48, 52, 56, 58, 64, 68, 72, 74, 76, 77, 78, 80, 82, 84, 88, 89, 92, 94, 96, 100, 104, 106, 110, 112, 116, 128, 136, 137, 138, 140, 142, 144, 145, 148, 149, 150, 152, 154, 156, 157, 158, 160, 162, 164
Offset: 1

Views

Author

Leroy Quet, Oct 24 2009

Keywords

Crossrefs

Programs

  • Mathematica
    lps0Q[n_]:=Module[{ss=Select[Subsequences[IntegerDigits[n,2]],#==Reverse[#]&],len},len=Max[Length/@ss];AnyTrue[Select[ss,Length[#]==len&],#[[1]]==0&]]; Select[Range[200],lps0Q] (* Harvey P. Dale, Apr 27 2025 *)

Extensions

Extended by Ray Chandler, Mar 11 2010