OFFSET
1,1
COMMENTS
If we suppress trailing 9's, we get the strings 0, 0, 1, 1, 22, 2, 2, 2, 2, 30, 30, 30, 2, 2, 2, 26, 25, 24, 23, 22, 20, 1, 1, 17, 17, 15, 14, 13, 12, 11, 10, 102, 0, 090, 081, 075, 06, 064, 05, 055 for n up to 40; also (as correctly reported by Stewart) 000251 for a(100). Here one should pad with 9's until obtaining exactly n+1 digits. This sequence of digit strings cannot be conveniently represented in the OEIS because the number of leading 0's is significant! - Don Knuth, Sep 07 2015
LINKS
B. M. Stewart, Sums of functions of digits, Canad. J. Math., 12 (1960), 374-389. - Don Knuth, Sep 07 2015
EXAMPLE
2^5 + 2^5 + 9^5 + 9^5 + 9^5 + 9^5 >= 229999 but "<" for all greater integers, so a(5) = 229999.
Stewart, in his Table VI, incorrectly stated that a(5)=299999. - Don Knuth, Sep 07 2015
CROSSREFS
KEYWORD
base,nonn,nice
AUTHOR
Ulrich Schimke (ulrschimke(AT)aol.com)
EXTENSIONS
More terms from Naohiro Nomoto, Jul 29 2001
STATUS
approved