login
Numbers written in binary balanced system (A270885) have exactly three zeros.
2

%I #13 Apr 09 2016 17:17:14

%S 8,12,14,15,33,34,35,36,38,39,40,44,46,47,49,50,51,52,54,55,57,58,59,

%T 61,133,137,138,139,141,145,146,147,148,150,151,153,154,155,157,161,

%U 162,163,164,166,167,168,172,174,175,177,178,179,180,182,183,185,186

%N Numbers written in binary balanced system (A270885) have exactly three zeros.

%H Vladimir Shevelev, <a href="http://arxiv.org/abs/1603.04434">Two analogs of Thue-Morse sequence</a>, arXiv:1603.04434 [math.NT], 2016.

%e 14 = 2^3+2^2+2 = 2^4-2^3+2^3-2^2+2^2-2 = 2^4-2 = 100-10_b. So, 14 is a member.

%t Select[Range@ 186, Count[Plus @@ {PadRight[#, Length@ # + 1], -PadLeft[#, Length@ # + 1]} &@ IntegerDigits[#, 2], 0] == 3 &] (* _Michael De Vlieger_, Mar 25 2016 *)

%Y Cf. A270885, A270886, A270887.

%K nonn,base

%O 1,1

%A _Vladimir Shevelev_, Mar 25 2016

%E More terms from _Peter J. C. Moses_, Mar 25 2016