Maths WorkshopMaths problems with full solutions
Exercise 1625Combinatorics › Counting principlesOlympiadAdded 3 Nov 2026

Multiples via pigeonhole

#pigeonhole#multiples#divisibility

Statement

Show that among any n+1n+1 integers from {0,1,…,n}\{0,1,\ldots,n\}, two are congruent mod nn? (Trivial since there are n+1n+1 values and nn residue classes.) Better: among any n+1n+1 integers, two have difference divisible by nn.

Hint

Consider residues mod nn.

Show solutionHide solution

Solution

Pigeonhole. n+1n+1 integers and nn residue classes mod nn: two have the same residue.

Difference. Their difference is divisible by nn.

Conclusion. Among any n+1n+1 integers, two have difference divisible by nn.