This topic counts arrangements and selections: the difference between permutations and combinations, the factorial notation, and problems with conditions.
11.1 Difference between permutations and combinations
Counting questions ask "how many ways?". First decide whether the order of the items matters. That decides whether you need a permutation 排列 or a combination 组合.
The counting principle
If one choice can be made in $m$ ways and a second choice in $n$ ways, the two together can be made in $m \times n$ ways. Draw one box for each place and write the number of choices in it.

Worked example 1. How many 5-digit numbers can be made from the digits 1, 3, 5, 6, 8, 9, if no digit is used more than once?
- The first place has 6 choices, the next 5, and so on, as in the figure.
- $6 \times 5 \times 4 \times 3 \times 2 = 720$.
Factorials
$n! = n \times (n - 1) \times \ldots \times 2 \times 1$ is the number of ways to arrange $n$ different items in a row. By definition, $0! = 1$.
Permutations and combinations
| order matters | order does not matter | |
|---|---|---|
| name | permutation | combination |
| words in the question | arrange, number, code, queue, 1st/2nd/3rd | choose, select, team, committee, group |
| $r$ items from $n$ | ${}^{n}P_{r} = \dfrac{n!}{(n - r)!}$ | ${}^{n}C_{r} = \dbinom{n}{r} = \dfrac{n!}{r!(n - r)!}$ |
Each group of $r$ items can be arranged in $r!$ orders, so ${}^{n}C_{r} = \dfrac{{}^{n}P_{r}}{r!}$.
Worked example 2. Ten runners are in a race. Find the number of ways to give (a) a gold, a silver and a bronze medal (b) three identical certificates.
- (a) Order matters: ${}^{10}P_{3} = 10 \times 9 \times 8 = 720$.
- (b) Order does not matter: ${}^{10}C_{3} = \dfrac{720}{3!} = 120$.
11.2 Notation n! and permutation and combination expressions n!
Some questions give a permutation ${}^{n}P_{r}$ or a combination ${}^{n}C_{r}$ with an unknown $n$. Write each one as a product of brackets in $n$, cancel, and solve the equation.
Writing ${}^{n}P_{r}$ and ${}^{n}C_{r}$ in terms of $n$
${}^{n}P_{r}$ is the product of $r$ factors, counting down from $n$. Divide by $r!$ to get ${}^{n}C_{r}$.
| $r$ | ${}^{n}P_{r}$ | ${}^{n}C_{r}$ |
|---|---|---|
| 1 | $n$ | $n$ |
| 2 | $n(n - 1)$ | $n(n - 1) \div 2$ |
| 3 | $n(n - 1)(n - 2)$ | $n(n - 1)(n - 2) \div 6$ |

The figure shows ${}^{5}C_{2}$: each line joins a pair of the 5 points. Each point has 4 lines, and each line has 2 ends, so there are $\dfrac{5 \times 4}{2} = 10$ lines.
For a factorial 阶乘, cancel the common part: $\dfrac{(n + 2)!}{n!} = (n + 2)(n + 1)$.
Solving for $n$
- Write every term as brackets in $n$.
- Divide both sides by common factors such as $n(n - 1)$; they are not zero, because $n \geqslant r$.
- Solve, and keep only a positive whole number $n$ that is large enough.
Worked example 1. ${}^{n}C_{2} = 45$. Find $n$.
- $\dfrac{n(n - 1)}{2} = 45$, so $n^2 - n - 90 = 0$.
- $(n - 10)(n + 9) = 0$, and $n > 0$, so $n = 10$.
Worked example 2. ${}^{n}P_{3} = 8 \times {}^{n}C_{2}$. Find $n$.
- $n(n - 1)(n - 2) = 8 \times \dfrac{n(n - 1)}{2} = 4n(n - 1)$.
- Divide by $n(n - 1)$: $n - 2 = 4$, so $n = 6$.
Showing a result
Write both terms over a common denominator, take out the common factors, and simplify to the required form.
Worked example 3. Show that ${}^{n}C_{2} + {}^{n+1}C_{2} = n^2$.
- $\dfrac{n(n - 1)}{2} + \dfrac{(n + 1)n}{2} = \dfrac{n[(n - 1) + (n + 1)]}{2}$.
- $= \dfrac{n \times 2n}{2} = n^2$.
11.3 Arrangement and selection problems
Most exam questions add a restriction 限制条件, such as "odd", "does not start with 0" or "at least 至少 2 teachers". Deal with the restriction first, then count the rest.
Arrangements: fill the restricted places first

Worked example 1. How many odd 5-digit numbers can be made from 1, 3, 5, 6, 8, 9, with no digit repeated?
- The last digit must be odd: 4 choices. Fill that box first, as in the figure.
- The other four places use the 5 digits left: $5 \times 4 \times 3 \times 2$.
- $4 \times 120 = 480$.
Split into cases when one choice changes another
Worked example 2. 5-digit numbers are made from 0, 1, 2, 3, 4, 5, 6, with no digit repeated and no 0 at the start. How many are even?
- Last digit 0: the first place then has 6 choices: $6 \times 5 \times 4 \times 3 = 360$.
- Last digit 2, 4 or 6: the first place has 5 choices (not 0, not the last digit): $3 \times 5 \times 5 \times 4 \times 3 = 900$.
- Add the cases 格: $360 + 900 = 1260$.
Selections: cases, or total minus the unwanted
- "At least" or "at most 至多": add the separate cases, or subtract the unwanted cases from the total.
- Two people who must be together: count "both in" plus "both out".
- Letters that must be together in an arrangement 约定: treat them as one block, then multiply by the ways to arrange the block.
Worked example 3. A committee of 6 is chosen from 20 people. Anwar and Bo cannot both be on it. How many committees are possible?
- Total: ${}^{20}C_{6} = 38\,760$. Both on it: choose the other 4 from 18: ${}^{18}C_{4} = 3060$.
- $38\,760 - 3060 = 35\,700$.
Worked example 4. A team of 6 is chosen from 10 people. Two sisters must not be separated. How many teams are possible?
- Both in: choose 4 more from 8: ${}^{8}C_{4} = 70$. Both out: ${}^{8}C_{6} = 28$.
- $70 + 28 = 98$.
Words in the questions
The exercise sheets for this topic also use these words:
- selection 甄选
- algebraic method 代数方法