1.2  The Binomial Theorem

One polynomial does more work in this volume than any other: (1+x)n. In analysis it bounds powers from below, and Section 1.4 makes rn large by keeping a single term of its expansion. In algebra it is the source of Fermat’s little theorem, which Chapter 4 proves by expanding (x+y)p in a field with p elements. Both uses need the same theorem, so this section proves it once, in every commutative ring. The coefficients are defined by Pascal’s rule and never by division, which keeps the theorem valid in rings where p! is 0. The school formula with factorials comes afterwards, as an identity between natural numbers that may then be read in R.

1.2.1. Binomial coefficients

Start with numbers you know. In school algebra, (x+y)2=x2+2xy+y2, with coefficients 1,2,1. Multiply by x+y: (x+y)3=x3+(2+1)x2y+(1+2)xy2+y3=x3+3x2y+3xy2+y3. Each new coefficient is the sum of two neighboring coefficients of the row before.

In (x+y)n, each product xkyn−k appears a certain number of times, and that number is the binomial coefficient. We define it by this rule of adding neighbors, Pascal’s rule, and we never divide.

Definition 1.2.1 (Binomial Coefficients)

The binomial coefficients (nk)∈N, for n,k∈N, are defined by recursion on n (Sets and Functions, Theorem 3.3.1, with X the set of functions N→N): (00):=1,(0k):=0(k≥1),(n+10):=1,(n+1k+1):=(nk)+(nk+1)(k∈N).

In words: row n+1 starts with 1, and each later entry is the sum of the two entries of row n above it (Pascal’s rule). Each row is a whole function N→N, so the recursion has values for every k, and a coefficient is a natural number, never a quotient.

Three facts follow by one induction on n each.

  • (nk)=0 for k>n. For n=0 this is the definition. If it holds for n and k>n+1, write k=j+1 with j>n; then (n+1j+1)=(nj)+(nj+1)=0+0.
  • (nn)=1. Indeed (00)=1, and (n+1n+1)=(nn)+(nn+1)=1+0 by the first fact.
  • (n1)=n. Indeed (01)=0, and (n+11)=(n0)+(n1)=1+n.

The rows n=0,…,6, with the zeros for k>n shown:

n k=0 1 2 3 4 5 6
0 1 0 0 0 0 0 0
1 1 1 0 0 0 0 0
2 1 2 1 0 0 0 0
3 1 3 3 1 0 0 0
4 1 4 6 4 1 0 0
5 1 5 10 10 5 1 0
6 1 6 15 20 15 6 1

The identity we need relates row n+1 to row n by a factor. It is what makes a prime divide the middle coefficients of row p.

Proposition 1.2.1 (Absorption Identity)

For all n,k∈N, (k+1)(n+1k+1)=(n+1)(nk).

Idea. The definition is a recursion on n, so we induct on n, proving the statement for all k at once; the step then needs the hypothesis at two values of k. In the step, expand the left side by Pascal’s rule, split the factor k+2 as (k+1)+1 in front of one of the two terms, apply the hypothesis twice, and recombine with Pascal’s rule. For n=2, k=0 it reads 1⋅3=3⋅1; for n=3, k=1, 2⋅6=4⋅3.

Proof. We prove by induction on n (Logic and Proof, Axiom 4.2.1) the statement “for every k∈N, (k+1)(n+1k+1)=(n+1)(nk)”.

Base n=0. For k=0: 1⋅(11)=1=1⋅(00). For k≥1: (1k+1)=0 since k+1>1, and (0k)=0; both sides are 0.

Step. Suppose the statement holds for n. For k=0, the claim for n+1 reads (n+21)=(n+2)(n+10), and both sides are n+2 by the facts above. For k=j+1 with j∈N, Pascal’s rule gives (j+2)(n+2j+2)=(j+2)(n+1j+1)+(j+2)(n+1j+2)=(j+1)(n+1j+1)+(n+1j+1)+(j+2)(n+1j+2)=(n+1)(nj)+(n+1j+1)+(n+1)(nj+1)=(n+1)(n+1j+1)+(n+1j+1)=(n+2)(n+1j+1), where the third line uses the hypothesis at k=j and at k=j+1, and the fourth line Pascal’s rule again. This is the claim for n+1 at k=j+1. This proves the proposition.

