Combinations

AS · S1 · 13 min

A combination is a selection in which the order does not matter: choosing a committee, a hand of cards, a team, a handful of sweets from a bag. Combinations are counted with nCr{}^{n}C_{r}, the same number that appears in the binomial expansion and in the binomial distribution. On Paper 5 they appear in the permutations and combinations question (committees with conditions, "at least one", particular people included or excluded, selections followed by arrangements) and in probability questions where items are drawn at random without replacement.

Permutation or combination?

The single most important decision in any counting question is whether order matters.

SituationOrder matters?Count with
Arranging people in a queueYespermutations
Awarding gold, silver, bronzeYespermutations
Choosing a committee of 44Nocombinations
Choosing a chair, a secretary and two ordinary membersPartlysplit the roles
Dealing a hand of 55 cardsNocombinations

A useful test: if swapping two of the chosen items gives a different outcome, order matters. Swapping two committee members gives the same committee; swapping the gold and silver medallists does not give the same result.

From permutations to combinations

Choose 33 letters from A, B, C, D, E. If order mattered there would be 5P3=60{}^{5}P_{3} = 60 ordered choices. But every selection, say {A,B,C}\{A, B, C\}, appears 3!=63! = 6 times among those 6060 (ABC, ACB, BAC, BCA, CAB, CBA). So the number of selections is 606=10\dfrac{60}{6} = 10.

Definition

A combination of rr objects from nn different objects is an unordered selection of rr of them. The number of such combinations is

nCr=(nr)=n!r! (n−r)!=nPrr!.{}^{n}C_{r} = \binom{n}{r} = \frac{n!}{r!\,(n - r)!} = \frac{{}^{n}P_{r}}{r!}.

Both notations nCr{}^{n}C_{r} and (nr)\dbinom{n}{r} are used on Cambridge papers. Your calculator has an nCr{}^{n}C_{r} key; use it.

Key result

Useful facts:

nC0=nCn=1,nC1=n,nCr=nCn−r.{}^{n}C_{0} = {}^{n}C_{n} = 1, \qquad {}^{n}C_{1} = n, \qquad {}^{n}C_{r} = {}^{n}C_{n - r}.

The last fact says choosing rr items to take is the same as choosing the n−rn - r to leave behind. For example 10C8=10C2=45{}^{10}C_{8} = {}^{10}C_{2} = 45.

Selections from more than one group

When a selection must contain a certain number from each of several groups, choose from each group separately and multiply (the multiplication principle). When there are several separate cases, count each case and add.

Method

Committee and team questions

  1. Identify the groups (men and women, boys and girls, red and blue) and the total to be chosen.
  2. List the cases that satisfy the condition, for example "at least 22 women" in a committee of 44 means 22, 33 or 44 women.
  3. For each case, multiply the combinations from each group: womenCw×menCm{}^{\text{women}}C_{w} \times {}^{\text{men}}C_{m}.
  4. Add the cases.
  5. If the cases are many, count the complement instead and subtract from the total.

"At least one"

"At least one woman" is the complement of "no women", so

number with at least one woman=total−number with no women.\text{number with at least one woman} = \text{total} - \text{number with no women}.

This is almost always the fastest route.

Watch out

The "at least one" trap. For a committee of 44 from 77 men and 55 women with at least one woman, it is tempting to write 5C1×11C3{}^{5}C_{1} \times {}^{11}C_{3}: choose a woman, then any 33 others. This overcounts. A committee with two women, W1W_1 and W2W_2, is counted once when W1W_1 is "the woman" and again when W2W_2 is. The correct answer is 12C4−7C4=495−35=460{}^{12}C_{4} - {}^{7}C_{4} = 495 - 35 = 460, whereas the faulty product gives 5×165=8255 \times 165 = 825.

Particular people included or excluded

  • If a particular person must be chosen, put them in and choose the rest from the others.
  • If a particular person must not be chosen, remove them and choose from the others.
  • If two people refuse to serve together, count all selections and subtract those that contain both of them.

Selections followed by arrangements

Some questions first choose a group, then arrange it. Count the selections with combinations, then multiply by the number of arrangements of each selection.

number of ways=(number of selections)×(number of arrangements of each selection).\text{number of ways} = (\text{number of selections}) \times (\text{number of arrangements of each selection}).

