login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A180083
Smallest n such that digit sum of n > previous term.
1
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 299, 3999999999999999999999999999999999
OFFSET
1,3
COMMENTS
a(14) has 444444444444444444444444444444445 digits and is too large to include. - Arkadiusz Wesolowski, Feb 17 2011
EXAMPLE
8 is followed by 9 because 9 is the lowest number with a digit sum > 8.
9 is followed by 19 because 19 is the lowest number with a digit sum (1 + 9 = 10) > 9.
MATHEMATICA
f[s_List] := Block[{k = prev = s[[ -1]]}, While[ prev >= Plus @@ IntegerDigits@ k, k++ ]; Append[s, k]]; Nest[ f, {0}, 11] (* Robert G. Wilson v, Aug 15 2010 *)
CROSSREFS
Cf. A006050. - Robert G. Wilson v, Aug 15 2010
Sequence in context: A247227 A048410 A341161 * A345142 A275775 A358129
KEYWORD
more,nonn,base
AUTHOR
Dominick Cancilla, Aug 09 2010
EXTENSIONS
a(13) from Robert G. Wilson v, Aug 15 2010
STATUS
approved