TExcelTAD
Home › Discrete Mathematics › The Binomial Theorem and Combinatorial Proofs

The Binomial Theorem and Combinatorial Proofs

Why are binomial coefficients called binomial? Because they are the coefficients when a binomial a+ba + b 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

(a+b)n=∑k=0n(nk)an−kbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k

Proof. Expand (a+b)(a+b)⋯(a+b)(a + b)(a + b) \cdots (a + b) by choosing aa or bb from each of the nn factors, and add all 2n2^n products. A product equals an−kbka^{n-k}b^k exactly when bb was chosen from kk of the factors, and there are (nk)\binom{n}{k} ways to choose which ones. ■\blacksquare

python · try it yourself
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
a=b=1a = b = 1 ∑k(nk)=2n\sum_k \binom{n}{k} = 2^n all subsets, counted by size
a=1,b=−1a = 1, b = -1 ∑k(−1)k(nk)=0\sum_k (-1)^k \binom{n}{k} = 0 as many even-sized as odd-sized subsets (n≥1n \ge 1)
a=1,b=2a = 1, b = 2 ∑k(nk)2k=3n\sum_k \binom{n}{k} 2^k = 3^n strings over {0,1,2}\{0, 1, 2\}, counted by number of non-zeros

The multinomial theorem generalizes it: (x1+⋯+xm)n=∑(nn1,…,nm)x1n1⋯xmnm(x_1 + \cdots + x_m)^n = \sum \binom{n}{n_1, \ldots, n_m} x_1^{n_1} \cdots x_m^{n_m}.

Combinatorial proofs

To prove A=BA = B by counting:

  1. Define a set SS.
  2. Show ∣S∣=A\lvert S \rvert = A by counting one way.
  3. Show ∣S∣=B\lvert S \rvert = B by counting another way.

Vandermonde's identity.

(m+nr)=∑k=0r(mk)(nr−k)\binom{m + n}{r} = \sum_{k=0}^{r} \binom{m}{k} \binom{n}{r - k}

Proof. SS = the rr-person committees chosen from mm women and nn men. Directly, ∣S∣=(m+nr)\lvert S \rvert = \binom{m+n}{r}. Split by the number kk of women: (mk)\binom{m}{k} ways to choose them and (nr−k)\binom{n}{r-k} for the men. Summing over kk gives the right side. ■\blacksquare

The hockey-stick identity.

∑i=kn(ik)=(n+1k+1)\sum_{i=k}^{n} \binom{i}{k} = \binom{n + 1}{k + 1}

Proof. Count (k+1)(k+1)-subsets of {0,1,…,n}\{0, 1, \ldots, n\} by their largest element ii: the other kk elements come from {0,…,i−1}\{0, \ldots, i - 1\}, giving (ik)\binom{i}{k}. ■\blacksquare With k=1k = 1 this is ∑i=1ni=(n+12)\sum_{i=1}^{n} i = \binom{n+1}{2}.

python · try it yourself
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 m=n=rm = n = r: ∑k(nk)2=(2nn)\sum_k \binom{n}{k}^2 = \binom{2n}{n}, using (nn−k)=(nk)\binom{n}{n-k} = \binom{n}{k}.

In software

The binomial theorem with a=1−pa = 1 - p and b=pb = p shows the binomial distribution's probabilities add to 1. Expanding (1+x)n(1 + x)^n with small xx gives the approximation (1+x)n≈1+nx(1+x)^n \approx 1 + nx, 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 x3y5x^3 y^5 in (2x−y)8(2x - y)^8.

Answer

−448-448.

Solution

The term with k=5k = 5 (choosing −y-y five times): (85)(2x)3(−y)5=56⋅8⋅(−1)x3y5=−448 x3y5\binom{8}{5} (2x)^3 (-y)^5 = 56 \cdot 8 \cdot (-1) x^3 y^5 = -448\,x^3 y^5.

Exercise 2: A combinatorial proof

Prove k(nk)=n(n−1k−1)k \binom{n}{k} = n \binom{n-1}{k-1} by counting committees with a chair.

Answer

Both sides count kk-person committees from nn people with one member as chair.

Solution

Left: choose the committee ((nk)\binom{n}{k}), then its chair (kk). Right: choose the chair first (nn), then the other k−1k - 1 members from the remaining n−1n - 1. ■\blacksquare

Exercise 3: Check identities (code)

Check ∑k(nk)2k=3n\sum_{k} \binom{n}{k} 2^k = 3^n and ∑kk(nk)=n2n−1\sum_k k \binom{n}{k} = n 2^{n-1} for n=0,…,10n = 0, \ldots, 10.

Answer

Both hold.

Solution

The second identity follows from Exercise 2 summed over kk, or from differentiating (1+x)n(1 + x)^n and setting x=1x = 1.

python · try it yourself
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 a2b2a^2 b^2 in (a+b)4(a + b)^4?

  1. 4
  2. 6
  3. 8
  4. 12

What is ∑k=010(10k)\sum_{k=0}^{10} \binom{10}{k}?

  1. 100
  2. 512
  3. 1024
  4. 10!10!

A combinatorial proof shows A=BA = B by…

  1. algebraic manipulation
  2. showing both sides count the same set
  3. induction only
  4. plugging in numbers