For example, to choose 33 of 88 letters and arrange them in a line, 8C3×3!=56×6=336=8P3{}^{8}C_{3} \times 3! = 56 \times 6 = 336 = {}^{8}P_{3}, as it should be.

Dividing into groups

Splitting people into groups is a run of selections. To split 99 people into groups of 44, 33 and 22: choose the 44 (9C4{}^{9}C_{4}), then the 33 from the remaining 55 (5C3{}^{5}C_{3}), and the last 22 are forced. That is 9C4×5C3=126×10=1260{}^{9}C_{4} \times {}^{5}C_{3} = 126 \times 10 = 1260 ways.

If some groups are the same size and unlabelled, divide by the number of ways of ordering those groups, because otherwise each division is counted once for each order. Nine people into three groups of 33: 9C3×6C3=1680{}^{9}C_{3} \times {}^{6}C_{3} = 1680 ordered choices, but each division has been counted 3!=63! = 6 times, so there are 16806=280\dfrac{1680}{6} = 280 divisions. If the groups are labelled (Team Red, Team Blue, Team Green), do not divide.

Selections with repeated items

Selecting letters from a word with repeated letters, such as 44 letters from CHOCOLATE, needs cases, because two Cs are indistinguishable and a selection is identified only by which letters it contains. Split by how many of the repeated letters are used.

Combinations in probability

If rr items are chosen at random from nn, every one of the nCr{}^{n}C_{r} selections is equally likely. So

P(event)=number of selections with the propertynCr.P(\text{event}) = \frac{\text{number of selections with the property}}{{}^{n}C_{r}}.

This is often the quickest way to handle drawing several items without replacement, and it avoids having to multiply by the number of orders on a tree diagram. See probability for the tree-diagram approach.

Worked examples

A committee with conditions (routine)

A committee of 44 is chosen from 77 men and 55 women. Find the number of different committees

(a) in total, (b) with exactly 22 women, (c) with at least one woman.

Solution

(a) 12C4=495{}^{12}C_{4} = 495.

(b) Choose 22 of the 55 women and 22 of the 77 men: 5C2×7C2=10×21=210{}^{5}C_{2} \times {}^{7}C_{2} = 10 \times 21 = 210.

(c) All-male committees: 7C4=35{}^{7}C_{4} = 35. At least one woman: 495−35=460495 - 35 = 460.

Particular people

A team of 55 is chosen from 1010 people, who include Asha and Ben. Find the number of teams

(a) that include Asha but not Ben,

(b) that do not include both Asha and Ben.

Solution

(a) Put Asha in and remove Ben. Choose the other 44 from the remaining 88: 8C4=70{}^{8}C_{4} = 70.

(b) Teams containing both: put both in, choose 33 from the other 88: 8C3=56{}^{8}C_{3} = 56. All teams: 10C5=252{}^{10}C_{5} = 252. Teams not containing both: 252−56=196252 - 56 = 196.

Note "not both" includes teams with Asha only, Ben only, and neither.

Select, then arrange

Three boys are chosen from 55 and two girls from 44. The five chosen children then stand in a line with a girl at each end. How many different lines are possible?

Solution

Selections: 5C3×4C2=10×6=60{}^{5}C_{3} \times {}^{4}C_{2} = 10 \times 6 = 60.

Arrangements of each selection: the two chosen girls go at the ends in 2!2! ways, and the three boys fill the middle in 3!3! ways: 2×6=122 \times 6 = 12.

Total 60×12=72060 \times 12 = 720.

Probability with combinations

A bag contains 66 red and 44 blue discs. Three discs are taken at random without replacement. Find the probability that exactly 22 are red.

Solution

All 10C3=120{}^{10}C_{3} = 120 selections are equally likely. Selections with 22 red and 11 blue: 6C2×4C1=15×4=60{}^{6}C_{2} \times {}^{4}C_{1} = 15 \times 4 = 60.

P(exactly 2 red)=60120=12.P(\text{exactly 2 red}) = \frac{60}{120} = \frac{1}{2}.

By a tree diagram the same answer needs three orders: 3×610×59×48=123 \times \tfrac{6}{10} \times \tfrac{5}{9} \times \tfrac{4}{8} = \tfrac{1}{2}.

Dividing into groups (exam style)

Nine students are to be divided into groups.

