7. (40 points) To enter Ali Baba's cave, it is necessary to zero out 28 counters, each set to a natural number in the range from 1 to 2017. Treasure hunters are allowed, in one move, to decrease the values of some of the counters by the same number, which they can change from move to move. Indicate the minimum number of moves in which the treasure hunters can, with certainty, zero out the counters (regardless of the initial values) and enter the cave.
Problem 754
Official solution
Answer: In 11 moves.
## Solution:
Estimation. Suppose the counters are set to all powers of two from 1 to 1024 and some 17 other numbers. Since the order of moves does not matter, we can arrange them in descending order of the numbers being subtracted. We will show by induction that after the -th move, there is a number on the board that is not less than . The base case - 0 moves - is obvious. Suppose after moves, there is a number on the board that is not less than . If we subtract a number greater than on the -th move, then this and the previous moves have not affected the number , and the proof is complete. Otherwise, after the subtraction, there will be a number not less than , which is not less than . From the proven statement, it follows that after 10 moves, there will still be a number on the board that is not less than , meaning that at least 11 moves are required.
Example. By subtracting from all numbers not less than , we will make all numbers less than . The next step will similarly make all numbers less than , and so on. After the tenth step, all numbers will be less than , that is, they will all be zeros.