Exercise 331Combinatorics › Pigeonhole principleL1Added 31 Oct 2026
Pigeonhole modulo 4
#pigeonhole#congruences
Statement
Show that among any five integers, there are two whose difference is divisible by .
Hint
Sort the integers by their remainder when divided by .
Show solutionHide solution
Solution
Every integer has a remainder in when divided by . These are possible remainders ("boxes") for integers.
By the pigeonhole principle, two of the integers have the same remainder. If and , then is divisible by .