OFFSET
0,2
COMMENTS
See A248893 for a binary version.
LINKS
Lars Blomberg, Table of n, a(n) for n = 0..10000
Eric Angelini, a(n) > cumulative sum of digits Seqfan, Nov. 11, 2014
EXAMPLE
a(6)=21 because the digital sum of a(0)..a(5) is 12, and 21 is the smallest number greater than a(5)=20 and also greater than 12 + digital sum of 21.
PROG
(PARI) lista(nn) = {prec = 0; v = [0]; sdprec = 0; print1(prec, ", "); for (n=1, nn, new = prec + 1; while ((sdprec+sumdigits(new)) >= new, new ++); v = concat(v, new); print1(new, ", "); sdprec += sumdigits(new); prec = new; ); } \\ Michel Marcus, Feb 28 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and_Bob Selcoe, Nov 15 2014
EXTENSIONS
a(28)-a(55) from Lars Blomberg, Feb 28 2015
STATUS
approved