OFFSET
0,3
COMMENTS
Since the evaluation of n begins with base 2, the members of this sequence occupy neighborhoods in groups the size of powers of two.
LINKS
Robert Israel, Table of n, a(n) for n = 0..7000
EXAMPLE
a(5) = 139 because 5 in bases 2 through 6 is 101, 12, 11, 10 and 5, respectively, and (read as base-10 numbers) their sum is 139.
MAPLE
f:= proc(n) local b, t, L;
t:= 0;
for b from 2 to n+1 do
L:= convert(n, base, b);
t:= t + add(L[i]*10^(i-1), i=1..nops(L));
od:
t
end proc:
map(f, [$0..100]); # Robert Israel, Jul 07 2017
MATHEMATICA
f[n_] := Sum[ FromDigits[ IntegerDigits[n, i]], {i, 2, n + 1}]; Array[f, 40, 0]
PROG
(PARI) a(n) = sum(k=2, n+1, fromdigits(digits(n, k), 10)); \\ Michel Marcus, Jul 02 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Robert G. Wilson v, Jul 02 2017
STATUS
approved