Maths WorkshopMaths problems with full solutions
Exercise 1816Combinatorics › Pigeonhole principleOlympiadAdded 3 Nov 2026

A triple summing to a multiple

#pigeonhole#triple#multiple

Statement

Show that among any 2n+12n+1 integers, there are nn whose sum is divisible by nn.

Hint

Use the pigeonhole principle on partial sums, or an Erdős–Ginzburg–Ziv type argument.

Show solutionHide solution

Solution

Special case n=2n=2. Among 55 integers, three have sum divisible by 33? That's EGZ for n=3n=3, needing 55 integers.

For general nn. EGZ theorem states: any 2n−12n-1 integers contain nn whose sum is divisible by nn. This is a deep theorem (Erdős–Ginzburg–Ziv), proved via the Cauchy–Davenport theorem.

Conclusion. EGZ theorem: 2n−12n-1 integers contain nn summing to a multiple of nn.