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.
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.
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)⁵.
- 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.
- The rest follows by symmetry. The coefficients are 1, 5, 10, 10, 5, 1.
- 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.
- Write the terms: a⁵, 5a⁴b, 10a³b², 10a²b³, 5ab⁴, b⁵.
- 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.
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.
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
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.
- Use nCr = n(n − 1)…(n − r + 1)/r!. For 7C3 there are 3 numbers on top, starting at 7.
- 7C3 = (7 × 6 × 5)/(3 × 2 × 1).
- The top is 7 × 6 × 5 = 210. The bottom is 3 × 2 × 1 = 6.
- 210 ÷ 6 = 35. So 7C3 = 35.
- Symmetry: 7C4 = 7C(7 − 4) = 7C3, because choosing 4 to take is choosing 3 to leave.
- 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?
- 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.
- No women means all 3 come from the 5 men: 5C3 = (5 × 4 × 3)/(3 × 2 × 1) = 60/6 = 10.
- "At least one woman" is every committee except the ones with no women: 56 − 10 = 46.
- 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.
- nC2 = n!/(2! × (n − 2)!).
- Write n! = n × (n − 1) × (n − 2)!. The factor (n − 2)! cancels with the one on the bottom.
- So nC2 = n(n − 1)/2!. And 2! = 2, so nC2 = n(n − 1)/2. This proves (a).
- For (b), solve n(n − 1)/2 = 28. Multiply both sides by 2 and expand the bracket: n² − n = 56.
- Rearrange to n² − n − 56 = 0 and factorise: (n − 8)(n + 7) = 0. So n = 8 or n = −7.
- But n is a number of things, so n is a whole number from 2 up. Reject −7. So n = 8.
- Check: 8C2 = (8 × 7)/2 = 28.
Answer: n = 8
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.
- Write a single 1 at the top. This is row 0.
- Write row 1 under it: 1 and 1.
- For each new row, write a 1 at each end. Between them, write the sum of the two numbers above.
- 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.
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.
What is the coefficient of a⁵b² in the expansion of (a + b)⁷?
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.
Priya picks 2 of her 9 books to take on a trip. In how many ways can she choose them?
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.
The picture shows Pascal's triangle to row 4. What is the sum of the five numbers in row 4?
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.
What is the value of 0!?
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.
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?
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.
Work out 9C3.
See the answer
84
9C3 = (9 × 8 × 7)/(3 × 2 × 1) = 504/6 = 84.
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.
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.
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.
From an earlier chapter
What is A in (3x + 3)/((x − 1)(x + 2)) = A/(x − 1) + B/(x + 2)?
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.