Binary string which equals n when 1's, 2's, 4's and 8's bits have weights 1, 2, 4, 2 respectively, while the other bits have their usual weights. -1 if no such string exists.

A066334

Binary string which equals n when 1's, 2's, 4's and 8's bits have weights 1, 2, 4, 2 respectively, while the other bits have their usual weights. -1 if no such string exists.

Terms

    a(0) =0a(1) =1a(2) =10a(3) =11a(4) =100a(5) =101a(6) =110a(7) =111a(8) =1110a(9) =1111a(10) =-1a(11) =-1a(12) =-1a(13) =-1a(14) =-1a(15) =-1a(16) =10000a(17) =10001a(18) =10010a(19) =10011a(20) =10100a(21) =10101a(22) =10110a(23) =10111a(24) =11110a(25) =11111a(26) =-1a(27) =-1a(28) =-1a(29) =-1

External references