Mathematics · Ch 4 — Combinatorics and Mathematical Induction
Fundamental principles of counting
Fundamental principles of counting
Three basic rules let us count the number of ways of carrying out a task, without listing every possibility.
1. The Sum Rule. If a first task can be completed in different ways and a second task in different ways, and the two tasks cannot be performed simultaneously (i.e. we do one or the other, not both), then there are ways of doing either task. More generally, for non-simultaneous tasks performable in ways respectively, the number of ways of doing one of them is .
Illustration: choosing one girl or one boy for a competition from 17 boys and 29 girls can be done in ways.
2. The Product Rule. If a task is made of two procedures, the first completed in ways and the second in ways after the first is done, then the whole task can be completed in ways. Extended to procedures (performable in ways, with done only after ), the task can be completed in ways.
Illustration: travelling Chennai → Trichy (2 roads) → Tirunelveli (3 roads) can be done in ways.
Two very common special cases of the product rule:
- Arranging different objects taken at a time with repetition allowed (each of the positions independently has choices): ways. (E.g. coins tossed has outcomes; bulbs each on/off gives states.)
- Placing different objects into places (each object independently choosing one of places): ways.
3. The Principle of Inclusion–Exclusion. When two tasks can be performed simultaneously, simply adding over-counts the ways of doing at least one of them — the ways of doing both at once, , get counted twice. The correct count is
Illustration: positive integers up to 1000 divisible by 2 or 7: (multiples of 2), (multiples of 7), (multiples of 14), so .
Tree diagrams are a visual aid: each branch of the tree represents one of the choices available at that stage, and every root-to-leaf path is one complete outcome — useful for laying out, e.g., every brand–colour–variant combination when buying a car. …