// output of ./demo/seq/A039724-demo.cc: // Description: //% OEIS sequence A039724: //% Numbers in base -2. //% Also A212529: negative numbers in base -2. arg 1: 44 == n [Convert numbers 0,1,2,...,n] default=44 arg 2: 0 == nq [Whether to convert numbers 0,-1,-2,...,-n] default=0 0 0 1 1 2 110 3 111 4 100 5 101 6 11010 7 11011 8 11000 9 11001 10 11110 11 11111 12 11100 13 11101 14 10010 15 10011 16 10000 17 10001 18 10110 19 10111 20 10100 21 10101 22 1101010 23 1101011 24 1101000 25 1101001 26 1101110 27 1101111 28 1101100 29 1101101 30 1100010 31 1100011 32 1100000 33 1100001 34 1100110 35 1100111 36 1100100 37 1100101 38 1111010 39 1111011 40 1111000 41 1111001 42 1111110 43 1111111 44 1111100