OFFSET
0,3
LINKS
EXAMPLE
A353826(11) = 20, so a(20) = 11.
PROG
(PARI) a(n) = { my (d=digits(n, 3), p=Mod(1, 3)); forstep (k=#d, 1, -1, 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