|
|
A175675
|
|
a(n) = smallest integer m>=n such that sum of digits of n and m is >=10.
|
|
1
|
|
|
19, 9, 8, 7, 6, 5, 6, 7, 8, 9, 18, 17, 16, 15, 14, 15, 16, 17, 18, 19, 26, 25, 24, 23, 24, 25, 26, 27, 28, 29, 34, 33, 32, 33, 34, 35, 36, 37, 38, 39, 42, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
a(0)=19 because 0+1+9=10, a(1)=9 because 1+9=10.
|
|
MATHEMATICA
|
Reap[Do[idn=IntegerDigits[n]; sn=Plus@@idn;
Do[If[10<=sn+Plus@@IntegerDigits[m], Sow[m]; Break[]], {m, n, 10^5}], {n, 0, 200}]][[2, 1]]
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|