1.2.2. Binomial coefficients and factorials

School defines (nk) as n!k!(n−k)!, with the factorial n!=∏k=1nk of Sets and Functions, Definition 3.3.1. The recursive definition and the school formula agree, and absorption is what shows it. We prove the agreement as an identity between natural numbers, with no division in it, and divide only at the end, in R.

Proposition 1.2.2 (Binomial Coefficients and Factorials)

Let n,k∈N with k≤n.

  • (a) (nk)k!(n−k)!=n!.
  • (b) (nk)=(nn−k).
  • (c) (nk)k!=∏j=0k−1(n−j).

Hence, in R, (nk)=n!k!(n−k)!.

In words: the table above is the table of the school formula, it is symmetric about the middle of each row, and (nk)k! is the product of the k numbers n,n−1,…,n−k+1.

Idea. Induct on n, for all k≤n at once, as in the absorption identity. In the step, write (j+1)!=j!(j+1); absorption trades the factor j+1 and the row n+1 for a factor n+1 and the row n, and the hypothesis turns what is left into n!. Parts (b) and (c) then compare two products equal to n! and cancel a common factor, which is legal in Z because a product of non-zero integers is non-zero.

Proof. We prove (a) by induction on n (Logic and Proof, Axiom 4.2.1), for every k≤n at once. For n=0 the only k is 0, and (00)0!0!=1=0!.

Suppose (a) holds for n, and let k≤n+1. If k=0, the left side is 1⋅1⋅(n+1)!. Otherwise k=j+1 with j≤n, and (n+1)−k=n−j. By the factorial recursion (j+1)!=j!(j+1), then Proposition 1.2.1, then the hypothesis at j, (n+1j+1)(j+1)!(n−j)!=[(j+1)(n+1j+1)]j!(n−j)!=(n+1)[(nj)j!(n−j)!]=(n+1)n!, and (n+1)n!=(n+1)! by the factorial recursion. This proves (a) for n+1. Parts (b) and (c) follow from (a) by cancelling a positive integer factor in Z.

For the formula in R, read each natural number m as the real number m⋅1 (Number Systems: From N to R, Definition 4.2.1). By Number Systems: From N to R, Proposition 4.2.1 (a), the products in (a) are the same products in R, and by (b) there, k!(n−k)!≥1>0. Dividing (a) by this positive real gives the formula. This proves the proposition.

Second readingProofs of (b) and (c): cancelling in the integers

Proof of (b). Let c:=k!(n−k)!, a positive integer, so c≠0. By (a) at k, (nk)c=n!. Since n−k≤n and n−(n−k)=k, (a) at n−k gives (nn−k)(n−k)!k!=n!, that is, (nn−k)c=n!. Subtracting in Z, ((nk)−(nn−k))c=0. A product of two integers is 0 only if one factor is 0, and c≠0. So (nk)−(nn−k)=0.

Proof of (c). First, n!=(n−k)!∏j=0k−1(n−j) for every k≤n, by induction on k. For k=0 the product is empty, equal to 1, and both sides are n!. If the claim holds for k and k+1≤n, then n−k≥1, so the factorial recursion gives (n−k)!=(n−k−1)!(n−k), and the product recursion appends the factor j=k: n!=(n−k−1)!(n−k)∏j=0k−1(n−j)=(n−(k+1))!∏j=0k(n−j). Now (a) and this claim give (nk)k!(n−k)!=(n−k)!∏j=0k−1(n−j). The factor (n−k)! is a positive integer, so it cancels as c did in (b). This proves (c).

The formula is a fact about natural numbers, and in R the division by k!(n−k)! is legal because the divisor is a positive real. Chapter 4 works in a field with p elements. There p! is 0, and so is the divisor k!(n−k)! as soon as k≥p or n−k≥p. For those n and k the formula cannot be written in that field, while the definition by Pascal’s rule makes sense for every n and k.

1.2.3. The binomial theorem

Expanding (x+y)n multiplies out n factors x+y and collects the products xkyn−k. For n=2, in any ring, (x+y)2=(x+y)x+(x+y)y=x2+yx+xy+y2. If yx=xy, the two middle terms collect to xy+xy=2⋅(xy), and the coefficients are 1,2,1, row 2 of the table. In a commutative ring this collecting always works, and the counts are the binomial coefficients, acting as natural multiples.

