Ordered selections
The multiplication principle with boxes, ordered selections with repetition (n to the power r) and without repetition (nPr), permutations of a whole set, and dealing with restrictions first.
Counting questions get hard quickly if you try to list everything. The trick is to think of the selection as a series of choices made one after another, count each choice, and multiply. Two questions decide which formula you need: does order matter, and is repetition allowed? This section deals with ordered selections.
The multiplication principle
A café offers $4$ breads, $6$ fillings and $3$ drinks. For each bread there are $6$ fillings, giving $4 \times 6 = 24$ sandwiches, and each of those goes with any of $3$ drinks. So there are $4 \times 6 \times 3 = 72$ meal deals.
Set it out with one box per stage, and write the number of choices in each box:
| bread | filling | drink |
|---|---|---|
| $4$ | $6$ | $3$ |
With repetition: powers
If each of $r$ positions can be filled by any of $n$ objects, and objects can be reused, every box has $n$ choices. So there are $n^r$ arrangements.
How many 4-digit PINs are there (digits $0$ to $9$, repeats allowed)? How many contain at least one $7$?
Without repetition: permutations
In a race of $12$ runners, gold can go to any of $12$, then silver to any of the other $11$, then bronze to any of the other $10$. That is $12 \times 11 \times 10 = 1320$ ways. Each box has one fewer choice than the box before.
The fraction form comes from unrolling: $\dfrac{12!}{9!} = \dfrac{12 \times 11 \times 10 \times 9!}{9!} = 12 \times 11 \times 10$.
Deal with the difficulties first
When some boxes have a restriction, fill those boxes first. The boxes record the order you choose in, which doesn't have to be left to right.
How many 4-digit even numbers can be made from the digits $1, 2, 3, 4, 5, 6, 7$, with no digit repeated?
How many 3-digit numbers have no repeated digit?
Your turn
How many 3-digit even numbers have no repeated digit? (Hint: is $0$ in the last place a special case?)
Show the working
Split by the last digit. If it is $0$: first digit $9$ ways, middle $8$ ways, giving $72$. If it is $2, 4, 6$ or $8$ (4 ways): the first digit can't be $0$ or the last digit, so $8$ ways, and the middle has $8$ ways, giving $4 \times 8 \times 8 = 256$. Total $72 + 256 = 328$.
A café offers $4$ breads, $6$ fillings and $3$ drinks. How many different meal deals (one of each) are there?
$4 \times 6 \times 3 = 72$.
How many 3-digit numbers can be made using only the odd digits, with repetition allowed?
Each of the 3 boxes has $5$ choices: $5^3 = 125$.
In how many ways can gold, silver and bronze be awarded in a race of $12$ runners?
${}^{12}P_3 = 12 \times 11 \times 10 = 1320$.
${}^8P_3$ equals:
$8 \times 7 \times 6 = 336$. ($56$ is ${}^8C_3$, which ignores order, and $512 = 8^3$ allows repetition.)
How many 4-digit PINs contain at least one $7$?
Total $10^4 = 10\,000$. With no $7$: $9^4 = 6561$. So $10\,000 - 6561 = 3439$.
How many 4-digit codes made only of odd digits (repeats allowed) contain at least one $5$?
Total $5^4 = 625$. With no $5$: $4^4 = 256$. So $625 - 256 = 369$.
How many 4-digit even numbers can be made from $1, 2, 3, 4, 5, 6, 7$ without repetition?
Last digit first: $3$ ways ($2$, $4$ or $6$). Then the first three digits: $6 \times 5 \times 4 = 120$. Total $360$.
Six people sit in a row. In how many arrangements is Ana at one end?
Place Ana first: $2$ ends. Then the other $5$ fill the remaining seats in $5! = 120$ ways. Total $2 \times 120 = 240$.
Exam style: how many 3-digit numbers have no repeated digit?
First digit: $9$ ways (not $0$). Second: $9$ ways (any except the first). Third: $8$ ways. Total $9 \times 9 \times 8 = 648$.
Exam style: how many 3-digit even numbers have no repeated digit?
Last digit $0$: $9 \times 8 = 72$. Last digit $2, 4, 6$ or $8$: $4$ ways, then the first digit has $8$ ways (not $0$, not the last digit) and the middle $8$ ways, giving $256$. Total $72 + 256 = 328$.
Coaching Centre