0%

Problem 685


Problem 685


Inverse Digit Sum II

Writing down the numbers which have a digit sum of 10 in ascending order, we get: 19,28,37,46,55,64,73,82,91,109,118,

Let f(n,m) be the mth occurrence of the digit sum n. For example, f(10,1)=19, f(10,10)=109 and f(10,100)=1423.

Let S(k)=n=1kf(n3,n4). For example S(3)=7128 and S(10)32287064mod1 000 000 007.

Find S(10 000) modulo 1 000 000 007.


数字和的逆函数II

从小到大排列,数字和为10的数包括:19,28,37,46,55,64,73,82,91,109,118,

f(n,m)为第m个数字和为n的数。例如,f(10,1)=19f(10,10)=109f(10,100)=1423

S(k)=n=1kf(n3,n4)。例如S(3)=7128S(10)32287064mod1 000 000 007

S(10 000)并对1 000 000 007取余。


Gitalking ...