login
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 different valued digits (0 and 1).
2

%I #7 Mar 11 2014 01:32:49

%S 5,9,10,11,13,17,18,19,20,21,22,23,25,26,27,29,33,34,35,36,37,38,39,

%T 40,41,42,43,44,45,46,49,50,51,52,53,54,55,57,58,59,65,66,67,68,69,70,

%U 71,72,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,97

%N 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 different valued digits (0 and 1).

%C All terms of this sequence are contained in sequence A101082. (47 is the first integer that is in A101082, but is not in this sequence.)

%e 29 in binary is 11101. There are two substrings in this that are tied for longest palindromic substring, 111 and 101. Since 101 contains both a 0 and 1's, then 29 is in this sequence.

%Y Cf. A050430, A166935, A174196.

%K base,nonn

%O 1,1

%A _Leroy Quet_, Oct 24 2009

%E Extended by _Ray Chandler_, Mar 11 2010