login
A353825
Inverse permutation to A353824.
2
0, 1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 15, 17, 16, 18, 20, 19, 24, 25, 26, 21, 23, 22, 27, 28, 29, 30, 31, 32, 33, 35, 34, 36, 37, 38, 39, 40, 41, 42, 44, 43, 45, 47, 46, 51, 52, 53, 48, 50, 49, 54, 56, 55, 60, 61, 62, 57, 59, 58, 72, 73, 74, 75, 76
OFFSET
0,3
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
Cf. A353824.
Sequence in context: A222252 A130371 A130372 * A353824 A089865 A089866
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 08 2022
STATUS
approved