Maths WorkshopMaths problems with full solutions
Exercise 527Combinatorics › Pigeonhole principleL1Added 3 Nov 2026

Difference divisible by $n$

#pigeonhole#difference#divisibility

Statement

Show that among any n+1n+1 integers, two have difference divisible by nn.

Hint

Look at residues modulo nn.

Show solutionHide solution

Solution

Residues. There are nn residue classes modulo nn.

Pigeonhole. With n+1n+1 integers and nn residue classes, two have the same residue.

Conclusion. Their difference is divisible by nn.