Skip to content
Family Table Math
Auto

Pascal's Triangle

Pascal’s triangle is a triangle of numbers where each number is the sum of the two above it. It looks simple, but it’s full of patterns, and it answers two big questions you’ll meet again: how to expand powers like (x+y)5(x + y)^5, and how many ways there are to choose things.

Start with 11 at the top. Each row begins and ends with 11, and every other number is the sum of the two numbers diagonally above it.

111121133114641151010511615201561\begin{array}{ccccccccccccc} & & & & & & 1 & & & & & & \\ & & & & & 1 & & 1 & & & & & \\ & & & & 1 & & 2 & & 1 & & & & \\ & & & 1 & & 3 & & 3 & & 1 & & & \\ & & 1 & & 4 & & 6 & & 4 & & 1 & & \\ & 1 & & 5 & & 10 & & 10 & & 5 & & 1 & \\ 1 & & 6 & & 15 & & 20 & & 15 & & 6 & & 1 \end{array}

The rows are numbered from row 0 at the top, so the bottom row shown is row 6. Within a row, positions are also numbered from 00. We write tn,rt_{n, r} for the entry in row nn, position rr. For example, t6,2=15t_{6, 2} = 15.

The building rule is a recursion formula:

tn,r=tn−1,r−1+tn−1,rt_{n, r} = t_{n - 1, r - 1} + t_{n - 1, r}
  • Symmetry: each row reads the same forwards and backwards.
  • Row sums: the numbers in row nn add up to 2n2^n. Row 3: 1+3+3+1=8=231 + 3 + 3 + 1 = 8 = 2^3.
  • Diagonals: the first diagonal is all 11s, the second is the counting numbers 1,2,3,…1, 2, 3, \dots, and the third is the triangular numbers 1,3,6,10,15,…1, 3, 6, 10, 15, \dots
  • Hockey stick: add any run of numbers down a diagonal, starting from a 11, and the total is the number just below and to the side of where you stopped: 1+2+3+4=101 + 2 + 3 + 4 = 10.
  • Fibonacci: adding along the shallow diagonals gives 1,1,2,3,5,8,…1, 1, 2, 3, 5, 8, \dots

Pascal’s triangle counts routes. On a grid of streets, the number of shortest routes to each corner is the sum of the routes to the corner above it and the corner to its left, the same adding rule as the triangle.

The entry tn,rt_{n, r} is also the number of ways to choose rr items from nn. In Data Management you’ll write this as (nr)\dbinom{n}{r}, read ”nn choose rr”. For example, there are (62)=t6,2=15\dbinom{6}{2} = t_{6, 2} = 15 ways to choose 22 people from a group of 66.

Use row 6 to write row 7.

Solution. Row 6 is 1,6,15,20,15,6,11, 6, 15, 20, 15, 6, 1. Add neighbouring pairs, and put a 11 at each end:

1,1+6=7,6+15=21,15+20=35,20+15=35,21,7,11, \quad 1 + 6 = 7, \quad 6 + 15 = 21, \quad 15 + 20 = 35, \quad 20 + 15 = 35, \quad 21, \quad 7, \quad 1

Row 7 is 1,7,21,35,35,21,7,11, 7, 21, 35, 35, 21, 7, 1. Its sum is 128=27128 = 2^7, as expected.

What is the sum of the numbers in row 10?

Solution. Row nn sums to 2n2^n, so row 10 sums to 210=10242^{10} = 1024.

How many shortest routes are there from the top-left corner of a street grid to a corner 33 blocks right and 22 blocks down?

Solution. Write a 11 at every corner along the top edge and the left edge: there’s only one way to reach them (straight along the edge). Every other corner is the sum of the corner above and the corner to the left:

1111123413610\begin{array}{cccc} 1 & 1 & 1 & 1 \\ 1 & 2 & 3 & 4 \\ 1 & 3 & 6 & \mathbf{10} \end{array}

There are 1010 shortest routes. Notice that 1010 is t5,2t_{5, 2} in Pascal’s triangle: every route is 55 blocks long, and you choose which 22 of them go down.

Example 4: Triangular numbers and the hockey stick

Section titled “Example 4: Triangular numbers and the hockey stick”

Find the triangular numbers in the triangle, and use the hockey-stick pattern to add 1+3+6+101 + 3 + 6 + 10.

Solution. The triangular numbers 1,3,6,10,15,…1, 3, 6, 10, 15, \dots run down the third diagonal: t2,2,t3,2,t4,2,t5,2,…t_{2, 2}, t_{3, 2}, t_{4, 2}, t_{5, 2}, \dots

1+3+6+101 + 3 + 6 + 10 is a run down that diagonal from row 2 to row 5. The hockey stick says the sum is the entry just below the last one, on the next diagonal: t6,3=20t_{6, 3} = 20. Check: 1+3+6+10=201 + 3 + 6 + 10 = 20. ✓

Numbering rows from 1. The single 11 at the top is row 0. Row 5 is 1,5,10,10,5,11, 5, 10, 10, 5, 1, which has 66 entries.

Numbering positions from 1. In row 6, position 00 is 11 and position 22 is 1515.

Adding the wrong pair. Each entry comes from the two numbers directly above it (up-left and up-right), not from its neighbours in the same row.

Forgetting the symmetry check. If a row you’ve built isn’t symmetric, there’s an arithmetic error.

1. (Warm-up) Write rows 0 to 5 of Pascal’s triangle.

Solution

Row 0: 11; row 1: 1,11, 1; row 2: 1,2,11, 2, 1; row 3: 1,3,3,11, 3, 3, 1; row 4: 1,4,6,4,11, 4, 6, 4, 1; row 5: 1,5,10,10,5,11, 5, 10, 10, 5, 1.

