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

A066329

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

Terms

    a(0) =0a(1) =1a(2) =11a(3) =100a(4) =101a(5) =1000a(6) =1001a(7) =1011a(8) =1100a(9) =1101a(10) =1111a(11) =-1a(12) =-1a(13) =-1a(14) =-1a(15) =-1a(16) =10000a(17) =10001a(18) =10011a(19) =10100a(20) =10101a(21) =11000a(22) =11001a(23) =11011a(24) =11100a(25) =11101a(26) =11111a(27) =-1a(28) =-1a(29) =-1

External references