Count the ways โ and ask: does the order matter?
โ Back to Math Topics โฌ Assignment (PDF)If one choice can be made in \(a\) ways and a second choice in \(b\) ways, the two together can be made in \(a \times b\) ways. It works for any number of choices: just keep multiplying.
How many ways can 4 friends stand in a line? 4 can go first, then 3 are left for second place, 2 for third, and 1 for last: \(4 \times 3 \times 2 \times 1 = 24\). This product has a name and a symbol:
| \(n\) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|---|
| \(n!\) | 1 | 1 | 2 | 6 | 24 | 120 | 720 | 5040 | 40320 |
A permutation is an arrangement where the order counts. Choosing a president and a secretary from 5 people: \(5\) choices for president, then \(4\) for secretary, \(5 \times 4 = 20\) ways.
\({}_{n}P_{r}\) counts the ways to choose \(r\) things from \(n\) and put them in order. For example \({}_{8}P_{3} = 8 \times 7 \times 6 = 336\).
A combination is a selection where only who is chosen counts, not the order. Picking 2 people from 5 to go on a trip: the 20 ordered pairs count every pair twice (AnnโBen and BenโAnn are the same trip), so there are \(20 \div 2 = 10\) ways.
We divide by \(r!\) because each group of \(r\) can be put in order in \(r!\) ways. For example \({}_{8}C_{3} = \dfrac{8 \times 7 \times 6}{3 \times 2 \times 1} = 56\). You will also see it written \(\binom{n}{r}\), read "\(n\) choose \(r\)".
Ask: if I swap two of the chosen items, do I get something different?
| Permutation \({}_{n}P_{r}\) | Combination \({}_{n}C_{r}\) | |
|---|---|---|
| Order | matters | does not matter |
| Key words | arrange, order, line up, ranking, 1st/2nd/3rd, president & secretary, code | choose, select, team, group, committee, hand of cards, toppings |
| Example | gold, silver, bronze from 10 runners: \({}_{10}P_{3} = 720\) | a team of 3 from 10 runners: \({}_{10}C_{3} = 120\) |
Each number is the sum of the two above it, and row \(n\) lists \({}_{n}C_{0}, {}_{n}C_{1}, \ldots, {}_{n}C_{n}\). Row 5 shows \({}_{5}C_{2} = 10\).