0%

Problem 725


Problem 725


Digit sum numbers

A number where one digit is the sum of the other digits is called a digit sum number or DS-number for short. For example, 352, 3003 and 32812 are DS-numbers.

We define S(n) to be the sum of all DS-numbers of n digits or less.

You are given S(3)=63270 and S(7)=85499991450.

Find S(2020). Give your answer modulo 1016.


数字和数

若一个数中有一位数字是其它数字之和,则称这个数为数字和数或简称为DS-数。例如,352300332812都是DS-数。

S(n)为所有n位及n位以下的DS-数之和。

已知S(3)=63270S(7)=85499991450

S(2020),并将你的答案对1016取余。


Gitalking ...