OFFSET
0,3
LINKS
EXAMPLE
A353824(8) = 7, so a(7) = 8.
PROG
(PARI) a(n) = { my (d=digits(n, 3), p=Mod(1, 3)); for (k=1, #d, if (d[k], p*=d[k]=lift(d[k]/p))); fromdigits(d, 3) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 08 2022
STATUS
approved