Problem 685 题目发布于 2019-10-19 翻译更新于 2020-11-02 Problem 685 Inverse Digit Sum IIWriting 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)=19,f(10,10)=109,f(10,100)=1423。 记S(k)=∑n=1kf(n3,n4)。例如S(3)=7128,S(10)≡32287064mod1 000 000 007。 求S(10 000)并对1 000 000 007取余。
Gitalking ...