OFFSET
1,2
COMMENTS
The digitsum (sometimes called digsum) of an integer is the sum of its digits. The digitsum of 54321 is 5+4+3+2+1 = 15 (see A007953).
Among the first 10000 terms the largest value is 10000000000000000000000003. For 100000 terms it is 1000000000000000000000000000000004. - Lars Blomberg, Feb 22 2020
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 with digitsum 1 and a(2) = 2 has 1 digit;
a(2) = 2 with digitsum 2 and a(3) = 10 has 2 digits;
a(3) = 10 with digitsum 1 and a(4) = 3 has 1 digit;
a(4) = 3 with digitsum 3 and a(5) = 100 has 3 digits;
a(5) = 100 with digitsum 1 and a(6) = 4 has 1 digits;
a(6) = 4 with digitsum 4 and a(7) = 1000 has 4 digits; etc.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Lars Blomberg, Feb 20 2020
STATUS
approved