A066335 Binary string which equals n when 1's and 2's bits have negative weights.
0, 111, 110, 101, 100, 1011, 1010, 1001, 1000, 1111, 1110, 1101, 1100, 10011, 10010, 10001, 10000, 10111, 10110, 10101, 10100, 11011, 11010, 11001, 11000, 11111, 11110, 11101, 11100, 100011, 100010, 100001, 100000, 100111, 100110, 100101
Offset: 0
Examples
For example: 4-2-1 = 1, so a(1) = 111; 4-2+0 = 2 so a(2) = 110; 4+0-1 = 3 so a(3) = 101; 4+0+0 = 4 so a(4) = 100, etc.
References
- Morris M. Mano, Digital Design, Prentice Hall, 2002. p. 20.
Crossrefs
A120634 is the decimal equivalent of these numbers in binary.
Extensions
More terms from Sascha Kurz, Jan 28 2003
Corrected and extended by Joshua Zucker, Jun 21 2006