(a) In how many ways can they be divided into a group of 44, a group of 33 and a group of 22?

(b) In how many ways can they be divided into three groups of 33?

(c) In how many ways can they be divided into three groups of 33 if two particular students, Kai and Lin, must be in the same group?

Solution

(a) 9C4×5C3×2C2=126×10×1=1260{}^{9}C_{4} \times {}^{5}C_{3} \times {}^{2}C_{2} = 126 \times 10 \times 1 = 1260.

(b) Choosing groups one after another gives 9C3×6C3×3C3=84×20=1680{}^{9}C_{3} \times {}^{6}C_{3} \times {}^{3}C_{3} = 84 \times 20 = 1680, but the three groups are not labelled, so each division has been counted 3!=63! = 6 times. Answer 16806=280\dfrac{1680}{6} = 280.

(c) Kai and Lin's group needs one more member: 7C1=7{}^{7}C_{1} = 7 ways. The remaining 66 students form two unlabelled groups of 33: 6C32!=202=10\dfrac{{}^{6}C_{3}}{2!} = \dfrac{20}{2} = 10 ways. Total 7×10=707 \times 10 = 70.

Selecting letters with repeats (exam-hard)

Find the number of different selections of 44 letters from the 99 letters of the word CHOCOLATE.

Solution

CHOCOLATE contains C twice, O twice, and H, L, A, T, E once each: 77 different letters. A selection is determined by which letters it contains, so split by how many repeated pairs are used.

  • No letter used twice: choose 44 of the 77 different letters: 7C4=35{}^{7}C_{4} = 35.
  • Exactly one pair (CC or OO): choose the pair in 22 ways, then 22 different letters from the other 66: 2×6C2=2×15=302 \times {}^{6}C_{2} = 2 \times 15 = 30.
  • Both pairs: CCOO, 11 way.

Total 35+30+1=6635 + 30 + 1 = 66.

Watch out

Using permutations for a selection. A committee of 44 from 1212 is 12C4=495{}^{12}C_{4} = 495, not 12P4=11880{}^{12}P_{4} = 11880. Only use nPr{}^{n}P_{r} when the chosen items are given different roles or positions.

Watch out

Adding when you should multiply. "22 women and 22 men" is 5C2×7C2{}^{5}C_{2} \times {}^{7}C_{2}. Adding is for separate cases joined by "or" ("22 women or 33 women").

Watch out

Dividing by group orders when the groups are labelled or of different sizes. Only divide when groups are the same size and interchangeable. Groups of 44, 33 and 22 cannot be confused with each other, so there is nothing to divide by.

Exam tip
  • Write each case on its own line with its count, then add: for example "4W4W: 5C4×7C0=5{}^{5}C_{4} \times {}^{7}C_{0} = 5". Examiners award marks per correct case.
  • For "at least" questions, decide quickly whether the complement has fewer cases; it usually does.
  • Before multiplying by r!r! or similar, ask "does order matter here?" in words.
  • Probability answers can be left as exact fractions or given to 3 significant figures; counts must be exact integers.
  • "Not both" and "neither" mean different things; underline them in the question.
Summary
  • Order matters: permutations. Order does not matter: combinations.
  • nCr=n!r! (n−r)!=nPrr!{}^{n}C_{r} = \dfrac{n!}{r!\,(n - r)!} = \dfrac{{}^{n}P_{r}}{r!}, and nCr=nCn−r{}^{n}C_{r} = {}^{n}C_{n - r}.
  • From several groups: multiply within a case ("and"), add across cases ("or").
  • "At least one" == total −- none. Never fix one and choose the rest freely.
  • Must include: put them in. Must exclude: take them out. Not together: total −- both.
  • Select, then arrange: multiply the number of selections by the arrangements of each.
  • Equal-sized unlabelled groups: divide by the number of orders of those groups.
  • Probability: favourable selections ÷\div nCr{}^{n}C_{r}.

Practice questions

