By the end of this chapter you'll be able to…

  • 1Count with stars and bars, inclusion-exclusion and derangements
  • 2Choose pigeonholes and prove existence results
  • 3Use invariants and monovariants to show impossibility or termination
  • 4Apply induction, extremal choice and basic graph facts
💡
Why this chapter matters in INMO (Mathematical Olympiad)
Combinatorics problems seldom repeat, but a small set of ideas recurs: counting two ways, pigeonhole, invariants, induction and extremal choice. Naming the idea is the first half of the solution.

Combinatorics, Pigeonhole, Invariants and Induction — IOQM, RMO and INMO

Weightage: Combinatorics is the most unpredictable of the four olympiad areas, since problems rarely repeat, but a small set of ideas recurs: counting two ways, pigeonhole, invariants, induction and extremal choice. The IOQM leans towards counting, and the RMO and INMO towards proof.

1. Counting that is exact

The basic tools are the rule of sum and rule of product, permutations , combinations and arrangements with repeated items .

Stars and bars. The number of non-negative integer solutions of is . With each it is .

Worked example. Distribute 10 identical sweets among 4 children, each getting at least one. The count is .

Inclusion-exclusion counts a union:

Worked example. The number of integers from 1 to 100 divisible by 2, 3 or 5 is .

Derangements (permutations with no fixed point) number , so .

2. Bijections and double counting

To count a set, set up a bijection with a set that is easier to count. To prove an identity, count the same set in two ways.

Worked example. Prove . Count the subsets of an -element set by size ( elements: ways) and also as , a yes or no choice for each element.

A handshake-style argument is double counting: the sum of degrees in a graph equals twice the number of edges, so the number of odd-degree vertices is even.

3. The pigeonhole principle

If objects go into boxes, some box holds at least two. More generally, with objects in boxes, some box holds at least .

The skill is choosing the boxes.

Worked example. Among any 5 points in a unit square, two are within of each other. Divide the square into four quarter squares of side , whose diagonal is . Five points lie in four squares, so two share a square.

Worked example. From the numbers pick . Two are consecutive. Use the boxes .

4. Invariants and monovariants

An invariant is a quantity that does not change under the allowed moves. If the start and target differ in the invariant, the target is unreachable. Typical invariants are parity, a sum modulo and a colouring count.

Worked example. A board has two opposite corners removed. It cannot be tiled by dominoes. Colour it like a chessboard: the removed corners have the same colour, so the board has 30 squares of one colour and 32 of the other, but each domino covers one of each.

A monovariant changes in only one direction and must stop, which proves a process terminates.

5. Induction and extremal arguments

Induction proves a statement for every from a base case and a step . Strong induction may assume all earlier cases. Look for the step where you remove one object or add one element.

The extremal principle: consider the largest, smallest, longest or closest object, and show it has a special property. A finite nonempty set of integers has a minimum, and that fact alone proves many results.

Worked example. Among people, show there are two with the same number of acquaintances (for ). Degrees run from to , but a person of degree and a person of degree cannot both exist. So the degrees take at most values among people, and pigeonhole finishes it.

6. Graph theory basics

A graph has vertices and edges. A tree on vertices is connected with edges and no cycles. A graph is bipartite exactly when it has no odd cycle. An Euler circuit exists in a connected graph if and only if every vertex has even degree.

Worked example. In a tournament (every pair plays once, no draws), the sum of wins over all players is , the number of games.

7. Games and strategies

For a take-turns game, determine the winning positions by working backwards from the end. A symmetry strategy lets the second player copy the first in a mirror image. A strategy-stealing argument shows that in some games the first player cannot lose.

8. Counting in the IOQM

Integer answers mean exact counts. Break the count into cases that are disjoint and exhaustive, check with a small case, and look for a complementary count if the direct count is awkward.

Common traps

  • Counting the same arrangement twice because objects are identical.
  • Pigeonhole with poorly chosen boxes.
  • An invariant that does not separate the start from the target.
  • Induction that proves the step only for large, leaving small cases untested.
  • Forgetting the empty or trivial case in inclusion-exclusion.