Theorem 1.2.3 (The Binomial Theorem in a Commutative Ring)

Let R be a commutative ring, x,y∈R and n∈N. Then (x+y)n=∑k=0n(nk)⋅(xkyn−k).

Here (nk)⋅z is the natural multiple of Lemma 1.1.2 (in R, the product (nk)z), and n−k∈N since k≤n.

Idea. Induct on n, with (x+y)n+1=(x+y)nx+(x+y)ny. Multiplying the sum for (x+y)n by x raises every power of x by one, which shifts the coefficients one place to the right; multiplying by y leaves them in place. Adding the two rows entry by entry is exactly Pascal’s rule. The work is in lining the two sums up over the same range k=0,…,n+1: the shifted sum gets a zero first term, and the other one a zero last term.

Before reading on: explain to yourself why the last term of the unshifted sum, at k=n+1, is 0.

Proof. Induction on n (Logic and Proof, Axiom 4.2.1). For n=0, (x+y)0=1 and the right side is (00)⋅(x0y0)=1⋅1=1.

Suppose the formula holds for n, and put tk:=(nk)⋅(xkyn−k) for 0≤k≤n. The first equality below is the power recursion and the distributive law, (F9). The second is the induction hypothesis, with x and y multiplied into the sum term by term; this uses commutativity of multiplication, (F6). (x+y)n+1=(x+y)nx+(x+y)ny=∑k=0ntkx+∑k=0ntky. The rule (m⋅a)b=m⋅(ab) brings x and y inside the natural multiple (Lemma 1.1.2 (c)). Associativity of multiplication, (F5), commutativity and the power recursion then regroup the powers: tkx=(nk)⋅(xk+1yn−k),tky=(nk)⋅(xkyn+1−k). For 0≤k≤n+1 let zk:=xkyn+1−k, and define u0:=0,uk:=(nk−1)⋅zk (1≤k≤n+1),wk:=(nk)⋅zk (0≤k≤n+1). Then tkx=uk+1 and tky=wk for 0≤k≤n, and wn+1=0⋅zn+1=0, since (nn+1)=0. Splitting off the first term u0=0 of one sum and the last term wn+1=0 of the other gives ∑k=0ntkx=∑k=0n+1uk,∑k=0ntky=∑k=0n+1wk. So (x+y)n+1=∑k=0n+1(uk+wk) by Lemma 1.1.3 (a). Finally, u0+w0=0+1⋅z0=(n+10)⋅z0. For k=j+1 with 0≤j≤n, the sum rule m⋅z+m′⋅z=(m+m′)⋅z and Pascal’s rule give uk+wk=(nj)⋅zk+(nj+1)⋅zk=(n+1j+1)⋅zk=(n+1k)⋅zk. Hence (x+y)n+1=∑k=0n+1(n+1k)⋅(xkyn+1−k), which is the formula for n+1. This proves the theorem.

Uses: Lemma 1.1.3 (b) (constant times a sum), (f) (split off first term); Sets and Functions, Definition 3.3.1 (last term split off); Lemma 1.1.2 (a) (sum rule); Number Systems: From N to R, Proposition 2.4.3 (h) (same rule, no order needed).

The proof used commutativity, (F6), at every regrouping of xkyn−kx, and the theorem needs it. The linear-algebra volumes meet matrices, whose multiplication is not commutative. For matrices the expansion can fail for pairs that do not commute, already at n=2. For R=Z the theorem is the familiar expansion, since there m⋅z=mz (Lemma 1.1.2 (e)). The same holds in R, where m⋅1 is the real number m. From here on we read the theorem in R this way.

Second readingWhat goes wrong without commutativity