Question
  1. In how many ways can 33 books be chosen from 88 different books?
  2. A team of 55 is chosen from 66 boys and 44 girls. Find the number of teams with (a) exactly 33 boys, (b) at least one girl.
  3. A committee of 66 is chosen from 88 men and 66 women. Find the number of committees with more women than men.
  4. A committee of 44 is chosen from 99 people. Two of them refuse to serve together. How many committees are possible?
  5. A box contains 2020 light bulbs, of which 55 are faulty. Four bulbs are chosen at random. Find the probability that at least one is faulty.
  6. Find nn given that nC2=45{}^{n}C_{2} = 45.
  7. Two vowels and two consonants are chosen from the letters of EQUATION and then arranged in a line. How many different arrangements are possible?
  8. Ten people are split into a group of 66 and a group of 44. Find the number of ways this can be done (a) with no restriction, (b) if two particular people must be in the same group.
  9. Find the number of different selections of 33 letters from the letters of PROBABILITY.
  10. A committee of 55 is chosen from 66 men and 55 women, who include a married couple, Mr and Mrs Xu. The committee must contain at least 22 women, and Mr and Mrs Xu cannot both be on it. Find the number of possible committees.
Answers
  1. 8C3=56{}^{8}C_{3} = 56.

  2. (a) 6C3×4C2=20×6=120{}^{6}C_{3} \times {}^{4}C_{2} = 20 \times 6 = 120. (b) Total 10C5=252{}^{10}C_{5} = 252; all-boy teams 6C5=6{}^{6}C_{5} = 6; at least one girl =252−6=246= 252 - 6 = 246.

  3. More women than men means 44, 55 or 66 women. 4W 2M4W\,2M: 6C4×8C2=15×28=420{}^{6}C_{4} \times {}^{8}C_{2} = 15 \times 28 = 420. 5W 1M5W\,1M: 6C5×8C1=6×8=48{}^{6}C_{5} \times {}^{8}C_{1} = 6 \times 8 = 48. 6W6W: 6C6=1{}^{6}C_{6} = 1. Total 469469.

  4. All committees 9C4=126{}^{9}C_{4} = 126. With both of the pair: 7C2=21{}^{7}C_{2} = 21. Answer 126−21=105126 - 21 = 105.

  5. P(no faulty)=15C420C4=13654845=0.2817…P(\text{no faulty}) = \dfrac{{}^{15}C_{4}}{{}^{20}C_{4}} = \dfrac{1365}{4845} = 0.2817\ldots, so P(at least one faulty)=1−0.2817=0.718P(\text{at least one faulty}) = 1 - 0.2817 = 0.718 (3 s.f.).

  6. n(n−1)2=45⇒n2−n−90=0⇒(n−10)(n+9)=0\dfrac{n(n - 1)}{2} = 45 \Rightarrow n^2 - n - 90 = 0 \Rightarrow (n - 10)(n + 9) = 0, so n=10n = 10 (since n>0n > 0).

  7. EQUATION has 55 vowels (E, U, A, I, O) and 33 consonants (Q, T, N), all different. Selections: 5C2×3C2=10×3=30{}^{5}C_{2} \times {}^{3}C_{2} = 10 \times 3 = 30. Each selection of 44 letters can be arranged in 4!=244! = 24 ways. Total 30×24=72030 \times 24 = 720.

  8. (a) Choose the group of 66; the rest form the group of 44: 10C6=210{}^{10}C_{6} = 210. (b) Both in the group of 66: choose 44 more from 88: 8C4=70{}^{8}C_{4} = 70. Both in the group of 44: choose 22 more from 88: 8C2=28{}^{8}C_{2} = 28. Total 70+28=9870 + 28 = 98.

  9. PROBABILITY: B twice, I twice, and P, R, O, A, L, T, Y once each, so 99 different letters. No repeated letter: 9C3=84{}^{9}C_{3} = 84. One pair (BB or II) plus one of the other 88 letters: 2×8=162 \times 8 = 16. Total 84+16=10084 + 16 = 100.

  10. First ignore the couple. Committees with at least 22 women: total 11C5=462{}^{11}C_{5} = 462, minus 00 women (6C5=6{}^{6}C_{5} = 6), minus exactly 11 woman (5C1×6C4=75{}^{5}C_{1} \times {}^{6}C_{4} = 75): 462−6−75=381462 - 6 - 75 = 381.

    Now subtract those containing both Mr and Mrs Xu. With both in, 33 more are chosen from the other 55 men and 44 women, and at least 11 of these must be a woman (Mrs Xu is already one): 9C3−5C3=84−10=74{}^{9}C_{3} - {}^{5}C_{3} = 84 - 10 = 74.

    Answer 381−74=307381 - 74 = 307.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action