Counting Principle
Every question with a fully worked solution.
- Counting Principle - Video - Arrangements of objects in a row Watch
Theory
The multiplication principle says that if a task is done in stages, the number of ways is the product of the number of choices at each stage. This Year 11 Mathematics Extension 1 page covers choices with and without repetition, why \(n\) objects can be arranged in a line in \(n!\) ways, numbers and codes with restrictions, counting by cases, and arrangements where two people must be together or apart.
The multiplication principle (also called the fundamental counting principle): if one stage of a task can be done in \(m\) ways and, for each of these, a second stage can be done in \(n\) ways, then the two stages together can be done in \(m\times n\) ways. It extends to any number of stages: multiply the number of choices at every stage.
With repetition. If the same choices are available at every stage, each stage has the same number of choices. A 2-letter code using A to Z with letters allowed to repeat has \(26\times26=26^2\) possibilities.
Without repetition. If an object cannot be used twice, each stage has one choice fewer than the stage before. Filling the positions in a line one at a time, \(n\) different objects can be arranged in a line in \(n\times(n-1)\times\dots\times2\times1=n!\) ways (see Factorial Notation).
Restrictions. Deal with the restricted stage first: a first digit that cannot be \(0\), a last digit that must be even, a letter that must be a vowel. Then fill the other stages with whatever is left. If the number of choices at one stage depends on what was chosen earlier, split the count into cases, count each case with the multiplication principle, and add the cases.
Together or apart. To keep two objects together, treat them as one block, arrange the block with the other objects, then multiply by the number of orders inside the block. To keep them apart, use the complement: total arrangements minus the arrangements with them together.
The multiplication principle for \(k\) stages:
Choosing \(r\) times from \(n\) options:
Arranging \(n\) different objects in a line:
| Condition | Strategy |
|---|---|
| A position is restricted | Fill that position first |
| Choices depend on an earlier choice | Split into cases and add |
| Objects together | One block: (arrangements of block and others) \(\times\) (orders inside block) |
| Objects not together | Total \(-\) together |
| \(A\) somewhere before \(B\) | Half of the total, by symmetry |
How to count with the multiplication principle
- Break the task into stages: the positions to fill or the decisions to make, in an order you choose.
- Fill the restricted stages first and write the number of choices for each stage, e.g. "First digit: \(9\) choices".
- Multiply the numbers of choices: "Number of ways \(=\dots\)". Write \(n!\) when \(n\) different objects fill \(n\) positions.
- Split into cases if a later stage depends on an earlier choice (or count by the number of digits), and add the cases.
- Use the complement for "not together" or "at least one": count the total and subtract the unwanted arrangements. Finish with a \(\therefore\) statement.
Use the multiplication principle (three stages):
Sandwich: \(7\) choices, drink: \(4\) choices, dessert: \(3\) choices
| \(\text{Number of meal deals}\) | \(=\) | \(7\times4\times3\) |
| \(\) | \(=\) | \(84\) |
\(\therefore\) \(84\) different meal deals are possible.
(i) letters may be repeated?
(ii) no letter is repeated?
(iii) no letter is repeated and the code starts with a vowel?
(i) Each of the \(4\) positions has \(6\) choices:
| \(\text{Number}\) | \(=\) | \(6\times6\times6\times6\) |
| \(\) | \(=\) | \(6^4\) |
| \(\) | \(=\) | \(1296\) |
(ii) Each position has one choice fewer than the one before:
| \(\text{Number}\) | \(=\) | \(6\times5\times4\times3\) |
| \(\) | \(=\) | \(360\) |
(iii) Fill the restricted first position first. The vowels are A and E: \(2\) choices. The other \(3\) positions are filled from the \(5\) letters left:
| \(\text{Number}\) | \(=\) | \(2\times5\times4\times3\) |
| \(\) | \(=\) | \(120\) |
\(\therefore\) (i) \(1296\) (ii) \(360\) (iii) \(120\)
(i) Kai and Lena stand next to each other?
(ii) Kai and Lena do not stand next to each other?
(iii) Kai stands somewhere to the left of Lena?
(i) Treat Kai and Lena as one block. The block and the other \(5\) people are \(6\) items: \(6!\) ways. Inside the block they can be ordered in \(2\) ways.
| \(\text{Number}\) | \(=\) | \(2\times6!\) |
| \(\) | \(=\) | \(2\times720\) |
| \(\) | \(=\) | \(1440\) |
(ii) Use the complement (total minus together). All arrangements: \(7!=5040\)
| \(\text{Not together}\) | \(=\) | \(5040-1440\) |
| \(\) | \(=\) | \(3600\) |
(iii) Use symmetry. Swapping Kai and Lena pairs each arrangement with Kai on the left with one with Kai on the right, so exactly half of the arrangements have Kai to the left:
| \(\text{Number}\) | \(=\) | \(\dfrac{7!}{2}\) |
| \(\) | \(=\) | \(2520\) |
\(\therefore\) (i) \(1440\) (ii) \(3600\) (iii) \(2520\)
(i) How many of these numbers are odd?
(ii) How many are even?
(i) The first digit must be \(4,5\) or \(6\); the last digit must be \(1,3\) or \(5\). The digit \(5\) is in both lists, so split into cases on the first digit.
Case 1: first digit \(4\) or \(6\) (\(2\) choices). Last digit: \(3\) choices. Middle two digits: \(4\times3\)
| \(2\times3\times4\times3\) | \(=\) | \(72\) |
Case 2: first digit \(5\) (\(1\) choice). Last digit: \(1\) or \(3\) (\(2\) choices). Middle two digits: \(4\times3\)
| \(1\times2\times4\times3\) | \(=\) | \(24\) |
| \(\text{Total}\) | \(=\) | \(72+24\) |
| \(\) | \(=\) | \(96\) |
(ii) Use the total. First digit \(4,5\) or \(6\): \(3\) choices, then \(5\times4\times3\) for the other places.
| \(N_{\text{total}}\) | \(=\) | \(3\times5\times4\times3=180\) |
| \(N_{\text{even}}\) | \(=\) | \(180-96\) |
| \(\) | \(=\) | \(84\) |
\(\therefore\) (i) \(96\) odd numbers (ii) \(84\) even numbers
Common pitfalls
Frequently asked questions
What is the multiplication principle in counting?
If a task is done in stages and the first stage has \(m\) choices and the second has \(n\) choices, the whole task can be done in \(m\times n\) ways. For more stages, multiply all the numbers of choices.
When do you add instead of multiply when counting?
Add when the count splits into separate cases that cannot both happen, e.g. numbers that start with \(5\) or start with \(6\). Multiply when every stage happens, e.g. choosing a first digit and then a last digit.
Why can n objects be arranged in n! ways?
Fill the positions one at a time. The first position has \(n\) choices, the second \(n-1\), and so on down to \(1\) for the last. By the multiplication principle the total is \(n(n-1)\times\dots\times2\times1=n!\).
How do you count arrangements where two people are not next to each other?
Use the complement. Count all arrangements, then subtract the arrangements where they are together (treated as one block, times \(2\) for their order). For \(5\) people in a row: \(5!-2\times4!=120-48=72\).
How many ways can boys and girls alternate in a row?
With equal numbers there are \(2\) patterns (starting with a boy or a girl); then arrange each group in its own places. For \(3\) boys and \(3\) girls: \(2\times3!\times3!=72\). With one more of one group, only \(1\) pattern is possible.