Consecutive Subsum Divisible by
Problem
Let be any integers. Prove that there exist indices such that
Field
Putnam / Combinatorics / Number Theory
Why It's Beautiful
No matter what integers you choose โ positive, negative, huge, tiny โ you are guaranteed a consecutive block that sums to a multiple of . The result feels surprising because there are no restrictions on the integers at all.
The proof is a one-paragraph application of the Pigeonhole Principle on partial sums, which reduces a statement about consecutive blocks into a statement about remainders. It is a model of elegant combinatorial reasoning.
Key Idea / Trick
Consider the partial sums .
There are sums but only possible remainders mod , so by Pigeonhole, two partial sums must be congruent mod : say with .
Then .
Difficulty
2 / 5
Tags
Putnam, Pigeonhole principle, Partial sums, Divisibility, Modular arithmetic, Combinatorics
Consecutive Subsum Divisible by โ Answer
Setup: Define Partial Sums
Define and for .
This gives integers: .
Apply Pigeonhole
Each has some remainder when divided by , taking values in โ only possible remainders.
We have partial sums but only possible remainders, so by the Pigeonhole Principle, two must share the same remainder:
Extract the Consecutive Subsum
So the consecutive block has sum divisible by .
Example
Take and .
| | | | |-----|--------|----------------| | 0 | 0 | 0 | | 1 | 3 | 3 | | 2 | 4 | 0 | | 3 | 8 | 0 | | 4 | 10 | 2 |
, so is divisible by 4. โ
Also , so is divisible by 4. โ
Why Is Needed
Including is crucial: it handles the case where the subsum starts at (i.e., ). Without it, we'd only have partial sums and Pigeonhole would give nothing.
It also captures the special case where directly (when ).
Remark: Sharpness
The bound integers is tight: with integers you can fail. For example, with and : partial sums are โ neither is and no consecutive subsum is divisible by 3.