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

A066330

Binary string which equals n when 1's, 2's, 4's and 8's bits have weights 1, 2, 4, 5 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) =1000a(6) =1001a(7) =1010a(8) =1011a(9) =1100a(10) =1101a(11) =1110a(12) =1111a(13) =-1a(14) =-1a(15) =-1a(16) =10000a(17) =10001a(18) =10010a(19) =10011a(20) =10100a(21) =11000a(22) =11001a(23) =11010a(24) =11011a(25) =11100a(26) =11101a(27) =11110a(28) =11111a(29) =-1

External references