Flexible digit sum
Given any positive integer , we can construct a new integer by inserting plus signs between some of the digits of the base representation of , and then carrying out the additions.
For example, from ( in base ) we can construct the four base integers , , and .
Let be the smallest number of steps needed to arrive at a single-digit number in base . For example, and .
Let be the sum of the positive integers not exceeding such that .
You are given .
Find .
灵活的数字和
给定任意正整数,我们可以通过在的进制表示中插入加号,并计算加法的结果,来构造新的整数。
例如,从 (进制表示的)出发,我们能够构造四个进制整数:,,和。
记为将进制下的变为一位数所需的最少步数。例如,而。
记为所有小于等于且满足的正整数之和。
已知。
求。
Be the first person to leave a comment!