Skip to content
Family Table Math

Combinations

A combination is a selection of objects where order doesn’t matter. Choosing 33 friends to invite to a movie, picking pizza toppings, or being dealt a hand of cards are all combinations: the same items in a different order are the same selection. Combinations are closely related to permutations, and they’re the numbers in Pascal’s triangle.

A combination of rr objects chosen from nn different objects is a selection where order doesn’t matter. Choosing two letters from A, B, C gives just three combinations:

AB, AC, BC\text{AB, AC, BC}

Compare this with the six permutations AB, BA, AC, CA, BC, CB. Each combination shows up 2!=22! = 2 times as a permutation.

The number of combinations of rr objects chosen from nn different objects is

(nr)=n!r! (n−r)!\binom{n}{r} = \frac{n!}{r!\,(n - r)!}

Read (nr)\dbinom{n}{r} as ”nn choose rr”. It’s also written C(n,r)C(n, r) or nCr{}_nC_r, and most calculators have an nCr key: for (83)\dbinom{8}{3}, type 88, then nCr, then 33.

Every combination of rr objects can be put in order in r!r! ways. So each combination is counted r!r! times among the permutations:

P(n,r)=(nr)×r!so(nr)=P(n,r)r!P(n, r) = \binom{n}{r} \times r! \qquad\text{so}\qquad \binom{n}{r} = \frac{P(n, r)}{r!}

For example, (83)=P(8,3)3!=3366=56\dbinom{8}{3} = \dfrac{P(8, 3)}{3!} = \dfrac{336}{6} = 56.

  • (n0)=1\dbinom{n}{0} = 1 and (nn)=1\dbinom{n}{n} = 1: there’s one way to choose nothing, and one way to choose everything.
  • Symmetry: (nr)=(nn−r)\dbinom{n}{r} = \dbinom{n}{n - r}. Choosing 33 people to go is the same as choosing the n−3n - 3 who stay.
  • Pascal’s triangle: (nr)\dbinom{n}{r} is the entry tn,rt_{n, r} in row nn, position rr. See Pascal’s triangle for the patterns.

Ask the swap question: if I swap two of the chosen items, is it a different result?

Order matters: permutationOrder doesn’t matter: combination
president, VP, and treasurera committee of 33
first, second, third placethe top 33 finishers, unranked
arranging books on a shelfchoosing books to take on a trip
a lock codea hand of cards

Some committee problems have conditions, like “at least 22 teachers”. There are two ways to count them:

  • Cases: split into separate cases (exactly 22, exactly 33, …), count each with the multiplicative principle, then add the cases.
  • Complement: count everything, then subtract the cases you don’t want. For “at least one”, the complement is “none”, which is usually one quick calculation.

A pizza place has 88 toppings. How many different 33-topping pizzas can you order (all toppings different)?

Solution. Pepperoni-mushroom-olive is the same pizza as olive-pepperoni-mushroom, so order doesn’t matter:

(83)=8!3! 5!=8×7×63×2×1=56\binom{8}{3} = \frac{8!}{3!\,5!} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = 56

A coach has 66 swimmers.

  • (a) How many ways can she pick a 44-person relay team and the order they swim in?
  • (b) How many ways can she pick 44 swimmers to go to a training camp?

Solution. (a) Swimming first is different from swimming last, so order matters:

P(6,4)=6×5×4×3=360P(6, 4) = 6 \times 5 \times 4 \times 3 = 360

(b) The camp group is just a group, so order doesn’t matter:

(64)=6!4! 2!=15\binom{6}{4} = \frac{6!}{4!\,2!} = 15

Check: 15×4!=15×24=36015 \times 4! = 15 \times 24 = 360. ✓

A committee of 55 is chosen from 66 teachers and 88 students. How many committees have exactly 22 teachers?

Solution. Exactly 22 teachers means exactly 33 students. Choose the teachers and the students, and multiply:

(62)×(83)=15×56=840\binom{6}{2} \times \binom{8}{3} = 15 \times 56 = 840

Using the same 66 teachers and 88 students, how many committees of 55 have at least one teacher?

Solution. Use the complement. With no restriction, choose 55 from all 1414 people:

(145)=2002\binom{14}{5} = 2002

“At least one teacher” is the opposite of “no teachers”, which means all 55 are students: (85)=56\dbinom{8}{5} = 56.

2002−56=19462002 - 56 = 1946

You could also add the cases 1,2,3,4,51, 2, 3, 4, 5 teachers, but that’s five calculations instead of two.

Using a combination when order matters. If the chosen items get different roles or positions, it’s a permutation. A committee with a chair and a secretary is not just a committee.

Adding when you should multiply. ”22 teachers and 33 students” means multiply. Add only between separate cases (exactly 22 teachers or exactly 33 teachers).

