OFFSET
0,3
LINKS
David F. Marrs, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
11 is 102 in base 3, and reversing it gives 201 = a(11).
MAPLE
a:= n-> parse(cat(convert(n, base, 3)[])):
seq(a(n), n=0..75); # Alois P. Heinz, Jun 17 2018
MATHEMATICA
Table[FromDigits@ Reverse@ IntegerDigits[n, 3], {n, 0, 54}] (* Giovanni Resta, Jun 13 2018 *)
PROG
(PARI) a(n) = fromdigits(Vecrev(digits(n, 3)), 10); \\ Michel Marcus, Jun 13 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
David F. Marrs, Jun 13 2018
STATUS
approved