a(n) is the smallest positive integer m with exactly n zeros and exactly n ones in its binary representation and with n represented in binary as a substring of the binary representation of m.

A147762

a(n) is the smallest positive integer m with exactly n zeros and exactly n ones in its binary representation and with n represented in binary as a substring of the binary representation of m.

Terms

    a(0) =2a(1) =9a(2) =35a(3) =135a(4) =535a(5) =2103a(6) =8255a(7) =32895a(8) =131711a(9) =525695a(10) =2098687a(11) =8395263a(12) =33561599a(13) =134233087a(14) =536887295a(15) =2147516415a(16) =8590229503a(17) =34360360959a(18) =137439608831a(19) =549758566399

External references