Number of numbers < n whose binary representation has the same number of 0's and 1's as n does.

A079071

Number of numbers < n whose binary representation has the same number of 0's and 1's as n does.

Terms

    a(0) =0a(1) =0a(2) =0a(3) =0a(4) =0a(5) =0a(6) =1a(7) =0a(8) =0a(9) =0a(10) =1a(11) =0a(12) =2a(13) =1a(14) =2a(15) =0a(16) =0a(17) =0a(18) =1a(19) =0a(20) =2a(21) =1a(22) =2a(23) =0a(24) =3a(25) =3a(26) =4a(27) =1a(28) =5a(29) =2

External references