The principle
Basic form. If objects are placed into boxes, at least one box contains objects.
Generalized (strong) form. If objects are placed into boxes, some box contains at least
objects. Equivalently, to keep every box at you can store at most objects; the -th object forces a box to reach .
How exam problems use it
Most konkur pigeonhole questions ask for the smallest so that every -element subset of is guaranteed to contain a special configuration. The reliable recipe:
- Color (find the boxes). Translate the arithmetic condition into a finite invariant — a residue class mod or a parity — so the condition becomes " items share a color."
- Build the largest bad set. A subset is bad (avoids the configuration) iff it takes at most items from each color class. Its maximum size is .
- Add one. The smallest forcing value is
At that size, pigeonhole guarantees some class has items — the configuration you wanted.
Two reductions worth memorizing
| Condition | Reduces to | Boxes (colors) |
|---|---|---|
| Product of differences divisible by | three numbers share a residue | the residue classes mod |
| Sum of squares | four numbers share the same parity | classes (odd, even) |
Why parity: and , so a sum of four squares mod just counts the odd terms; it is only with or odds, i.e. all four of one parity.
Mini-example
Smallest so that every -subset of has three numbers with . Since and the numbers are distinct, no single difference is divisible by , so we need all three to share a residue mod . Partition into the residue classes ( elements each). A bad set takes per class: max bad size . Therefore
A size- subset forces some class to hold elements.
Exam trick: Never count the good configurations directly. Recolor the condition into " items of one color," maximize the bad set (at most per color), and answer (max bad) . The hard step is always step 1 — turning divisibility/sum conditions into a residue or parity coloring.