Counting Principles
To find a probability, you often need to know how many outcomes there are. Listing them works for small problems, but nobody wants to list every possible licence plate. Two simple rules, the additive and multiplicative counting principles, let you count huge sets of outcomes without writing them all down.
Key ideas
Section titled “Key ideas”Lists and tree diagrams
Section titled “Lists and tree diagrams”For small problems, list the outcomes in an organized way, or draw a tree diagram with one level of branches for each stage. For example, with shirts (red, blue, green) and pairs of pants (jeans, khakis), a tree has first branches, each splitting into :
| Shirt | Pants | Outfit |
|---|---|---|
| red | jeans, khakis | outfits |
| blue | jeans, khakis | outfits |
| green | jeans, khakis | outfits |
That’s outfits. Lists and trees are great for checking your thinking, but they get too big very quickly. The counting principles do the same job with arithmetic.
The multiplicative counting principle
Section titled “The multiplicative counting principle”If a task is done in stages, with ways to do the first stage and ways to do the second, then there are
ways to do the whole task. This extends to any number of stages: multiply the number of choices at each stage. The key word is “and”: you choose a shirt and pants.
The additive counting principle
Section titled “The additive counting principle”If a choice can be made in one of two ways that don’t overlap, with options of the first kind or options of the second kind, then there are
options altogether. The key word is “or”: you pick a hot meal or a sandwich, not both. (If the two kinds can overlap, subtract the overlap, just like the additive principle for probability.)
Factorial notation
Section titled “Factorial notation”The product of all the whole numbers from down to is written and read ” factorial”:
For example, . By the multiplicative principle, is the number of ways to arrange different objects in a row: choices for the first spot, for the next, and so on.
We also define
It may look strange, but there is exactly one way to arrange nothing (do nothing!), and this choice makes the formulas on the next pages work. Most calculators have an or key.
Factorials grow very fast, so cancel before you multiply:
Worked examples
Section titled “Worked examples”Example 1: Outfits
Section titled “Example 1: Outfits”You have shirts, pairs of pants, and pairs of shoes. How many different outfits can you make?
Solution. Choosing an outfit has three stages: shirt and pants and shoes. By the multiplicative principle:
Check: the tree diagram above had shirt-and-pants branches, and each now splits into shoe branches, giving . ✓
Example 2: Using both principles
Section titled “Example 2: Using both principles”A cafeteria offers hot meals and sandwiches. You pick one main dish, plus one of drinks. How many different lunches are possible?
Solution. The main dish is a hot meal or a sandwich, which don’t overlap, so add: main dishes. Then you choose a main dish and a drink, so multiply:
Example 3: Codes with and without repetition
Section titled “Example 3: Codes with and without repetition”- (a) A licence plate has letters followed by digits. How many plates are possible if letters and digits can repeat?
- (b) How many three-digit numbers (from to ) have no repeated digits?
Solution. (a) There are choices for each letter and for each digit:
(b) Fill the most restricted spot first. The first digit can’t be , so it has choices. The second digit can be anything except the first: choices (now is allowed). The third can be anything except the first two: choices.
Example 4: Factorials
Section titled “Example 4: Factorials”Six friends line up for a photo. How many different orders are possible? Then simplify .
Solution. There are choices for the first spot, for the second, and so on:
For the fraction, write as and cancel:
Common mistakes
Section titled “Common mistakes”Adding when you should multiply. If you choose one thing and then another, multiply. Only add when the options are separate alternatives (one or the other).
Forgetting that choices shrink without repetition. If a digit or person can’t be used twice, each stage has one fewer option than the stage before.
Ignoring restrictions until the end. Deal with the most restricted position first (like “the first digit can’t be ”), then fill in the rest.
Thinking . By definition, .
Multiplying out huge factorials. Cancel first: . Your calculator may overflow on , but you don’t need it.
Practice
Section titled “Practice”1. (Warm-up) An ice cream shop has flavours, toppings, and a choice of cone or cup. How many different single-scoop orders (one flavour, one topping, cone or cup) are possible?
Solution
2. (Warm-up) Evaluate , , and .
Solution
, , and .
3. (Warm-up) You want to borrow one book: either one of mystery novels or one of science-fiction novels. How many choices do you have?
Solution
The two groups don’t overlap, so add: .
4. (Core) A Canadian postal code has the pattern letter, digit, letter, digit, letter, digit (like K1A 0B1). If any letter and any digit could be used in each spot, how many postal codes would be possible?
Solution
(In real life, some letters aren’t used, so there are fewer.)
5. (Core) A phone PIN has digits.
- (a) How many PINs are possible?
- (b) How many have no repeated digits?
Solution
(a) .
(b) .
6. (Core) Six runners race (no ties). In how many ways can they finish? In how many ways can the gold, silver, and bronze medals be awarded?
Solution
All six places: .
Just the top three: .
7. (Core) How many odd three-digit numbers (from to ) have no repeated digits?
Solution
Fill the most restricted spots first. The last digit must be odd: choices (). The first digit can’t be or the last digit: choices. The middle digit can be anything except those two: choices.
8. (Challenge) Solve .
Solution
Cancel: . So , which gives , or . Since can’t be negative, .
Check: . ✓
9. (Challenge) How many whole numbers from to contain at least one digit ?
Solution
Count the opposite: numbers with no . Write every number as three digits ( to , with leading zeros). Each digit has choices (anything but ), giving strings, but that includes , which isn’t in the range. So numbers have no .