Proving that among any $2n - 1$ integers, there's always a subset of $n$ which sum to a multiple of $n$

2.9k Views Asked by At

How can one prove that among any $2n - 1$ integers, there's always a subset of $n$ which sum to a multiple of $n$?

It is not hard to see this is equivalent to show that among $2n-1$ residue classes modulo $n$ there are $n$ whose sum is the zero-class. Thus, this problem is an example of a Zero sum problem.

Also, the general case was first proven in the $1961$ paper of Erdős, Ginzburg and Ziv.

This is a resource intended to be part of the ongoing effort to deal with abstract duplicates. There are quite a few posts here related to proving that among any $2n - 1$ integers, there's always a subset of $n$ which sum to a multiple of $n$, with varying degrees of generality from using only specific values of $n$ to proving it for all cases. Each of my following answers deal with a degree of generality by explaining it and then linking to the related existing posts.

However, there are many ways to deal with this problem, including some which may not yet be handled by any posts on this site. Some examples, as suggested by quid's question comment, include:

5

There are 5 best solutions below

2
On

Most of the questions on this site involve asking to prove the result for a specific, relatively small, value of $n$ (although sometimes the question specifies a larger value than $2n-1$ for the number of integers to choose from). The answers for $n$ being prime usually involve some sort of sets of cases and using the pigeon-hole principle, while the non-prime values involve handling each of the prime factor(s) separately and then showing how they can be combined to get the final result.

0
On

There are sometimes posts involving asking for proving the result for some subset of possible values of $n$. This would normally involve using some specific property of the subset to prove the result. The only posts I could find which involves this are for powers of $2$:

0
On

Posts can also show how to prove you can multiply results with $2$ known cases which work to get a larger case which also works, e.g., if the result works for $n = i$ and $n = j$, then it also works for $n = ij$. From this, you can extend known results for a few specific cases only to show it works for an infinite set of values.

This answer proves it for the specific case of when $n = 3$. Also, A question relevant to EGZ theorem? shows how to prove it in the general case.

0
On
0
On

Posts may potentially alter the general conditions, such as restrict the set of available congruences and use a set of available integers which is considerably larger than necessary, with the idea being that a specific method can be used to solve the problem. The only such post I know of is the following one which deals with choosing $19$ integers from a set of $181$ integers which only include the $10$ square congruences modulo $19$, with this being solved directly using the pigeon-hole principle on those available congruences: