0%

Problem 684


Problem 684


Inverse Digit Sum

Define s(n) to be the smallest number that has a digit sum of n. For example s(10)=19.
Let S(k)=n=1ks(n). You are given S(20)=1074.

Further let fi be the Fibonacci sequence defined by f0=0,f1=1 and fi=fi2+fi1 for all i2.

Find i=290S(fi). Give your answer modulo 1 000 000 007.


数字和的逆函数

s(n)为最小的数字和为n的数。例如s(10)=19
S(k)=n=1ks(n)。已知S(20)=1074

fi为斐波那契数列,其中f0=0f1=1,对任意i2fi=fi2+fi1

i=290S(fi)。将你的答案对1 000 000 007取余。


Gitalking ...