Combinatorics & Games
Topic overview
Combinatorics and games appear extremely frequently in BMO proof questions. The main weapons are: **the pigeonhole principle** (the key lies in designing the boxes), **the extremal principle** (take the maximal/minimal configuration and then tweak it), **invariants and monovariants** (find a conserved quantity to prove unreachability, find a monotone quantity to prove termination), **double counting**, **induction and construction** (divide and conquer, insertion, stripping), as well as **Ramsey / Erdős–Szekeres**-type existence results. The mnemonic for the approach: **"pick the right boxes, take extremes, find the conserved quantity"**.
Key concepts
Putting objects into boxes, there must be one box with . The difficulty always lies in designing the boxes:
- By remainders: among integers there must be two that are congruent (their difference is divisible by ).
- By odd part: taking out of , one must divide another (write , the odd part has only kinds).
- By odd/even lattice points : among any 5 lattice points there must be two whose midpoint is a lattice point.
- Region splitting: a unit square divided into 4 small squares ⇒ among 5 points there must be two at distance .
After using the pigeonhole principle, don't forget a tightness construction to show the bound cannot be improved.
Key points
- ◆Common dimensions for designing pigeonholes: remainders, greatest odd factor, parity of coordinates, small geometric regions
- ◆"Number of objects > number of values" type: e.g. number of subsets > number of possible sums ⇒ two subsets have equal sum
- ◆A tightness construction (such as $\{n+1,\dots,2n\}$) proves the bound is optimal
Choose an object that maximises or minimises a quantity, then prove it has the required property: otherwise a small adjustment would improve it, giving a contradiction.
For example, a maximum cut partitions a graph's vertices into two groups with as many crossing edges as possible. If a vertex had more neighbours in its own group than in the opposite group, moving it would increase the number of crossing edges, a contradiction. Thus each person has a number of friends in the opposite group the number in their own group. This also proves that a maximum cut of any graph contains half its edges.
Key points
- ◆'Take an extreme + tweak to a contradiction' is a universal opening move for existence/construction problems
- ◆Often paired with "move one element / swap two elements" as fine-tuning
- ◆Maximum cut, longest path and minimal counterexample all belong to this class
Invariant: find a quantity that is conserved under each step of the operation (often some modulus), and use it to prove that 'the target state is unreachable' (numbers changed on a blackboard, coin flipping, parity of a puzzle).
Monovariant: find a quantity that is strictly monotone and bounded at each step, and prove that the process must terminate (e.g. regard the states of a row of coins as a binary number, which each operation strictly decreases).
Key points
- ◆To prove "unreachable", find an invariant (mod 2 / mod 3 / colouring sum)
- ◆To prove "termination / finitely many steps", find a monotone quantity (a non-negative integer cannot decrease indefinitely)
- ◆First ask: what is invariant under the operation? What changes monotonically?
Count the same quantity in two ways and set them equal. In graph theory, (the handshaking lemma).
Application: Mantel's theorem — the number of edges in a triangle-free graph is . Proof: triangle-free ⇒ the two endpoints of every edge are ; summing over all edges gives , then by Cauchy–Schwarz , and combining gives .
Key points
- ◆"One quantity, two ways of counting" = double counting
- ◆$\sum\deg=2|E|$; the number of odd-degree vertices is even
- ◆Local constraints (inequalities on the edges) → sum → close with Cauchy–Schwarz
Divide-and-conquer induction: split the problem into subproblems — e.g. an board with one square missing can be tiled by L-shaped trominoes (place one in the centre, creating a gap in each of the other three quadrants); lines divide the plane into regions (the th line adds regions).
Insertion method: insert the new element into an already ordered sequence — every tournament has a Hamiltonian path (walk along the chain and insert at the point where the win/loss flips).
Stripping method: find a pair of adjacent targets, join them, strip them off, and induct — points on a circle with red and blue can be joined by non-crossing red-blue chords.
Key points
- ◆Divide and conquer: the difficulty lies in 'making every subproblem satisfy the induction hypothesis' (often a bridging piece is needed)
- ◆Incremental counting: work out 'how much is added by including the $k$-th object', then sum
- ◆Insert / strip the existence used for 'linearisable / matchable'
Ramsey : among people there must be 3 who know each other or 3 who do not know each other (use pigeonhole on one person to force 3 edges of the same colour, then look inside these 3 people). people is not enough (pentagon + pentagram counterexample).
Erdős–Szekeres: distinct real numbers must contain a monotone subsequence of length (label each term with (the longest increasing/decreasing length ending at ), pigeonhole + local extendability).
Happy Ending: 5 points in general position must contain a convex quadrilateral (classified by convex hull).
Key points
- ◆Ramsey: first use the pigeonhole principle to force a monochromatic neighbourhood, then classify the interior
- ◆"Attach coordinate labels + pigeonhole" is the Erdős–Szekeres paradigm
- ◆Combinatorial geometry existence → first classify by the shape of the convex hull
Worked examples
Try each example yourself before checking the explanation.
At a party there are 6 people, and any two of them are either "acquainted" or "strangers". Prove that there must be three people who are pairwise acquainted, or three people who are pairwise strangers.
Prove: from any integers chosen from , there must be one that divides another; and explain why cannot be reduced to .
Ready to practise this topic?
Practise the available questions for this topic. Difficulty labels are platform references.
Practise Combinatorics & Games →