OFFSET
1,2
EXAMPLE
a(29) = 12 because 29 base 3 = A007089(29) = 1002 and upon deleting 0's, this becomes 12. Note the fixed points (input in decimal, output in zeroless base 3) begin 1, 2, 21, 111, ... with for example, 21 base 10 becoming 21 base 3 = A007089(21) = 210 and upon deleting 0's, this becomes 21 again; and 111 base 10 becoming A007089(111) = 11010 and upon deleting 0's, this becomes 111 again.
MATHEMATICA
Table[FromDigits[DeleteCases[IntegerDigits[n, 3], 0]], {n, 60}] (* Harvey P. Dale, Oct 23 2011 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, May 26 2008
STATUS
approved