Video 3, chapter 6

Pascal's Triangle, a Pattern Factory

How Pascal's triangle is built by adding the two entries above, and why its entries are the binomial coefficients that count combinations and lattice paths and give the coefficients in the binomial theorem.

  • Video 3, chapter 6
  • When numbers become pictures

Start with a single 1, then build each new row by putting 1 at both ends and adding the two numbers just above every other position. The rule is one small addition, yet the numbers it produces count routes through the triangle, count the ways to choose a few objects from a group, and appear as the coefficients when a power such as (a+b)4(a + b)^4 is multiplied out. Why should one addition rule answer three different questions? This page gives the entries something concrete to count and shows that each count obeys the same rule.

Key terms

Pascal’s triangle

Definition Pascal’s triangle is a triangular array of numbers arranged in rows. The top row is row 0 and holds a single 1. Row nn holds n+1n + 1 entries in positions k=0,1,…,nk = 0, 1, \dots, n, counted from the left starting at 0. Each row begins and ends with 1, and every other entry is the sum of the two entries diagonally above it. So for 1≤k≤n−11 \le k \le n - 1 the entry in row nn at position kk is the sum of the entries in row n−1n - 1 at positions k−1k - 1 and kk. The surprise is that this one rule produces, in row nn at position kk, the number of ways to choose kk objects from nn different objects. That number is written (nk)\binom{n}{k} and called a binomial coefficient. It also counts the paths from the top that end at that position, and it is the coefficient of an−kbka^{n-k}b^k when (a+b)n(a + b)^n is multiplied out. As a consequence, the entries of row nn add up to 2n2^n. The triangle is named after Pascal, who wrote a treatise on it in the 1650s, although it was known centuries earlier in India, Persia and China.

In plain words Each number is the sum of the two numbers above it, with 1s down both edges. Rows and positions are both numbered from 0, so the 6 in the middle of the row 1, 4, 6, 4, 1 sits in row 4 at position 2.

Example Row 0 to row 5 are

11112113311464115101051\begin{gathered} 1 \\ 1 \quad 1 \\ 1 \quad 2 \quad 1 \\ 1 \quad 3 \quad 3 \quad 1 \\ 1 \quad 4 \quad 6 \quad 4 \quad 1 \\ 1 \quad 5 \quad 10 \quad 10 \quad 5 \quad 1 \end{gathered}

The 6 in row 4 is 3+33 + 3, the two entries above it, and each 10 in row 5 is 4+64 + 6. The row sums are 1, 2, 4, 8, 16 and 32, each twice the one before. Other directions hold patterns too. Adding the entries along a shallow diagonal, in row nn at position 0, row n−1n - 1 at position 1, row n−2n - 2 at position 2 and so on while the position stays within its row, gives 1, 1, 2, 3, 5 and 8 for n=0n = 0 to 5. These are the first Fibonacci numbers, in which each number is the sum of the two before it. For n=5n = 5 the diagonal sum is 1+4+3=81 + 4 + 3 = 8.

Combinations

Definition For whole numbers n≥0n \ge 0 and 0≤k≤n0 \le k \le n, a combination of kk objects from a set of nn different objects is a selection of kk of them in which order does not matter, in other words a subset of size kk. Two selections are the same combination when they contain the same objects. The number of combinations of kk objects from nn is written (nk)\binom{n}{k} and read as nn choose kk. To count them, fix one object of the set. A combination of size kk either leaves that object out, and is then a choice of kk of the other n−1n - 1 objects, or contains it, and is then a choice of k−1k - 1 of the other n−1n - 1 objects. No combination is of both kinds, so for 1≤k≤n−11 \le k \le n - 1 this gives Pascal’s rule,

(nk)=(n−1k−1)+(n−1k),\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k},

