(9 points) Given a natural number. In one move, plus signs are written between some of the digits of the number, and the resulting sum is calculated (for example, from the number 123456789, can be obtained). In the next move, plus signs are written between some of the digits of the obtained sum, and the sum is calculated again, and so on. Prove that from any number, a single-digit number can be obtained in no more than 10 moves.
Problem 1066
Official solution
Solution. Four moves are sufficient.
For numbers less than 1000, the statement is obvious.
Larger numbers are broken down into four-digit blocks (which do not start with 0), possibly plus zeros and one number less than 1000 at the end (for example, ). If this results in four-digit blocks, then the sum is at least . Now we replace one by one the non-zero addends with the sum of their digits. As a result, the sum becomes no more than , i.e., the sum is at least one digit smaller. Since the sum decreased by less than 9999 at each move, the last sum before the reduction in the number of digits was of the form 10....0abcd. This sum can be obtained with the first move, and then the number can be replaced with the sum of its digits three times.