The Binomial Theorem and Combinatorial Proofs
Why are binomial coefficients called binomial? Because they are the coefficients when a binomial is raised to a power. This lesson proves the Binomial Theorem by counting and introduces combinatorial proofs: proving an identity by showing that both sides count the same set.
The Binomial Theorem
Proof. Expand by choosing or from each of the factors, and add all products. A product equals exactly when was chosen from of the factors, and there are ways to choose which ones.
from sympy import symbols, expand, binomial
a, b = symbols("a b")
print(expand((a + b) ** 5))
print([binomial(5, k) for k in range(6)])a**5 + 5*a**4*b + 10*a**3*b**2 + 10*a**2*b**3 + 5*a*b**4 + b**5
[1, 5, 10, 10, 5, 1]
Special cases give useful identities:
| Substitution | Identity | Meaning |
|---|---|---|
| all subsets, counted by size | ||
| as many even-sized as odd-sized subsets () | ||
| strings over , counted by number of non-zeros |
The multinomial theorem generalizes it: .
Combinatorial proofs
To prove by counting:
- Define a set .
- Show by counting one way.
- Show by counting another way.
Vandermonde's identity.
Proof. = the -person committees chosen from women and men. Directly, . Split by the number of women: ways to choose them and for the men. Summing over gives the right side.
The hockey-stick identity.
Proof. Count -subsets of by their largest element : the other elements come from , giving . With this is .
from math import comb
m, n, r = 6, 5, 4
print("Vandermonde:", comb(m + n, r), "=", sum(comb(m, k) * comb(n, r - k) for k in range(r + 1)))
k, n = 3, 10
print("hockey stick:", sum(comb(i, k) for i in range(k, n + 1)), "=", comb(n + 1, k + 1))
print("sum of squares of row 8:", sum(comb(8, j) ** 2 for j in range(9)), "= C(16, 8) =", comb(16, 8))Vandermonde: 330 = 330
hockey stick: 330 = 330
sum of squares of row 8: 12870 = C(16, 8) = 12870
The last line is Vandermonde with : , using .
In software
The binomial theorem with and shows the binomial distribution's probabilities add to 1. Expanding with small gives the approximation , used for interest, error growth and compounding. Combinatorial identities are also how dynamic-programming tables for counting are checked.
Exercises
Exercise 1: A coefficient
Find the coefficient of in .
Answer
.
Solution
The term with (choosing five times): .
Exercise 2: A combinatorial proof
Prove by counting committees with a chair.
Answer
Both sides count -person committees from people with one member as chair.
Solution
Left: choose the committee (), then its chair (). Right: choose the chair first (), then the other members from the remaining .
Exercise 3: Check identities (code)
Check and for .
Answer
Both hold.
Solution
The second identity follows from Exercise 2 summed over , or from differentiating and setting .
from math import comb
print(all(sum(comb(n, k) * 2 ** k for k in range(n + 1)) == 3 ** n for n in range(11)))
print(all(sum(k * comb(n, k) for k in range(n + 1)) == (n * 2 ** (n - 1) if n else 0) for n in range(11)))True
True
Test yourself
What is the coefficient of in ?
- 4
- 6
- 8
- 12
What is ?
- 100
- 512
- 1024
A combinatorial proof shows by…
- algebraic manipulation
- showing both sides count the same set
- induction only
- plugging in numbers