M5.1.6 Chapter 6

Pascal's triangle and choosing

In how many ways can I choose 2 friends from 4?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

  • Build Pascal's triangle and link it to (a + b)ⁿ
  • Find nCr, the number of ways to choose r things from n

Start with powers of a + b. (a + b)¹ = a + b. And (a + b)² = a² + 2ab + b². To get (a + b)³, multiply (a + b)² by (a + b).

(a + b)(a² + 2ab + b²) = a³ + 2a²b + ab² + a²b + 2ab² + b³ = a³ + 3a²b + 3ab² + b³. Look at the numbers in front: 1 and 1, then 1, 2, 1, then 1, 3, 3, 1.

Every term of (a + b)ⁿ has total power n. The power of a goes down from n to 0, and the power of b goes up from 0 to n. Only the numbers in front, the coefficients, need work.

Pascal's triangle lists these coefficients. Row 0 is the single number 1. Every row starts and ends with 1. Every other number is the sum of the two numbers just above it. We count the rows and the places in a row from 0.

Pascal's triangle with seven rows, named row 0 to row 6. Row 0 is 1. Row 1 is 1, 1. Row 2 is 1, 2, 1. Row 3 is 1, 3, 3, 1. Row 4 is 1, 4, 6, 4, 1. Row 5 is 1, 5, 10, 10, 5, 1. Row 6 is 1, 6, 15, 20, 15, 6, 1.1row 011row 1121row 21331row 314641row 415101051row 51615201561row 6
Row n gives the coefficients of (a + b)ⁿ. Row 3 reads 1, 3, 3, 1, as in the expansion above.
Pascal's triangle with six rows, from row 0 to row 5. Two short lines join the entries 4 and 6 in row 4 to the entry 10 in row 5.11112113311464115101051
Each entry is the sum of the two above it: 4 + 6 = 10.

Why does the rule work? Take (a + b)ⁿ and multiply by (a + b) to get (a + b)ⁿ⁺¹. (In this book ^ means "to the power", because the font has no raised r.) A term a^(n + 1 − r) b^r in the result can arise in two ways. It comes from a times the term a^(n − r) b^r, or from b times the term a^(n + 1 − r) b^(r − 1). So its coefficient is the sum of two neighbouring coefficients of row n. That is the rule.

Worked example

Use Pascal's triangle to expand (a + b)⁵.

  1. Row 4 is 1, 4, 6, 4, 1. Build row 5 from it. Each entry is the sum of two above it: 1 + 4 = 5, then 4 + 6 = 10.
  2. The rest follows by symmetry. The coefficients are 1, 5, 10, 10, 5, 1.
  3. The power of a goes down from 5 to 0, and the power of b goes up from 0 to 5. Each term has total power 5.
  4. Write the terms: a⁵, 5a⁴b, 10a³b², 10a²b³, 5ab⁴, b⁵.
  5. Check with a = 1 and b = 1: the left side is 2⁵ = 32. The coefficients add to 1 + 5 + 10 + 10 + 5 + 1 = 32.

Answer: a⁵ + 5a⁴b + 10a³b² + 10a²b³ + 5ab⁴ + b⁵

The triangle gets long. For a high row, or for one entry, we want a formula. For that we count ways of choosing.

Suppose Amina, Ravi, Mei and Kofi are to be paired. Choosing 2 from 4 gives 6 pairs. In general, the number of ways to choose r things from n, when the order does not matter, is written nCr and read "n choose r". It is called a binomial coefficient.

A table with the heads written and read. Rows: nCr, n choose r; C(n, r), n choose r; 5C2, 5 choose 2; ⁵C₂, 5 choose 2.writtenreadnCrn choose rC(n, r)n choose r5C25 choose 2⁵C₂5 choose 2
The last row shows the raised and lowered form on a line: ⁵C₂ is the same number as 5C2. Two more ways are given in words. Other books print n and r one above the other in tall brackets. Others write n small and raised before the C, and r small and lowered after it. All mean the same number.
A table with the heads with A and without A. Under with A: A and B, A and C, A and D. Under without A: B and C, B and D, C and D.with Awithout AA and BB and CA and CB and DA and DC and D
The 6 pairs from A, B, C and D: 3 pairs contain A, and 3 do not.

