// output of ./demo/seq/A212494-demo.cc: // Description: //% OEIS sequence A212494: //% Base 2i representation of n. //% Also A212542: base 2i representation of negative numbers. 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 2 3 3 4 10300 5 10301 6 10302 7 10303 8 10200 9 10201 10 10202 11 10203 12 10100 13 10101 14 10102 15 10103 16 10000 17 10001 18 10002 19 10003 20 20300 21 20301 22 20302 23 20303 24 20200 25 20201 26 20202 27 20203 28 20100 29 20101 30 20102 31 20103 32 20000 33 20001 34 20002 35 20003 36 30300 37 30301 38 30302 39 30303 40 30200 41 30201 42 30202 43 30203 44 30100