Permutations and Combinations
Decide whether order matters, count arrangements with factorials and permutations, count groups with combinations, and use them to find probabilities.
Welcome back!
Step 1 of 13Learn
Does order matter?
Eight runners race. How many ways can gold, silver and bronze be awarded? Now a different question: a coach picks 3 of the same 8 runners for a relay pool. How many groups are possible? The two answers are very different, and the reason is order.
On the podium, Ana-Ben-Cai (Ana gold) is a different result from Cai-Ben-Ana (Cai gold). In the relay pool, {Ana, Ben, Cai} is the same group however you list it.
- A permutation is an arrangement where order matters.
- A combination is a selection where order does not matter.
Both start from the factorial: n! = n × (n − 1) × … × 2 × 1. It counts the ways to arrange n different objects in a row. Five books can be lined up on a shelf in 5! = 5 × 4 × 3 × 2 × 1 = 120 ways. Factorials grow astonishingly fast: 10! is 3,628,800, and 52!, the number of ways to shuffle a deck, has 68 digits. By definition, 0! = 1.
Step 2 of 13Practice · Sort into groups
In which situations does order matter?
Tap an item, then tap its group (or drag it there).
Step 3 of 13Learn
Permutations: counting arrangements
For the podium, 8 runners can win gold. Then 7 remain for silver, then 6 for bronze: 8 × 7 × 6 = 336 possible podiums. You stop after 3 stages because only 3 medals exist.
The general formula for arranging r items chosen from n is
nPr = n! / (n − r)!
For the podium, 8P3 = 8!/5! = (8 × 7 × 6 × 5!)/5! = 336. The 5! on the bottom cancels the runners who did not place.
In practice, multiplying the shrinking options is faster than the formula: start at n and multiply r numbers going down. 10P4 = 10 × 9 × 8 × 7 = 5,040, the same as the no-repeat PIN count from the last lesson, because that was a permutation too.
Most calculators have nPr and nCr keys, but on a test it is safer to understand where the numbers come from, because the hard part is deciding which formula fits.
Step 4 of 13Diagram
Filling the podium from 8 runners
Tap a shape with to see more.
- Gold: 8 choices
- Silver: 7 choices
The gold winner cannot also take silver.
- Bronze: 6 choices
- 8 × 7 × 6 = 336
This is 8P3, the number of ordered podiums.
Step 5 of 13Practice · Work it out
A club with 10 members elects a president, a vice president and a treasurer. No one can hold two offices. How many different sets of officers are possible?
Step 6 of 13Learn
Combinations: counting groups
For the relay pool, every group of 3 runners shows up in the podium count several times, once for each way to order those 3 people. Three people can be ordered in 3! = 6 ways. So the number of groups is the number of podiums divided by 6:
336 ÷ 6 = 56 groups.
The general formula divides out the orderings:
nCr = n! / (r! (n − r)!), often read "n choose r."
Examples:
- Choosing 2 toppings from 6: 6C2 = (6 × 5)/(2 × 1) = 15.
- Choosing a 5-card hand from 52: 52C5 = 2,598,960.
Two handy facts. First, nCr is never larger than nPr, since you are dividing by r!. Second, nCr = nC(n − r): choosing 3 people to go is the same as choosing the 5 who stay, so 8C3 = 8C5 = 56. Use whichever makes the arithmetic shorter.
Step 7 of 13Compare
Permutations vs. combinations
| Aspect | Permutation | Combination |
|---|---|---|
| Order matters? | Yes | No |
| Key question | Is swapping two items a new result? | Is it just a group or set? |
| Formula | nPr = n!/(n − r)! | nCr = n!/(r!(n − r)!) |
| 8 runners, choose 3 | 336 podiums | 56 groups |
| Typical words | arrange, order, rank, first/second, code | choose, select, group, team, hand, committee |
Step 8 of 13Practice · Work it out
A pizza shop offers 6 toppings. How many different 2-topping pizzas can you order (no double toppings)?
Step 9 of 13Learn
Probability with counting
Counting formulas make probability possible when sample spaces are huge.
Lottery. A lottery draws 6 numbers from 1 to 49, order irrelevant. There are 49C6 = 13,983,816 possible tickets, and only one wins the jackpot. Your chance with one ticket is about 1 in 14 million. Buying 10 tickets makes it 10 in 14 million, which is still about 0.00007%.
Committee. A teacher picks 3 students at random from 10 for a project team. What is the probability that both Mia and Jay are picked? Total teams: 10C3 = 120. Teams with both Mia and Jay need one more student from the other 8: 8C1 = 8. So P = 8/120 = 1/15.
The structure is always the same: count the favorable selections, count all possible selections, and divide. Use permutations for both counts or combinations for both counts; mixing them is a common way to get an answer off by a factor like 6.
Step 10 of 13Note
Step 11 of 13Practice · True or false
From a group of 8 people, there are exactly as many ways to choose 3 people as there are to choose 5 people.
Step 12 of 13Practice · Chart
How many groups of each size from 8 people
The bars are symmetric: choosing 3 people to take is the same as choosing 5 to leave behind.
Tap the group size with the most possible groups.
Tap the bar that answers the question, then press Check.
Step 13 of 13Practice · Choose one
A class of 20 students must choose 3 students to form a project team, with no roles. How many different teams are possible?
Lesson complete!