Keep every clause of a commutative ring except commutativity of multiplication, (F6), together with the distributive law on the other side, (a+b)c=ac+bc, which (F6) used to supply. Then the theorem fails already at n=2. Expanding by the two distributive laws gives (x+y)2=x2+xy+yx+y2, and the theorem’s middle term 2⋅(xy)=xy+xy agrees with xy+yx exactly when yx=xy. The 2×2 real matrices X=(0100),Y=(0010) live in a system with all of these laws under the usual matrix operations. Here X2=Y2=0, while (X+Y)2 is the identity matrix and 2⋅(XY) has entries 2,0,0,0. Everything else in the proof survives: Pascal’s rule, the sum rules and the bookkeeping with uk and wk. Only the regrouping xkyn−kx=xk+1yn−k breaks, and this is why the statement asks for a commutative ring.

Example (Three expansions)
  • (a) Expand (a+b)4 in Z. (b) Expand (x−1)5 in R. (c) Compute 114 from row 4 of the table.

Solution.

  • (a) The theorem with n=4 and row 4, 1,4,6,4,1, gives, from k=4 down to k=0, (a+b)4=a4+4a3b+6a2b2+4ab3+b4.

  • (b) Take y=−1 in the theorem. The term with index k is (5k)xk(−1)5−k, and (−1)5−k is −1 for k=4,2,0 and 1 for k=5,3,1, since (−1)2=1 and Sets and Functions, Proposition 3.3.4 (a), (b) give (−1)2i=1 and (−1)2i+1=−1. With row 5, 1,5,10,10,5,1, (x−1)5=x5−5x4+10x3−10x2+5x−1.

  • (c) Write 11=10+1 and take x=10, y=1: 114=104+4⋅103+6⋅102+4⋅10+1=10000+4000+600+40+1=14641. The digits of 14641 are row 4, because every coefficient of that row is below 10 and no carrying occurs.

Quick check. Write row 7 from row 6 by Pascal’s rule, and check (73) by the formula of Proposition 1.2.2.

Solution. Row 6 is 1,6,15,20,15,6,1, so row 7 is 1,7,21,35,35,21,7,1 (for instance (73)=(62)+(63)=15+20). By the formula, (73)=7!3!4!=50406⋅24=5040144=35.

Warning. The rule (x+y)n=xn+yn is false in R for every n≥2: with x=y=1 it would give 2n=2, while 2n>21=2 for n≥2 (Sets and Functions, Proposition 3.3.4 (e)); at n=2, (1+1)2=4≠2. The theorem says what is missing: the middle terms (nk)xkyn−k with 0<k<n. Chapter 4 shows that those middle terms all vanish for n=p in every field of characteristic p, a prime.

1.2.4. Consequences in the real numbers

In R the theorem gives exact sums of binomial coefficients. For x≥0 it also gives lower bounds for (1+x)n: every term of the expansion is then non-negative, and a sum of non-negative terms is at least any part of it. These lower bounds are what Section 1.4 needs.

Corollary 1.2.4 (Binomial Sums and Lower Bounds)

Let n∈N.

  • (a) ∑k=0n(nk)=2n, and ∑k=0n(−1)k(nk)=0 if n≥1.
  • (b) If x∈R, x≥0 and k≤n, then (1+x)n≥(nk)xk.
  • (c) If x∈R, x≥0 and n≥2, then (1+x)n≥1+nx+n(n−1)2x2.

Proof. We apply Theorem 1.2.3 in R=R.

  • (a) With x=y=1, every xkyn−k is 1, since 1m=1 for every m, so 2n=(1+1)n=∑k=0n(nk). With x=−1 and y=1, (−1+1)n=0n, and for n≥1, 0n=0n−10=0. So 0=∑k=0n(−1)k(nk).

(b), (c) With y=1, (x+1)n=∑j=0n(nj)xj. For x≥0 each term is ≥0. Indeed (nj)≥0 is a natural number. Also xj≥0: for x>0 a power of a positive number is positive, and for x=0, xj is 1 or 0. A product of two non-negative numbers is non-negative. By Proposition 1.1.5 (b), the sum is at least its single term j=k, which is (b). By the same part with m=2≤n, it is at least the sum of its terms j=0,1,2, which is 1+(n1)x+(n2)x2. Finally, (n1)=n by the third fact after Definition 1.2.1. By Proposition 1.2.2 (c) with k=2, (n2)⋅2=n(n−1), so (n2)=n(n−1)2. This proves (c).

