Fundamental principle of counting
Before any formula, before any factorial, the entire subject of combinatorics rests on one statement: the multiplication principle. Get this right, and every later formula falls into place.
The two basic principles
Multiplication principle (FPC)
Statement. If a task can be performed in two independent stages , the first in ways, the second in ways , then the whole task can be performed in ways.
More generally, if a task consists of stages with choices independently at each stage, the total number of ways is
Addition principle
Statement. If a task can be done in ways or in ways (the two collections being disjoint , no overlap), then the task can be done in ways.
Multiplication is for sequential choices: do this and then that. Addition is for exclusive alternatives: either this or that, but not both at once.
When to multiply vs add
A typical pitfall: deciding which principle applies.
- "Choose a shirt and then a pant": multiplication (both are chosen).
- "Choose either a shirt or a pant (not both)": addition.
- "Form a -letter code from letters with repetition allowed": multiplication, .
- "How many integers between and are multiples of or ?": addition (with inclusion–exclusion to handle overlap).
Worked examples
Example 1. A boy has shirts and pants. In how many ways can he dress?
Independent stages: choose shirt (4 ways), then choose pant (5 ways). Total: ways.
Example 2. How many -digit numbers can be formed using digits (a) with repetition? (b) without repetition?
(a) Each of positions independently chosen: .
(b) First position: choices. Second: (no repetition). Third: . Fourth: . Total: .
Example 3. How many -letter codes can be formed from the letters if (a) no letter is repeated, (b) the first letter is a vowel?
(a) .
(b) Vowels in the set: only , so choices for the first position. The remaining three positions: (no repetition). Total: .
Example 4. Five people are to stand in a row. In how many ways can this be done if two particular people, and , always stand together?
Treat as a single block. Now there are units to arrange: ways. Within the block, and can be in orders: . Total: .
Example 5 (harder). Find the number of -digit numbers (no leading zero) using only digits if no digit is repeated.
First digit: cannot be . So choices (from ). Remaining four positions: from the remaining digits (including now, since we used one of –). So .
Total: .
Try it yourself
- A coin is tossed times. How many possible outcomes?
- How many -letter words (any sequence) can be formed from English letters with repetition allowed?
- From a list of books, in how many ways can a top-3 (in order) be selected?
- A car number plate consists of two letters followed by three digits. How many distinct plates are possible if letters/digits can repeat?
- In a class of , in how many ways can a captain and a vice-captain be chosen (one person to each role)?
- How many even -digit numbers can be formed from with no repetition?
- There are paths from to and from to . How many routes go ?
- How many integers from to have at least one digit equal to ? (Complement counting.)
- How many four-letter words can be made from the letters if (a) repetition is allowed, (b) not allowed?
- In how many ways can books be put on a shelf in a row, all five used?
- From a group of boys and girls, a committee of boys and girl is to be formed. How many ways? (Multiplication of independent choices.)
- How many -digit numbers use digits – (with no leading zero), with no other restriction (repetition allowed)?
Pitfalls / Tricks
- "And" usually means multiply; "or" with disjoint cases usually means add.
- For "no repetition", the count at each step decreases by one.
- The first digit of a number can never be zero , separate it out.
- Insight. Before computing, write down each independent stage of the task with its number of options. Then multiply. This staged approach makes nine out of ten problems easy.