OFFSET
0,1
COMMENTS
This method doesn't give a distinct encoding of the nonnegative numbers as 54 appears three times and 144 and 216 many more times.
FORMULA
MAPLE
MATHEMATICA
Table[2^Count[Table[((IntegerDigits[n, 2]) /. 0 -> 2) /. 1 -> 3, {n, 0, 50}][[n]], 2]*3^Count[Table[(( IntegerDigits[n, 2]) /. 0 -> 2) /. 1 -> 3, {n, 0, 50}][[n]], 3], {n, 1, 51}]
Table[2^DigitCount[n, 2, 0] 3^DigitCount[n, 2, 1], {n, 0, 50}] (* Harvey P. Dale, Oct 29 2012 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Roger L. Bagula, Apr 28 2010
STATUS
approved