2. (Warm-up) What is the sum of row 8?

Solution

28=2562^8 = 256.

3. (Warm-up) Row 7 is 1,7,21,35,35,21,7,11, 7, 21, 35, 35, 21, 7, 1. Write row 8.

Solution

1,8,28,56,70,56,28,8,11, 8, 28, 56, 70, 56, 28, 8, 1

4. (Core) Find t7,3t_{7, 3}.

Solution

Row 7 is 1,7,21,35,…1, 7, 21, 35, \dots, so position 33 is t7,3=35t_{7, 3} = 35.

5. (Core) How many shortest routes are there from one corner of a street grid to a corner 44 blocks right and 22 blocks down?

Solution

Fill in the grid by adding the corner above and the corner to the left:

11111123451361015\begin{array}{ccccc} 1 & 1 & 1 & 1 & 1 \\ 1 & 2 & 3 & 4 & 5 \\ 1 & 3 & 6 & 10 & \mathbf{15} \end{array}

There are 1515 routes. (That’s t6,2t_{6, 2}: routes are 66 blocks long, and you choose which 22 go down.)

6. (Core) Use the hockey-stick pattern to find 1+4+10+201 + 4 + 10 + 20 (a run down the fourth diagonal, starting at row 3), then check by adding.

Solution

These are t3,3,t4,3,t5,3,t6,3t_{3, 3}, t_{4, 3}, t_{5, 3}, t_{6, 3}. The hockey stick gives the entry below the last one, on the next diagonal: t7,4=35t_{7, 4} = 35.

Check: 1+4+10+20=351 + 4 + 10 + 20 = 35. ✓

7. (Core) A row of Pascal’s triangle starts 1,12,66,…1, 12, 66, \dots Which row is it, and what is the next entry?

Solution

The second entry of row nn is nn, so it’s row 12. The next entry is t12,3t_{12, 3}. Using the row above (row 11 starts 1,11,55,1651, 11, 55, 165): t12,3=t11,2+t11,3=55+165=220t_{12, 3} = t_{11, 2} + t_{11, 3} = 55 + 165 = 220.

8. (Challenge) Add the numbers along the shallow diagonals of the triangle (start at the left edge and go up and to the right, one row up and one place over each step). Show that the first six sums are Fibonacci numbers.

Solution111+1=21+2=31+3+1=51+4+3=8\begin{aligned} &1 \\ &1 \\ &1 + 1 = 2 \\ &1 + 2 = 3 \\ &1 + 3 + 1 = 5 \\ &1 + 4 + 3 = 8 \end{aligned}

The sums are 1,1,2,3,5,81, 1, 2, 3, 5, 8: the start of the Fibonacci sequence.

9. (Challenge) Explain why each row sum is double the previous one.

Solution

When you build row n+1n + 1, each number in row nn is added into two entries below it: the one down-left and the one down-right. So every number in row nn is counted twice in row n+1n + 1, and the row sum doubles. Starting from row 0’s sum of 11, row nn sums to 2n2^n.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

H1. Build a row. Row 8 of Pascal’s triangle is 1,8,28,56,70,56,28,8,11,8,28,56,70,56,28,8,1. Build row 9, show the additions for its middle entries, and check symmetry. Rows and positions are numbered from 00 throughout this homework.

H2. Reading entries. Find t10,3t_{10,3}, t10,7t_{10,7}, t10,0t_{10,0}, and t10,10t_{10,10}. Use the two entries above t10,3t_{10,3} to check it, and explain why t10,3=t10,7t_{10,3}=t_{10,7}.

H3. Row sums. Find the sum of row 11 without listing every entry. Which row has sum 512512? Explain why adding one more row doubles the sum.

H4. Triangular numbers. Write the six entries t2,2,t3,2,…,t7,2t_{2,2},t_{3,2},\ldots,t_{7,2}. Describe their successive differences and use the pattern to find t9,2t_{9,2}.

H5. Routes and choices. Count the shortest routes that go five blocks east and three blocks north, with no west or south steps. Also count the ways to choose three of eight different students. Explain why the same entry of Pascal’s triangle answers both questions.

H6. A hockey stick. Find t3,3+t4,3+t5,3+t6,3+t7,3t_{3,3}+t_{4,3}+t_{5,3}+t_{6,3}+t_{7,3} by locating the tip of its hockey stick. Name that tip using row and position numbers, then verify by adding the five entries.

H7. A required or forbidden corner. On the grid from H5, the corner two blocks east and one block north of the start is marked.

  • (a) How many shortest routes pass through that corner?
  • (b) How many shortest routes avoid it?

Explain why the count for (a) splits into two stages.

H8. Shallow diagonals. Evaluate these three shallow-diagonal sums and explain how they continue the sequence 1,1,2,3,5,81,1,2,3,5,8.

  • (a) t6,0+t5,1+t4,2+t3,3t_{6,0}+t_{5,1}+t_{4,2}+t_{3,3}
  • (b) t7,0+t6,1+t5,2+t4,3t_{7,0}+t_{6,1}+t_{5,2}+t_{4,3}
  • (c) t8,0+t7,1+t6,2+t5,3+t4,4t_{8,0}+t_{7,1}+t_{6,2}+t_{5,3}+t_{4,4}

H9. Even and odd positions. In row 10, separately add the entries in even-numbered positions and those in odd-numbered positions. Predict each total without listing the whole row, then explain your result using the rule that each entry comes from the two above it. Does your reasoning work for every row after row 0?

H10. Identify the row. A row starts 1,n,45,…1,n,45,\ldots.

  • (a) Identify the row using the triangular-number diagonal.
  • (b) Find the next entry and its matching entry on the other side of the row.
  • (c) Find the row sum and explain how it checks the row number.