OFFSET
2,1
COMMENTS
The base-n expansion of a(n) is the sum of the expansions of n in bases n, n-1, ..., 3, 2, regarding all the coefficients as numbers in the range 0 to n-1.
LINKS
Lars Blomberg, Table of n, a(n) for n = 2..200
EXAMPLE
For n=4, we first write 4 in bases 4, 3 and 2: 10, 11, 100, whose sum is the base 4 number 121, which is 25 in base 10.
For n=6, we get 110, 20, 12, 11, 10, whose sum (as base-6 numbers) is 203_6 = 75_10, so a(6) = 75.
PROG
(PARI) a(n) = sum(b=2, n, my(d = digits(n, b)); sum(k=1, #d, d[k]*n^(#d-k)); ); \\ Michel Marcus, Mar 19 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Talha Ali, Sep 25 2014
EXTENSIONS
Definition revised by N. J. A. Sloane, Sep 27 2014
a(7)-a(37) from Lars Blomberg, Feb 28 2015
STATUS
approved