OFFSET
1,2
COMMENTS
The sequence cannot continue after 20 with the given rules, because 21 in base 11 is 1A, which cannot be read as in decimal.
EXAMPLE
For n=3, the bases are 111 (base 1), 11 (base 2), and 10 (base 3), which sum to 132.
PROG
(PARI) digs(n, b) = if (b==1, vector(n, k, 1), digits(n, b));
a(n) = sum(b=1, n, fromdigits(digs(n, b), 10)); \\ Michel Marcus, Jun 05 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David Robillard, Jun 05 2019
STATUS
approved