Olympiad Maths Prep

Track / Stage 6 / 292 of 400 #1292 of 2000

Problem 1292

National olympiad, first round
Combinatorics Difficulty 6.6 Prove it

Prove that if nn and kk are positive integers, then from n+kn+k integers, at least (k+1)(k+1) can always be selected such that their sum is divisible by nn.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

I. solution. We will prove that if kk is a natural number and nn is a positive integer, then the statement is true.

We apply complete induction on kk. Suppose that the statement is true for all natural numbers up to kk, we need to show that it is also true for k+1k+1.

If the numbers are a1,a2,a3,,an+k+1a_{1}, a_{2}, a_{3}, \ldots, a_{n+k+1}, then by the induction hypothesis, among the numbers a1,a2,a3,,an+ka_{1}, a_{2}, a_{3}, \ldots, a_{n+k}, we can select xk+1x \geq k+1 numbers whose sum is divisible by nn. If xk+2x \geq k+2, then the statement is true, as we can select at least (k+1)+1(k+1)+1 numbers from a1,a2,a3,,an+k+1a_{1}, a_{2}, a_{3}, \ldots, a_{n+k+1}. If x=k+1x=k+1, then we remove these k+1k+1 numbers from the set, and from the remaining b1,b2,,bnb_{1}, b_{2}, \ldots, b_{n} numbers, by the induction hypothesis, we can also select at least 0+1=10+1=1 number such that their sum is divisible by nn. Adding this number to the previously removed k+1k+1 numbers, the sum will also be divisible by nn, so we can select at least k+2k+2 numbers.

To complete the proof, we only need to show that the statement is also true for k=0k=0, that is, from nn numbers, we can select at least 1 number such that their sum is divisible by nn.

If there is a number among them that is divisible by nn, then we take this number.

If there is no number divisible by nn, then denoting the numbers by a1,a2,,ana_{1}, a_{2}, \ldots, a_{n}, consider the remainders of the following sums when divided by nn:

S1=a1S2=a1+a2S3=a1+a2+a3Sn=a1+a2++an \begin{aligned} S_{1} & =a_{1} \\ S_{2} & =a_{1}+a_{2} \\ S_{3} & =a_{1}+a_{2}+a_{3} \\ \vdots & \\ S_{n} & =a_{1}+a_{2}+\ldots+a_{n} \end{aligned}

Since each of these is an integer, and dividing by nn can yield nn 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 nn. If there are at least two sums with the same remainder, SiS_{i} and Sj(i>j)S_{j}(i>j), then SiSj=aj+1+aj+2++aiS_{i}-S_{j}=a_{j+1}+a_{j+2}+\ldots+a_{i} is divisible by nn, so we have also found some numbers whose sum is divisible by nn.

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 nn integers, we can always select some such that their sum is divisible by nn.

Knowing this, we provide a procedure to find the appropriate at least (k+1)(k+1) integers.

Select nn numbers from the n+kn+k integers. From these nn integers, set aside those whose sum is divisible by nn. Then, from the remaining numbers, again select nn numbers. From these, also set aside those whose sum is divisible by nn. We repeat this procedure until it is no longer possible, that is, at most n1n-1 numbers are not set aside. The number of numbers set aside is therefore at least (k+1)(k+1) and we set them aside in groups such that the sum of each group is divisible by nn, so the sum of all of them is also a multiple of nn. This proves the statement.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.