OFFSET
0,3
LINKS
FORMULA
a(2*n) = 2*a(n).
EXAMPLE
A333692(90) = 86, hence a(86) = 90.
PROG
(PARI) a(n, base=2) = { if (n==0, 0, n%base==0, base*a(n/base, base), my (r=fromdigits(Vecrev(digits(n, base)), base)); base*a(r\base, base)+(r%base)) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 04 2020
STATUS
approved