This picture shows Pascal's rule for choosing. Choose 2 from 4 people. Either A is in the pair: then choose 1 more from the other 3, which is 3C1 = 3 ways. Or A is out: choose 2 from the other 3, which is 3C2 = 3 ways. So 4C2 = 3C1 + 3C2 = 6.

In general nCr = (n − 1)C(r − 1) + (n − 1)Cr. That is the same sum as the triangle makes, so the entry in row n and place r of Pascal's triangle is nCr.

Now the formula. We need the factorial: n! = n × (n − 1) × … × 2 × 1, for a whole number n. So 5! = 5 × 4 × 3 × 2 × 1 = 120. We also define 0! = 1.

A table with the heads n and n!. The rows are 0 and 1, 1 and 1, 2 and 2, 3 and 6, 4 and 24, 5 and 120, 6 and 720.nn!0111223642451206720
Factorials grow quickly. Note that 0! = 1, by definition.

Why define 0! = 1? There is exactly one way to choose nothing from n things. The formula below gives nC0 = n!/(0! × n!), which equals 1 only if 0! = 1.

To find a formula, choose r things in order. There are n ways for the first, n − 1 for the second, and so on down to n − r + 1 for the last: n(n − 1)…(n − r + 1) ways. Each group of r is counted r! times, once for each order. So we divide by r!.

The result is nCr = n!/(r!(n − r)!), for whole numbers n and r with 0 ≤ r ≤ n. Multiplying the top n! by 1/(n − r)! cancels the tail of the factorial: nCr = n(n − 1)…(n − r + 1)/r!.

Two facts help. nCr = nC(n − r), because choosing r to take is the same as choosing n − r to leave behind. And nC0 = nCn = 1, and nC1 = n.

See it three ways

With things

Amina, Ravi, Mei and Kofi. Choose 2 of them for a pair. List every pair: AR, AM, AK, RM, RK, MK. There are 6.

As a picture

Pascal's triangle with five rows, from row 0 to row 4. The entry 6 in row 4 is ringed.111121133114641

In words

Row 4, place 2 of the triangle is the number of ways to choose 2 from 4.

In symbols

4C2 = 4!/(2! × 2!) = 24/(2 × 2) = 6, and also 4C2 = (4 × 3)/(2 × 1) = 6.

Worked example

Work out 7C3. Then write down 7C4 using symmetry.

  1. Use nCr = n(n − 1)…(n − r + 1)/r!. For 7C3 there are 3 numbers on top, starting at 7.
  2. 7C3 = (7 × 6 × 5)/(3 × 2 × 1).
  3. The top is 7 × 6 × 5 = 210. The bottom is 3 × 2 × 1 = 6.
  4. 210 ÷ 6 = 35. So 7C3 = 35.
  5. Symmetry: 7C4 = 7C(7 − 4) = 7C3, because choosing 4 to take is choosing 3 to leave.
  6. So 7C4 = 35. Check with the formula: 7!/(4! × 3!) = 5040/(24 × 6) = 5040/144 = 35.

Answer: 7C3 = 35 and 7C4 = 35.

Worked example

A club has 5 men and 3 women. A committee of 3 is chosen. How many committees are possible? How many have no women? How many have at least one woman?

  1. Any 3 of the 8 people may be chosen, and the order does not matter. The number of committees is 8C3 = (8 × 7 × 6)/(3 × 2 × 1) = 336/6 = 56.
  2. No women means all 3 come from the 5 men: 5C3 = (5 × 4 × 3)/(3 × 2 × 1) = 60/6 = 10.
  3. "At least one woman" is every committee except the ones with no women: 56 − 10 = 46.
  4. Check by adding the cases. One woman: 3C1 × 5C2 = 3 × 10 = 30. Two women: 3C2 × 5C1 = 3 × 5 = 15. Three women: 3C3 × 5C0 = 1. And 30 + 15 + 1 = 46.

