OFFSET
0,3
LINKS
FORMULA
a(10^k - 1) = 10^k - 1 for any k >= 0.
a(10^k) = 10^k for any k >= 0.
a(10^k + 1) = 10^k + 1 for any k >= 0.
EXAMPLE
A332144(28) = 42, so a(42) = 28.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 20 2020
STATUS
approved