Binary string which equals n when 1's, 2's, 4's and 8's bits have weights -1, 1, 3, 6 respectively, while the other bits have their usual weights. -1 if no such string exists.
A066327
Binary string which equals n when 1's, 2's, 4's and 8's bits have weights -1, 1, 3, 6 respectively, while the other bits have their usual weights. -1 if no such string exists.
Terms
- a(0) =0a(1) =10a(2) =101a(3) =100a(4) =110a(5) =1001a(6) =1000a(7) =1010a(8) =1101a(9) =1100a(10) =1110a(11) =-1a(12) =-1a(13) =-1a(14) =-1a(15) =10001a(16) =10000a(17) =10010a(18) =10101a(19) =10100a(20) =10110a(21) =11001a(22) =11000a(23) =11010a(24) =11101a(25) =11100a(26) =11110a(27) =-1a(28) =-1a(29) =-1
External references
- oeis: A066327