OFFSET
0,3
EXAMPLE
a(4) is 102 because the base-3 representation of 4 is 11 and the base-3 representation of the decimal number 11 is 102.
MATHEMATICA
f3[a_]:=FromDigits[IntegerDigits[a, 3]]; Table[f3[f3[n]], {n, 0, 37}] (* James C. McMahon, Dec 25 2024 *)
PROG
(PARI) a(n) = fromdigits(digits(fromdigits(digits(n, 3)), 3)); \\ Michel Marcus, Dec 25 2024
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Anonymous, Dec 18 2006
EXTENSIONS
a(6) inserted and a(15)-a(37) from James C. McMahon, Dec 25 2024
STATUS
approved