Answer: 56 committees, 10 with no women, and 46 with at least one woman.

Worked example

(a) Show that nC2 = n(n − 1)/2. (b) Hence find n when nC2 = 28.

  1. nC2 = n!/(2! × (n − 2)!).
  2. Write n! = n × (n − 1) × (n − 2)!. The factor (n − 2)! cancels with the one on the bottom.
  3. So nC2 = n(n − 1)/2!. And 2! = 2, so nC2 = n(n − 1)/2. This proves (a).
  4. For (b), solve n(n − 1)/2 = 28. Multiply both sides by 2 and expand the bracket: n² − n = 56.
  5. Rearrange to n² − n − 56 = 0 and factorise: (n − 8)(n + 7) = 0. So n = 8 or n = −7.
  6. But n is a number of things, so n is a whole number from 2 up. Reject −7. So n = 8.
  7. Check: 8C2 = (8 × 7)/2 = 28.

Answer: n = 8

A table with the heads r, 4Cr and term. Rows: r = 0, 4Cr = 1, term a⁴; r = 1, 4, 4a³b; r = 2, 6, 6a²b²; r = 3, 4, 4ab³; r = 4, 1, b⁴.r4Crterm01a⁴144a³b266a²b²344ab³41b⁴
The term of (a + b)⁴ with b to the power r has coefficient 4Cr. Add the five terms to get (a + b)⁴.

This links the two halves of the chapter. In (a + b)ⁿ, each term comes from choosing, in each of the n brackets, either a or b. A term with r letters b comes from choosing which r of the n brackets give b. There are nCr ways to choose them. So the coefficient is nCr.

This gives the binomial theorem for a positive whole number n: (a + b)ⁿ = aⁿ + nC1 aⁿ⁻¹b + nC2 aⁿ⁻²b² + … + bⁿ. The next chapter uses it.

Try it

Build the triangle yourself

You need: paper, a pencil.

  1. Write a single 1 at the top. This is row 0.
  2. Write row 1 under it: 1 and 1.
  3. For each new row, write a 1 at each end. Between them, write the sum of the two numbers above.
  4. Build down to row 5. Ring the entry in row 5, place 2, and check that it equals the sum of the two entries above it.

What you will see: The ringed entry is 10, and it is 4 + 6. Every entry of the triangle is a number of ways to choose.

If you cannot try it, this is what happens.
Pascal's triangle with six rows, from row 0 to row 5. The entry 10 in row 5, place 2, is ringed.11112113311464115101051

A wrong idea many people have

(a + b)² = a² + b².

Why it feels right: The square of a product splits, as in (ab)² = a²b², so the square of a sum seems to split too.

The test that breaks it: Put a = 1 and b = 1. Then (a + b)² = 4, but a² + b² = 2.

What is true: There is a middle term: (a + b)² = a² + 2ab + b². In general (a + b)ⁿ has n + 1 terms, with the coefficients from row n of Pascal's triangle.

A wrong idea many people have

0! = 0.

Why it feels right: The factorial multiplies numbers down to 1, and a product that reaches 0 is 0.

The test that breaks it: If 0! were 0, the formula for nC0 would divide by 0. But there is exactly one way to choose nothing, so nC0 = 1.

What is true: 0! = 1. It is defined this way so that the formula n!/(r!(n − r)!) works for r = 0 and r = n.

A wrong idea many people have

Choosing 2 from 4 can be done in 4 × 3 = 12 ways.

Why it feels right: There are 4 choices for the first person and 3 for the second, so multiplying looks right.

The test that breaks it: List the pairs from A, B, C and D. There are only 6: AB, AC, AD, BC, BD, CD. The product 12 counts AB and BA as different.

