Difference between the largest and smallest number having in binary representation the same number of 0's and 1's as n.

A073139

Difference between the largest and smallest number having in binary representation the same number of 0's and 1's as n.

Terms

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

External references