Uses: Sets and Functions, Proposition 3.3.4 (e) (positive powers of positives); Number Systems: From N to R, Proposition 4.1.2 (d) (multiplying non-negative inequalities); Number Systems: From N to R, Proposition 4.2.1 (a), (b) (naturals in R: products, sign).

For n≥1, keeping only the first two terms gives (1+x)n≥1+nx for x≥0, by Proposition 1.1.5 (b) with m=1. Sets and Functions proved this as Bernoulli’s inequality (Sets and Functions, Theorem 3.3.7), and here we recover it on that range. Bernoulli’s inequality also covers −1≤x<0, and the expansion cannot reach that range: for x<0 the terms (nj)xj alternate in sign, and dropping some of them may raise the sum instead of lowering it.

Quick check. With n=5 and x=2, which k gives the best lower bound for 35 from (b)?

Solution. The bound is (5k)2k, which for k=0,1,…,5 is 1,10,40,80,80,32. The best choices are k=3 and k=4, both giving 35=243≥80. A single term loses a lot; Section 1.4 only ever needs a bound that grows fast enough, not a sharp one.

Example (A lower bound for powers of two)

Show that 2n≥n(n−1)2, and hence n2n≤2n−1, for every integer n≥2.

Solution. Let n≥2. By Corollary 1.2.4 (b) with x=1 and k=2≤n, 2n=(1+1)n≥(n2)=n(n−1)2. Both sides are positive (n(n−1)≥2), so Number Systems: From N to R, Proposition 4.1.2 (c) inverts the inequality: 12n≤2n(n−1). Multiplying by n>0 gives n2n≤2n−1. For instance, at n=5: 532≤24.

The right side 2n−1 can be made as small as we like by taking n large, and Section 1.4 turns this into the limit n/2n→0.

Example (An absorbed sum)

Compute ∑k=14k(4k) in two ways: term by term, and by absorption.

Solution. Term by term, with row 4: 1⋅4+2⋅6+3⋅4+4⋅1=4+12+12+4=32.

By absorption: shift the index by k=j+1 (Sets and Functions, Definition 3.3.1), so the sum is ∑j=03(j+1)(4j+1). Proposition 1.2.1 with n=3 gives (j+1)(4j+1)=4(3j). The constant 4 comes out of the sum by Lemma 1.1.3 (b). The row sum Corollary 1.2.4 (a) for n=3 then gives ∑k=14k(4k)=∑j=034(3j)=4∑j=03(3j)=4⋅23=32.

The second computation never uses the entries of row 4: absorption turns the factor k into the constant 4, and what is left is all of row 3, whose sum is 23.

1.2.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) In the proof of Theorem 1.2.3, why is u0:=0 put in, and where is it used?
  • (b) Where does the proof use commutativity of multiplication, (F6)?
  • (c) Run the induction step from n=1 to n=2: list u0,u1,u2 and w0,w1,w2, and add them.
  • (d) True or false: (nk)=(nn−k) for all n,k∈N with k≤n. Give the reason.

Solution.

  • (a) The sum ∑k=0ntkx is u1+⋯+un+1, which starts at index 1. Putting in u0=0 turns it into ∑k=0n+1uk by Lemma 1.1.3 (f) (split off the first term, which is 0). That is a sum over the same range 0≤k≤n+1 as ∑wk, so the two can be added termwise by Lemma 1.1.3 (a).

  • (b) In computing tkx: the product (xkyn−k)x becomes xk+1yn−k only after x is moved past yn−k, which is commutativity, (F6). It is also used to bring the factor x (and y) to the left of the sum, where Lemma 1.1.3 (b) has it. The first use is the one the theorem cannot do without: for matrices that do not commute, (x+y)2=x2+xy+yx+y2, and xy+yx≠2⋅xy.

  • (c) For n=1, zk=xky2−k. Then u0=0, u1=(10)⋅z1=xy, u2=(11)⋅z2=x2; and w0=(10)⋅z0=y2, w1=(11)⋅z1=xy, w2=(12)⋅z2=0. The sum is y2+2⋅(xy)+x2, with coefficients 1,2,1, row 2.

  • (d) True, by Proposition 1.2.2 (b). Each row of the table reads the same from both ends.

B. Practice

