0%

Problem 885


Problem 885


Sorted Digits

For a positive integer d, let f(d) be the number created by sorting the digits of d in ascending order, removing any zeros. For example, f(3403)=334.

Let S(n) be the sum of f(d) for all positive integers d of n digits or less. You are given S(1)=45 and S(5)=1543545675.

Find S(18). Give your answer modulo 1123455689.


数字排序

对于正整数d,记f(d)为将d的各位非零数字按升序排序所得的结果。例如,f(3403)=334

S(n)为所有至多n位的正整数d所对应的f(d)之和。已知S(1)=45S(5)=1543545675

S(18),并对1123455689取余作为你的答案。


0 comments
Anonymous
Markdown is supported

Be the first person to leave a comment!