Exercise 601Combinatorics › Pigeonhole principleM1Added 4 Nov 2026
A block of consecutive terms divisible by n
#pigeonhole#prefix sums#remainders
Statement
Let be integers. Prove that there exist such that the sum is divisible by .
Hint
Consider the partial sums , , , , and their remainders modulo .
Show solutionHide solution
Solution
Idea. A block sum is a difference of two partial sums.
Pigeonhole. The numbers have only possible remainders modulo , so two of them, say and with , have the same remainder. Then divides
Taking and gives the required block.
Remark. The result is sharp: for numbers it fails. Take .
Lesson. Turn sums of blocks into differences of prefix sums, then apply the pigeonhole principle to remainders.