What is true: When the order does not matter, divide by the number of orders, r!. So 4C2 = (4 × 3)/2! = 6.

A wrong idea many people have

The numbers 1, 3, 3, 1 are row 4, so they give the coefficients of (a + b)⁴.

Why it feels right: There are four numbers, and 4 is the number of numbers.

The test that breaks it: Check (a + b)³ = a³ + 3a²b + 3ab² + b³. The coefficients are 1, 3, 3, 1. And (a + b)⁴ has five terms.

What is true: Count the rows from 0. Row n has n + 1 numbers and gives the coefficients of (a + b)ⁿ. So 1, 3, 3, 1 is row 3.

Key words

Pascal's triangle
a triangle of numbers where each entry is the sum of the two above it. Row n gives the coefficients of (a + b)ⁿ.
binomial coefficient
the number nCr, the coefficient of a^(n − r) b^r in (a + b)ⁿ.
factorial
n! = n × (n − 1) × … × 1, with 0! = 1.

Back to your guess

The answer is B: 6.

Call the friends A, B, C and D. The pairs are AB, AC, AD, BC, BD and CD: 6 pairs. The sum 4 × 3 = 12 counts every pair twice, once in each order, and "A then B" is the same pair as "B then A". The number of ways to choose r things from n is written nCr, and 4C2 = 6.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. What is the coefficient of a⁵b² in the expansion of (a + b)⁷?

    Tap your answer.
    1. Yes, that is right. The power of b is 2, so the coefficient is 7C2 = (7 × 6)/(2 × 1) = 21.

    2. Not this one. That is the coefficient of a⁴b³, which is 7C3. For a⁵b² the power of b is 2, so the coefficient is 7C2. Go to M5.1.6. Try another.

    3. Not this one. You worked out 7 × 6 and forgot to divide by 2!. The order of the two b brackets does not matter. Go to M5.1.6. Try another.

    4. Not this one. You multiplied 7 by 2. The coefficient is 7C2 = (7 × 6)/(2 × 1), not 7 × 2. Go to M5.1.6. Try another.

    See the answer

    21

    The power of b is 2, so the coefficient is 7C2 = (7 × 6)/(2 × 1) = 21.

    • If you chose B: That is the coefficient of a⁴b³, which is 7C3. For a⁵b² the power of b is 2, so the coefficient is 7C2. Go to M5.1.6.
    • If you chose C: You worked out 7 × 6 and forgot to divide by 2!. The order of the two b brackets does not matter. Go to M5.1.6.
    • If you chose D: You multiplied 7 by 2. The coefficient is 7C2 = (7 × 6)/(2 × 1), not 7 × 2. Go to M5.1.6.
  2. Priya picks 2 of her 9 books to take on a trip. In how many ways can she choose them?

    Tap your answer.
    1. Not this one. That is 9 × 8, which counts each pair in both orders. The order does not matter, so divide by 2! = 2. Go to M5.1.6. Try another.

    2. Not this one. You multiplied 9 by 2. To choose 2 things from 9, use 9C2 = (9 × 8)/(2 × 1). Go to M5.1.6. Try another.

    3. Not this one. That is 9 × 9, which would allow the same book to be picked twice. Go to M5.1.6. Try another.

    4. Yes, that is right. The order does not matter, so the number of ways is 9C2 = (9 × 8)/(2 × 1) = 72/2 = 36.

    See the answer

    36

    The order does not matter, so the number of ways is 9C2 = (9 × 8)/(2 × 1) = 72/2 = 36.

    • If you chose A: That is 9 × 8, which counts each pair in both orders. The order does not matter, so divide by 2! = 2. Go to M5.1.6.
    • If you chose B: You multiplied 9 by 2. To choose 2 things from 9, use 9C2 = (9 × 8)/(2 × 1). Go to M5.1.6.
    • If you chose C: That is 9 × 9, which would allow the same book to be picked twice. Go to M5.1.6.
  3. The picture shows Pascal's triangle to row 4. What is the sum of the five numbers in row 4?

    Pascal's triangle with five rows, from row 0 to row 4. Row 4 is 1, 4, 6, 4, 1.111121133114641
    Tap your answer.
    1. Not this one. You may have added only 4 + 4. Add all five numbers of the row, including the 1 at each end and the 6 in the middle. Go to M5.1.6. Try another.

    2. Not this one. That is one short. Put a = 1 and b = 1 in (a + b)⁴ and every term is just its coefficient, so add all five: 1 + 4 + 6 + 4 + 1. Go to M5.1.6. Try another.

    3. Yes, that is right. Add 1 + 4 + 6 + 4 + 1 = 16. This is no accident: put a = 1 and b = 1 in (a + b)⁴. The left side is 2⁴ = 16, and the right side is the sum of the coefficients.

    4. Not this one. That leaves out the two 1s at the ends: 4 + 6 + 4 = 14. Go to M5.1.6. Try another.

    See the answer

    16

    Add 1 + 4 + 6 + 4 + 1 = 16. This is no accident: put a = 1 and b = 1 in (a + b)⁴. The left side is 2⁴ = 16, and the right side is the sum of the coefficients.

    • If you chose A: You may have added only 4 + 4. Add all five numbers of the row, including the 1 at each end and the 6 in the middle. Go to M5.1.6.
    • If you chose B: That is one short. Put a = 1 and b = 1 in (a + b)⁴ and every term is just its coefficient, so add all five: 1 + 4 + 6 + 4 + 1. Go to M5.1.6.
    • If you chose D: That leaves out the two 1s at the ends: 4 + 6 + 4 = 14. Go to M5.1.6.
  4. What is the value of 0!?

    Tap your answer.
    1. Not this one. If 0! were 0, the formula for nC0 would divide by 0. There is one way to choose nothing, so 0! must be 1. Go to M5.1.6. Try another.

    2. Yes, that is right. There is exactly one way to choose nothing, so nC0 = n!/(0! × n!) = 1. That works only if 0! = 1, so we define 0! = 1.

    3. Not this one. It is defined, as 1, so that the formula n!/(r!(n − r)!) works when r = 0 or r = n. Go to M5.1.6. Try another.

    4. Not this one. A factorial is never negative. 0! = 1 is defined so that nC0 = 1. Go to M5.1.6. Try another.

    See the answer

    1

    There is exactly one way to choose nothing, so nC0 = n!/(0! × n!) = 1. That works only if 0! = 1, so we define 0! = 1.

    • If you chose A: If 0! were 0, the formula for nC0 would divide by 0. There is one way to choose nothing, so 0! must be 1. Go to M5.1.6.
    • If you chose C: It is defined, as 1, so that the formula n!/(r!(n − r)!) works when r = 0 or r = n. Go to M5.1.6.
    • If you chose D: A factorial is never negative. 0! = 1 is defined so that nC0 = 1. Go to M5.1.6.
  5. Ravi expands (a + b)⁸ and writes eight terms: a⁸ + 8a⁷b + 28a⁶b² + 56a⁵b³ + 56a³b⁵ + 28a²b⁶ + 8ab⁷ + b⁸. Which term is missing?

    Tap your answer.
    1. Not this one. You copied the coefficient of the next term. The middle coefficient of row 8 is 8C4 = 70. Go to M5.1.6. Try another.

    2. Not this one. The powers must add to 8 in every term, and here they add to 7. The missing term has a⁴b⁴. Go to M5.1.6. Try another.

    3. Not this one. You used the power 8 as the coefficient. The coefficient of the b⁴ term is 8C4, which is 70. Go to M5.1.6. Try another.

    4. Yes, that is right. There must be 9 terms. The one with b to the power 4 has the coefficient 8C4 = (8 × 7 × 6 × 5)/(4 × 3 × 2 × 1) = 1680/24 = 70, and the powers a⁴b⁴ add to 8.

    See the answer

    70a⁴b⁴

    There must be 9 terms. The one with b to the power 4 has the coefficient 8C4 = (8 × 7 × 6 × 5)/(4 × 3 × 2 × 1) = 1680/24 = 70, and the powers a⁴b⁴ add to 8.

    • If you chose A: You copied the coefficient of the next term. The middle coefficient of row 8 is 8C4 = 70. Go to M5.1.6.
    • If you chose B: The powers must add to 8 in every term, and here they add to 7. The missing term has a⁴b⁴. Go to M5.1.6.
    • If you chose C: You used the power 8 as the coefficient. The coefficient of the b⁴ term is 8C4, which is 70. Go to M5.1.6.
  6. Work out 9C3.

    See the answer

    84

    9C3 = (9 × 8 × 7)/(3 × 2 × 1) = 504/6 = 84.

  7. A class has 6 girls and 4 boys. A group of 4 is chosen with exactly 2 girls and 2 boys. How many different groups are there?

    See the answer

    90

    Choose the 2 girls from 6: 6C2 = 15 ways. Choose the 2 boys from 4: 4C2 = 6 ways. Each choice of girls goes with each choice of boys, so multiply: 15 × 6 = 90.

  8. Find n when nC2 = 45. Use nC2 = n(n − 1)/2.

    See the answer

    n = 10

    Solve n(n − 1)/2 = 45. Multiply by 2: n(n − 1) = 90, so n² − n − 90 = 0. Factorise: (n − 10)(n + 9) = 0. So n = 10 or n = −9. The number n of things is positive, so n = 10. Check: 10C2 = (10 × 9)/2 = 45.

  9. Prove that nCr = nC(n − r), using the formula n!/(r!(n − r)!).

    See the answer

    nC(n − r) = n!/((n − r)! × (n − (n − r))!) = n!/((n − r)! × r!). The two factorials on the bottom are the same as in nCr, written in the other order, so nC(n − r) = nCr.

    Put n − r in place of r in the formula. The bottom becomes (n − r)! × (n − (n − r))!, and n − (n − r) = r. Multiplication does not depend on order.

  10. From an earlier chapter

    What is A in (3x + 3)/((x − 1)(x + 2)) = A/(x − 1) + B/(x + 2)?

    Tap your answer.
    1. Not this one. That is the top at x = 1, but you must also divide by the other bracket x + 2, which is 3 at x = 1. Go to M5.1.5. Try another.

    2. Not this one. That is the number in front of x in the top. The cover up puts x = 1 into the whole top, then divides by the other bracket. Go to M5.1.5. Try another.

    3. Yes, that is right. Cover x − 1 and put x = 1: the top is 3 + 3 = 6, and the other bracket is 1 + 2 = 3. So A = 6 ÷ 3 = 2.

    4. Not this one. That is B. For A, cover x − 1 and put x = 1. For B, cover x + 2 and put x = −2. Go to M5.1.5. Try another.

    See the answer

    2

    Cover x − 1 and put x = 1: the top is 3 + 3 = 6, and the other bracket is 1 + 2 = 3. So A = 6 ÷ 3 = 2.

    • If you chose A: That is the top at x = 1, but you must also divide by the other bracket x + 2, which is 3 at x = 1. Go to M5.1.5.
    • If you chose B: That is the number in front of x in the top. The cover up puts x = 1 into the whole top, then divides by the other bracket. Go to M5.1.5.
    • If you chose D: That is B. For A, cover x − 1 and put x = 1. For B, cover x + 2 and put x = −2. Go to M5.1.5.

Keep it

Copy this into your exercise book.

Pascal's triangle: each entry is the sum of the two above; row n gives (a + b)ⁿ. nCr = n!/(r!(n − r)!) counts choices; 0! = 1. nCr = nC(n − r).

Draw: The first six rows of Pascal's triangle, with one entry shown as the sum of the two above it.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (881 KB). It opens on any phone.