Prove that if and are positive integers, then from integers, at least can always be selected such that their sum is divisible by .
Problem 1292
Official solution
I. solution. We will prove that if is a natural number and is a positive integer, then the statement is true.
We apply complete induction on . Suppose that the statement is true for all natural numbers up to , we need to show that it is also true for .
If the numbers are , then by the induction hypothesis, among the numbers , we can select numbers whose sum is divisible by . If , then the statement is true, as we can select at least numbers from . If , then we remove these numbers from the set, and from the remaining numbers, by the induction hypothesis, we can also select at least number such that their sum is divisible by . Adding this number to the previously removed numbers, the sum will also be divisible by , so we can select at least numbers.
To complete the proof, we only need to show that the statement is also true for , that is, from numbers, we can select at least 1 number such that their sum is divisible by .
If there is a number among them that is divisible by , then we take this number.
If there is no number divisible by , then denoting the numbers by , consider the remainders of the following sums when divided by :
Since each of these is an integer, and dividing by can yield different remainders, by the pigeonhole principle, either there is a sum with a remainder of 0, or there are at least two sums with the same remainder. If a remainder of 0 occurs, then we have found some numbers whose sum is divisible by . If there are at least two sums with the same remainder, and , then is divisible by , so we have also found some numbers whose sum is divisible by .
Based on the work of Beke Csongor (Budapest, Békásmegyeri Veres Péter Gimn., 10th grade)
II. solution. We use the known and previously proven fact that from integers, we can always select some such that their sum is divisible by .
Knowing this, we provide a procedure to find the appropriate at least integers.
Select numbers from the integers. From these integers, set aside those whose sum is divisible by . Then, from the remaining numbers, again select numbers. From these, also set aside those whose sum is divisible by . We repeat this procedure until it is no longer possible, that is, at most numbers are not set aside. The number of numbers set aside is therefore at least and we set them aside in groups such that the sum of each group is divisible by , so the sum of all of them is also a multiple of . This proves the statement.