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 .
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. Factorial fluency. Evaluate , , and . Show cancellation before multiplying the fraction.
H2. Listing outfits. You have three different shirts, two different pairs of trousers, and two different pairs of shoes. Make a tree diagram or organized list of every outfit that uses one of each. Check your total with a multiplication expression.
H3. Add or multiply? Give a counting expression and explain your choice of operation.
- (a) You borrow one book from four mysteries, six science-fiction books, or three poetry books. Every book is different, and the categories do not overlap.
- (b) Lunch consists of one main, one drink, and one dessert. There are two soups or three sandwiches for the main, four drinks, and two desserts. Each option is different.
H4. Letter-and-digit codes. A code has three letters from the 26-letter alphabet, followed by two digits from to . Count codes when
- (a) letters and digits may repeat;
- (b) no letter repeats and no digit repeats.
The digit part may begin with .
H5. Five-digit PINs. Digits are chosen from to .
- (a) How many PINs are possible if repetition is allowed and zero may come first?
- (b) How many if no digit repeats, but zero may still come first?
- (c) How many if no digit repeats and zero cannot come first?
H6. A race. Seven different runners finish a race, with no ties. How many complete finishing orders are possible? How many different ordered lists of just the first four finishers are possible?
Challenge
Section titled “Challenge”H7. An unknown factorial. Solve for every permitted whole-number value of . State the domain and check your answer.
H8. Even numbers. How many even four-digit numbers have no repeated digits? Use digits from to , and remember that a four-digit number cannot start with . Explain why an ending of needs a different count from an ending of , , , or .
H9. At least one seven. How many whole numbers from to contain at least one digit ? Explain how you handle numbers with fewer than four digits without counting as part of the requested range.
H10. Several restrictions. A code has three different letters chosen from A, B, C, D, E, followed by three different digits chosen from to . The first digit cannot be , and the last digit must be odd. How many codes are possible? Show the choices for every position in a sensible order.