Counting “at least one” as one choice times the rest. It’s tempting to pick one teacher (66 ways), then any 44 others ((134)\dbinom{13}{4} ways). This counts many committees more than once (a committee with two teachers gets counted twice). Use cases or the complement instead.

Forgetting a case. For “at least 22 of 44”, the cases are exactly 22, 33, and 44. List them before calculating.

Mixing up the formula. (nr)\dbinom{n}{r} has two factorials on the bottom, r!r! and (n−r)!(n - r)!. If your answer isn’t a whole number, check the formula.

1. (Warm-up) Evaluate (72)\dbinom{7}{2}, (1010)\dbinom{10}{10}, (90)\dbinom{9}{0}, and (123)\dbinom{12}{3}.

Solution

(72)=7×62=21\dbinom{7}{2} = \dfrac{7 \times 6}{2} = 21, (1010)=1\dbinom{10}{10} = 1, (90)=1\dbinom{9}{0} = 1, and (123)=12×11×106=220\dbinom{12}{3} = \dfrac{12 \times 11 \times 10}{6} = 220.

2. (Warm-up) Permutation or combination?

  • (a) being dealt 55 cards
  • (b) choosing a captain and an assistant captain
  • (c) picking 66 numbers for a lottery ticket
  • (d) the top 33 finishers in a race, in order
Solution

(a) Combination. (b) Permutation (different roles). (c) Combination. (d) Permutation.

3. (Warm-up) At a meeting, each of 1010 people shakes hands once with every other person. How many handshakes are there?

Solution

Each handshake is a pair of people, and the order doesn’t matter:

(102)=10×92=45\binom{10}{2} = \frac{10 \times 9}{2} = 45

4. (Core) Show that (94)=(95)\dbinom{9}{4} = \dbinom{9}{5}, and explain why this makes sense.

Solution(94)=9!4! 5!=126,(95)=9!5! 4!=126\binom{9}{4} = \frac{9!}{4!\,5!} = 126, \qquad \binom{9}{5} = \frac{9!}{5!\,4!} = 126

Choosing 44 items from 99 automatically leaves 55 behind, so every choice of 44 matches exactly one choice of 55.

5. (Core) A class of 2525 students chooses student council representatives.

  • (a) How many ways can it choose 33 representatives?
  • (b) How many ways can it choose a president, a vice-president, and a secretary?
Solution

(a) Order doesn’t matter: (253)=2300\dbinom{25}{3} = 2300.

(b) The roles are different: P(25,3)=25×24×23=13 800P(25, 3) = 25 \times 24 \times 23 = 13\,800.

Check: 2300×3!=13 8002300 \times 3! = 13\,800. ✓

6. (Core) A pizza place has 1010 toppings. How many different pizzas can you order with at most 33 toppings (a plain cheese pizza counts)?

Solution

Add the cases 0,1,2,30, 1, 2, 3 toppings:

(100)+(101)+(102)+(103)=1+10+45+120=176\binom{10}{0} + \binom{10}{1} + \binom{10}{2} + \binom{10}{3} = 1 + 10 + 45 + 120 = 176

7. (Core) A committee of 44 is chosen from 55 Grade 11 students and 77 Grade 12 students. How many committees have at least 22 Grade 11 students?

Solution

Add the cases 22, 33, and 44 Grade 11 students:

(52)(72)+(53)(71)+(54)(70)=10×21+10×7+5×1=210+70+5=285\begin{aligned} &\binom{5}{2}\binom{7}{2} + \binom{5}{3}\binom{7}{1} + \binom{5}{4}\binom{7}{0} \\ &= 10 \times 21 + 10 \times 7 + 5 \times 1 \\ &= 210 + 70 + 5 = 285 \end{aligned}

Check with the complement: the total is (124)=495\dbinom{12}{4} = 495, and committees with 00 or 11 Grade 11 student number (74)+(51)(73)=35+175=210\dbinom{7}{4} + \dbinom{5}{1}\dbinom{7}{3} = 35 + 175 = 210. 495−210=285495 - 210 = 285. ✓

8. (Challenge) A diagonal of a polygon joins two vertices that aren’t next to each other. How many diagonals does a 1010-sided polygon (decagon) have?

Solution

Any pair of the 1010 vertices gives a line segment: (102)=45\dbinom{10}{2} = 45. Of these, 1010 are sides, not diagonals:

45−10=3545 - 10 = 35

9. (Challenge) A committee of 55 is chosen from 1212 people. Ravi and Mei refuse to serve together. How many committees are possible?

Solution

Use the complement. All committees: (125)=792\dbinom{12}{5} = 792. Committees with both Ravi and Mei: they’re in, so choose the other 33 from the remaining 1010: (103)=120\dbinom{10}{3} = 120.

792−120=672792 - 120 = 672