Memory aids

  • "Stars and bars: n plus k minus 1 choose k minus 1."
  • "Count it twice": double counting.
  • "Colour, parity, sum mod m": common invariants.

Summary

Counting uses sum and product rules, stars and bars, inclusion-exclusion and derangements. Proof problems use bijections, double counting, pigeonhole with cleverly chosen boxes, invariants, induction and extremal choices.

Graph facts such as degree sums and trees support many arguments, and game problems are solved from the end position backwards.

Exam protocol

  • Test small cases to find the pattern.
  • State the boxes, the invariant or the extremal object explicitly.
  • Split counts into disjoint, exhaustive cases.
  • Check the base case and the step in every induction.

Key formulas & results

Everything to memorise for the exam hall, in one card. Screenshot this for revision.

Stars and bars
Non-negative solutions of x1 + ... + xk = n.
Inclusion-exclusion (two sets)
Extends alternately to more sets.
Derangements
D4 is 9.
Handshake lemma
The number of odd-degree vertices is even.
⚠️

Traps INMO (Mathematical Olympiad) sets — and how to dodge them

These are the exact option-traps and misreads that cost marks under negative marking.

WATCH OUT
✗ Counting identical objects as distinct.
✓ Divide by the symmetry or count multisets.
WATCH OUT
✗ Choosing poor pigeonholes.
✓ Build boxes so each holds a forbidden pair.
WATCH OUT
✗ Using an invariant that does not distinguish start from target.
✓ Check the invariant has different values at the two positions.
WATCH OUT
✗ Proving an induction step only for large n.
✓ Check every small case.
WATCH OUT
✗ Omitting the empty case in inclusion-exclusion.
✓ Include all intersections with correct signs.

Exam-pattern practice

PYQ-style questions with full solutions. Work through them as a readiness check — mark yourself honestly and get your gap report at the end.

Readiness check

Are you exam-ready for Combinatorics, Pigeonhole, Invariants and Induction?

8 problems from this chapter. Try each one, reveal the worked solution, mark yourself honestly — get your gap report at the end.

8 questions~6 min

5-minute revision

The whole chapter, distilled. Read this the night before the exam.

  • •Stars and bars C(n + k - 1, k - 1); with each at least 1, C(n - 1, k - 1).
  • •Inclusion-exclusion with alternating signs; D4 = 9.
  • •Double counting proves identities and degree-sum facts.
  • •Pigeonhole: choose the boxes cleverly; ceiling of m over n.
  • •Invariants: parity, colouring, sum mod m; monovariants prove termination.
  • •Induction and extremal choice; strong induction for several earlier cases.
  • •Tree has n - 1 edges; Euler circuit needs all degrees even.

INMO (Mathematical Olympiad) question blueprint

How this topic is asked, tier by tier — so you can prep to the pattern.

Typical weightage: 30

Question styleMarks eachTypical countWhat it tests
Stars and bars~2-4 marks in a typical paper
Derangements~2-4 marks in a typical paper
Inclusion-exclusion~4-6 marks in a typical paper
Pigeonhole~4-6 marks in a typical paper
Double counting~4-6 marks in a typical paper
Invariant~6-8 marks in a typical paper
Extremal~6-8 marks in a typical paper
Graphs~2-4 marks in a typical paper
Prep strategy
  • Small cases
  • Name the technique
  • Check base cases

Exam-hall strategy

Battle-tested tips from mentors and toppers for this topic under the sectional clock.

  1. Test small cases.
  2. Name the technique before writing.
  3. Check base cases in every induction.

Beyond the exam

Where this skill shows up in the job you're competing for — and in life.

Algorithms and networks

Graph theory and counting arguments underlie routing, scheduling and complexity analysis.

Probability and statistics

Counting methods give exact probabilities for games, sampling and reliability.

Where else this topic is tested

Prepare once, score in every exam that asks it.

IOQMInteger-answer counting problems
RMO and INMOProof-based combinatorics

Questions aspirants ask

Pulled from the Q&A community and mentor sessions.

Solve many problems, and after each one name the idea used: bijection, double counting, pigeonhole, invariant, induction or extremal.

No. It asks for integer answers, so exact counting matters more, while the RMO and INMO require proofs.
Header Logo