The fundamental counting principle
5 min read
Short answer
If a process has several stages and stage 1 can be done in ways, stage 2 in ways, and so on, then the whole process can be done in ways. The stages must be independent in structure: the number of options at each stage must not depend on the specific choices made earlier, only (at most) on how many items are used up.
Repeats allowed vs not allowed
If repeats are allowed, every stage has the same number of options: a 4-digit PIN with repeats gives codes. If repeats are not allowed, each stage has one fewer option than the last: . That second product is a permutation.
Handling constraints
When a position has a restriction (for example, the first digit cannot be 0), fill the restricted position first, then the others. Starting with the free positions can leave you unsure how many options the restricted one has.
Worked example
A license plate has 3 letters followed by 3 digits. How many plates are possible if repeats are allowed? If no letter or digit may repeat?
Repeats allowed: .
No repeats: .
Try it yourself
How many 4-digit PINs have no repeated digit?
Show the answer
. Each digit rules out the one already used.
Keep going with practice
Counting techniques are the base of Vidi's probability lessons, leading to permutations, combinations and binomial probabilities.