A166935 A positive integer n is included if the longest palindromic substring (or at least one of which that is tied for longest) in the binary representation of n consists of identically valued digits (all 0's or all 1's).
1, 2, 3, 4, 6, 7, 8, 12, 14, 15, 16, 23, 24, 28, 29, 30, 31, 32, 40, 47, 48, 56, 58, 60, 61, 62, 63, 64, 79, 80, 95, 96, 104, 112, 116, 120, 121, 122, 124, 125, 126, 127, 128, 159, 160, 176, 191, 192, 208, 223, 224, 232, 240, 242, 244, 248, 249, 250, 251, 252, 253, 254
Offset: 1
Examples
29 in binary is 11101. There are two substrings in this that are tied for longest palindromic substring, 111 and 101. Since 111 contains only 1's, then 29 is in this sequence.
Extensions
Extended by Ray Chandler, Mar 11 2010