Total Roundness
A round number is a number that ends with one or more zeros in a given base.
Let us define the roundness of a number in base as the number of zeros at the end of the base representation of .
For example, has roundness in base , because the base representation of is , which ends with zeros.
Also define , the total roundness of a number , as the sum of the roundness of in base for all .
For example, has roundness in base and roundness in base , , , , hence we get .
You are also given .
Find . Give your answer modulo .
总取整度
取整数是指在给定进制下以一个或多个零结尾的数。
定义数在进制下的取整度为在进制表示下末尾零的个数。
例如,在进制下的取整度为,因为的进制表示是,末尾有个零。
再定义为数的总取整度,即在所有的进制下的取整度之和。
例如,在进制下的取整度为,在、、、进制下的取整度为,因此。
已知。
求,并对取余作为你的答案。
Gitalking ...