the addition rule of the triangle. Together with (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1, for the single empty selection and the selection of everything, these counts fill the triangle row by row.

In plain words A combination is a choice of a group in which only membership counts, like picking two people for a team without naming a captain. Splitting the choices by whether one particular object is in the group gives exactly the two numbers above it in the triangle.

Example The numbers of ways to choose 0, 1, 2, 3 or 4 of the four objects A, B, C and D are 1, 4, 6, 4 and 1, which is row 4. The six pairs are AB, AC, AD, BC, BD and CD. Marking D splits them into AB, AC and BC, which leave D out, and AD, BD and CD, which include it. That gives (32)+(31)=3+3=6\binom{3}{2} + \binom{3}{1} = 3 + 3 = 6, the same sum that built the 6 in the triangle. The lesson Combinations and Binomial Coefficients in the probability course counts combinations in more detail.

Binomial coefficients

Definition For whole numbers n≥0n \ge 0 and 0≤k≤n0 \le k \le n, the binomial coefficient (nk)\binom{n}{k} is the number of combinations of kk objects from nn different objects. It is given by

(nk)=n!k! (n−k)!,\binom{n}{k} = \frac{n!}{k!\,(n-k)!},

where n!=n(n−1)⋯2⋅1n! = n(n-1) \cdots 2 \cdot 1 for n≥1n \ge 1 and 0!=10! = 1. The formula comes from counting ordered selections, of which there are n(n−1)⋯(n−k+1)n(n-1)\cdots(n-k+1), and dividing by the k!k! orders in which each combination can be listed. The binomial coefficient (nk)\binom{n}{k} is the entry of Pascal’s triangle in row nn at position kk, both counted from 0. Binomial coefficients are symmetric, (nk)=(nn−k)\binom{n}{k} = \binom{n}{n-k}, because choosing the kk objects to take is the same as choosing the n−kn - k objects to leave. The entries of row nn add up to 2n2^n, because each of the nn objects is either taken or left, which gives 2n2^n subsets of all sizes together.

In plain words A binomial coefficient answers the question of how many groups of a given size can be picked. Row nn of the triangle lists all the answers for nn objects, from the group of none to the group of all.

Example The middle entry of row 4 is

(42)=4!2! 2!=244=6.\binom{4}{2} = \frac{4!}{2!\,2!} = \frac{24}{4} = 6.

Row 4 reads the same in both directions, 1, 4, 6, 4, 1, and its entries add up to 16=2416 = 2^4, the number of subsets of a set of four objects, counting the empty set and the whole set.

Lattice paths

Definition A lattice path is a route through a grid of points made of steps of a few allowed kinds. In Pascal’s triangle, start at the top entry and step down to the next row each time, either down to the left or down to the right. After nn steps the path is in row nn, and its position there is the number of steps it took to the right. So the paths that end in row nn at position kk are exactly the sequences of nn steps with kk steps to the right. There is one path to the top, the path with no steps, and one path to each end of a row, straight down an edge. A path to any other position arrives through one of the two positions diagonally above it, so the number of paths to it is the sum of the numbers of paths to those two. The path counts start, end and grow by the same rule as the triangle, so the number of paths to row nn, position kk, is (nk)\binom{n}{k}. The same count on a square grid says that there are (r+sr)\binom{r+s}{r} paths from the point (0,0)(0, 0) to the point (r,s)(r, s) made of steps one unit to the right or one unit up.

In plain words To count the routes to a point, add the routes to the two points you could have come from. Each route is a list of left and right steps, and choosing which of the steps go right picks out the route.

Example Write R for a step down to the right and L for a step down to the left. The paths to row 4 at position 2 take four steps, two of each kind, and there are six of them, RRLL, RLRL, RLLR, LRRL, LRLR and LLRR. Their right steps are in places 1 and 2, 1 and 3, 1 and 4, 2 and 3, 2 and 4, and 3 and 4, one path for each of the (42)=6\binom{4}{2} = 6 ways to choose two of the four places.

Binomial theorem

Definition The binomial theorem says that for every whole number n≥0n \ge 0 and all numbers aa and bb,

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

where the symbol ∑\sum means adding the terms for k=0,1,…,nk = 0, 1, \dots, n, and a power with exponent 0 counts as 1, even when its base is 0. The reason is that multiplying out the nn brackets of (a+b)(a+b)⋯(a+b)(a + b)(a + b) \cdots (a + b) means choosing aa or bb from each bracket, multiplying the choices, and adding the products over all 2n2^n ways of choosing. A product equals an−kbka^{n-k}b^k exactly when bb was chosen from kk of the nn brackets, and there are (nk)\binom{n}{k} ways to pick those brackets.

In plain words The coefficients in the expansion of (a+b)n(a + b)^n are row nn of Pascal’s triangle. Each coefficient counts the ways to pick which brackets supply a bb.

Example Row 4 gives

(a+b)4=a4+4a3b+6a2b2+4ab3+b4.\begin{aligned} (a + b)^4 &= a^4 + 4a^3b \\[0.4em] &\quad + 6a^2b^2 + 4ab^3 \\[0.4em] &\quad + b^4. \end{aligned}

The term 6a2b26a^2b^2 collects the six products in which bb comes from two of the four brackets, one for each pair of brackets, just as there were six pairs of letters and six paths. Taking a=b=1a = b = 1 gives 24=1+4+6+4+12^4 = 1 + 4 + 6 + 4 + 1, the row sum again.

Check yourself

  1. Build row 6 from row 5 and check that its entries add up to 262^6. Which entry counts the ways to choose 3 objects from 6?
Show the answer

Row 5 is 1, 5, 10, 10, 5, 1. Adding neighbors gives 1+5=61 + 5 = 6, 5+10=155 + 10 = 15, 10+10=2010 + 10 = 20, 10+5=1510 + 5 = 15 and 5+1=65 + 1 = 6, with a 1 at each end, so row 6 is 1, 6, 15, 20, 15, 6, 1. Its sum is 1+6+15+20+15+6+1=64=261 + 6 + 15 + 20 + 15 + 6 + 1 = 64 = 2^6. Choosing 3 objects from 6 is the entry in row 6 at position 3, counting from 0, which is the middle entry 20. The formula agrees, since

(63)=6!3! 3!=72036=20.\binom{6}{3} = \frac{6!}{3!\,3!} = \frac{720}{36} = 20.

Counting positions from 1 instead would point at 15, which is (62)\binom{6}{2}, a common slip.

  1. Change a rule. Block the middle point of row 2, so that no path may pass through it. How many paths from the top now reach the middle of row 4, and does the addition rule still work?
Show the answer

The addition rule still works if the blocked point gets the count 0, because every path to a point still arrives through one of the two points above it. The counts become

111101111112221\begin{gathered} 1 \\ 1 \quad 1 \\ 1 \quad 0 \quad 1 \\ 1 \quad 1 \quad 1 \quad 1 \\ 1 \quad 2 \quad 2 \quad 2 \quad 1 \end{gathered}

so 2 paths reach the middle of row 4, namely RRLL and LLRR. A direct check agrees. Of the six paths to that point, RLRL, RLLR, LRRL and LRLR take one step of each kind first and so pass through the blocked point, which leaves 6−4=26 - 4 = 2. The new counts are no longer binomial coefficients, because the allowed paths are no longer all the sequences of left and right steps.

  1. Extend the pattern. Since 11=10+111 = 10 + 1, the binomial theorem computes powers of 11 from the rows of the triangle. Check that 114=1464111^4 = 14641, which reads row 4, and explain why 115=16105111^5 = 161051 does not read row 5.
Show the answer

Take a=10a = 10 and b=1b = 1 in row 4.

114=(10+1)4=104+4⋅103+6⋅102+4⋅10+1=14641.\begin{aligned} 11^4 &= (10 + 1)^4 \\[0.4em] &= 10^4 + 4 \cdot 10^3 \\[0.4em] &\quad + 6 \cdot 10^2 \\[0.4em] &\quad + 4 \cdot 10 + 1 \\[0.4em] &= 14641. \end{aligned}

Every coefficient is a single digit, so each one lands in its own decimal place and the digits are the row. Row 5 is 1, 5, 10, 10, 5, 1, and

115=105+5⋅104+10⋅103+10⋅102+5⋅10+1=161051.\begin{aligned} 11^5 &= 10^5 + 5 \cdot 10^4 \\[0.4em] &\quad + 10 \cdot 10^3 \\[0.4em] &\quad + 10 \cdot 10^2 \\[0.4em] &\quad + 5 \cdot 10 + 1 \\[0.4em] &= 161051. \end{aligned}

The two entries 10 have two digits, so each carries 1 into the next place to the left, and the digits no longer show the row. Reading a row from a power of 11 works only while every entry of the row is less than 10, which is true for rows 0 to 4.