4B

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:

breadfillingdrink
$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.

Example 1●

How many 4-digit PINs are there (digits $0$ to $9$, repeats allowed)? How many contain at least one $7$?

$10^4 = 10\,000$ PINs
Each of the 4 boxes can be any of the 10 digits.
No $7$: $9^4 = 6561$
'At least one 7' has many cases. Count the opposite instead: PINs with no 7 use only 9 digits in each box.
At least one $7$: $10\,000 - 6561 = 3439$
Subtract from the total.

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.

Example 2●●

How many 4-digit even numbers can be made from the digits $1, 2, 3, 4, 5, 6, 7$, with no digit repeated?

Last digit: $3$ choices
The restriction is on the last digit: it must be 2, 4 or 6. Fill that box first.
Then $6 \times 5 \times 4$ for the first three digits
Now fill the other three boxes from the 6 digits left, in order.
$3 \times 6 \times 5 \times 4 = 360$
Example 3●●

How many 3-digit numbers have no repeated digit?

First digit: $9$
The first digit can't be 0, so it has 9 choices. Do it first.
$9 \times 9 \times 8 = 648$
The second digit can be 0 but not the first digit: 9 choices. The third: 8.

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$.

Flashcards
Ordered, with repetition
$n^r$
Ordered, without repetition
${}^nP_r = \dfrac{n!}{(n - r)!}$
Arrange $n$ distinct objects in a row
$n!$
Practice
  1. A café offers $4$ breads, $6$ fillings and $3$ drinks. How many different meal deals (one of each) are there?

  2. How many 3-digit numbers can be made using only the odd digits, with repetition allowed?

  3. In how many ways can gold, silver and bronze be awarded in a race of $12$ runners?

  4. ${}^8P_3$ equals:

  5. How many 4-digit PINs contain at least one $7$?

  6. How many 4-digit codes made only of odd digits (repeats allowed) contain at least one $5$?

  7. How many 4-digit even numbers can be made from $1, 2, 3, 4, 5, 6, 7$ without repetition?

  8. Six people sit in a row. In how many arrangements is Ana at one end?

  9. Exam style: how many 3-digit numbers have no repeated digit?

  10. Exam style: how many 3-digit even numbers have no repeated digit?

Formula sheet