login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Nonnegative integers that, when written in binary, are palindromes with a middle run of 0's.
2

%I #13 May 20 2024 02:08:36

%S 0,5,9,17,27,33,51,65,85,99,119,129,165,195,231,257,297,325,365,387,

%T 427,455,495,513,585,645,717,771,843,903,975,1025,1105,1161,1241,1285,

%U 1365,1421,1501,1539,1619,1675,1755,1799,1879,1935,2015,2049,2193,2313,2457

%N Nonnegative integers that, when written in binary, are palindromes with a middle run of 0's.

%H John Tyler Rascoe, <a href="/A175543/b175543.txt">Table of n, a(n) for n = 1..10000</a>

%t fQ[n_] := Block[{id = IntegerDigits[n, 2]}, id == Reverse@ id && id[[ Ceiling[ Length@ id/2] ]] == 0]; Select[ Range[0, 2564], fQ@# &] (* _Robert G. Wilson v_, Jun 27 2010 *)

%Y Cf. A006995, A175544.

%K base,nonn

%O 1,2

%A _Leroy Quet_, Jun 23 2010

%E a(9)-a(51) from _Robert G. Wilson v_, Jun 27 2010