ROSECODE 340
Sum of digits equation
We define where SOD(n) is the sum of the digits of n (See problem 260)
It can be proved that is the smallest integer such as the equation has 3 solutions.
It can be proved too that is the smallest integer with 6 solutions.
Obviously, if x is a solution we must have . Thus, we can write a solution as
Find these solutions.
Answer format: // in ascending order
Example : 1,100,109 // For
[My timing: < 1 sec]
Thanks to sinan who helped me to improve this problem.
It can be proved that
Obviously, if x is a solution we must have
Find these solutions.
Answer format:
Example : 1,100,109 // For
[My timing: < 1 sec]
Thanks to sinan who helped me to improve this problem.