Exercise (B1: Expansions)
  • (a) Write (2x−1)5, for x∈R, as a sum of six terms. What multiplies x3? (b) Compute ∑k=0n(nk)3k for n∈N.

Solution.

  • (a) Since (2x)k=2kxk (Sets and Functions, Proposition 3.3.4 (c)), the theorem with 2x in place of x and y=−1 gives (2x−1)5=∑k=05(5k)2k(−1)5−kxk. Term by term, with row 5 and k=5,4,…,0, this is (2x−1)5=32x5−80x4+80x3−40x2+10x−1. The term with k=3 is (53)⋅8⋅(−1)2x3=80x3, so 80 multiplies x3.

  • (b) By the theorem with x=3 and y=1, the sum is (3+1)n=4n. Check n=2: 1+2⋅3+9=16.

Exercise (B2: An absorbed sum)

Show that ∑k=1nk(nk)=n2n−1 for every integer n≥1.

Hint: absorption.

Solution. Let n≥1. Shift the index by k=j+1 (Sets and Functions, Definition 3.3.1): the sum is ∑j=0n−1(j+1)(nj+1). By Proposition 1.2.1 with n−1∈N in place of n, (j+1)((n−1)+1j+1)=n(n−1j). Taking the constant n out of the sum and using the row sum Corollary 1.2.4 (a) for n−1, ∑k=1nk(nk)=∑j=0n−1n(n−1j)=n∑j=0n−1(n−1j)=n2n−1. Check n=3: 1⋅3+2⋅3+3⋅1=12=3⋅4.

Uses: Lemma 1.1.3 (b) (constant out of a sum).

Exercise (B3: A numerical lower bound)

Show that (1.01)10≥1.1045 without multiplying out the power.

Solution. Apply Corollary 1.2.4 (c) with x=0.01≥0 and n=10≥2: n(n−1)2=45, and (1.01)10≥1+10⋅0.01+45⋅0.0001=1+0.1+0.0045=1.1045.

C. Going deeper

Exercise (C1: Chapter check: absorption twice)

Prove that, in Z, ∑k=0nk(k−1)(nk)=n(n−1)2n−2 for every integer n≥2.

Solution. Let n≥2, and write ak:=k(k−1)(nk). The terms a0 and a1 are 0, so by Proposition 1.1.4 (b) with m=1, ∑k=0nak=(a0+a1)+∑k=2nak=∑k=2nak. Let 2≤k≤n. By Proposition 1.2.1 with n−1 in place of n and k−1 in place of k (both in N, as n,k≥1), k(nk)=n(n−1k−1). Applied again with n−2 and k−2 (in N, as n,k≥2), (k−1)(n−1k−1)=(n−1)(n−2k−2). Hence ak=(k−1)⋅k(nk)=n(k−1)(n−1k−1)=n(n−1)(n−2k−2). Shifting the index by j=k−2, taking the constant n(n−1) out of the sum and using the row sum Corollary 1.2.4 (a) for n−2, ∑k=2nak=n(n−1)∑j=0n−2(n−2j)=n(n−1)2n−2. Check n=3: a2+a3=2⋅3+6⋅1=12=6⋅2.

Uses: Sets and Functions, Definition 3.3.1 (index shift); Lemma 1.1.3 (b) (constant out of a sum).

What a complete answer needs. (10 points) - 2: the terms k=0,1 are shown to be 0 and split off, with the splitting rule cited. - 3: the first absorption, k(nk)=n(n−1k−1), with its range k≥1 stated. - 3: the second absorption, (k−1)(n−1k−1)=(n−1)(n−2k−2), with its range k≥2, n≥2 stated. - 2: the index shift and the row sum Corollary 1.2.4 (a) for n−2. A route through Proposition 1.2.2 (c) earns the absorption points for the equivalent identity k(k−1)(nk)=n(n−1)(n−2k−2), proved for k≥2. An induction on n from n=2, with Pascal’s rule and Exercise (B2: An absorbed sum), also earns full marks. It scores 3 for the base case and the set-up, 4 for the Pascal split S(n+1)=2S(n)+2∑j=0nj(nj), where S(n) is the sum, and 3 for the algebra with B2.

Slips that lose the step. Applying absorption at k=0, where it would need (n−1−1), earns 0 for that step.