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 , and how many ways there are to choose things.
Key ideas
Section titled “Key ideas”Building the triangle
Section titled “Building the triangle”Start with at the top. Each row begins and ends with , and every other number is the sum of the two numbers diagonally above it.
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 . We write for the entry in row , position . For example, .
The building rule is a recursion formula:
Patterns to look for
Section titled “Patterns to look for”- Symmetry: each row reads the same forwards and backwards.
- Row sums: the numbers in row add up to . Row 3: .
- Diagonals: the first diagonal is all s, the second is the counting numbers , and the third is the triangular numbers
- Hockey stick: add any run of numbers down a diagonal, starting from a , and the total is the number just below and to the side of where you stopped: .
- Fibonacci: adding along the shallow diagonals gives
Counting paths and choices
Section titled “Counting paths and choices”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 is also the number of ways to choose items from . In Data Management you’ll write this as , read ” choose ”. For example, there are ways to choose people from a group of .
Worked examples
Section titled “Worked examples”Example 1: The next row
Section titled “Example 1: The next row”Use row 6 to write row 7.
Solution. Row 6 is . Add neighbouring pairs, and put a at each end:
Row 7 is . Its sum is , as expected.
Example 2: Row sums
Section titled “Example 2: Row sums”What is the sum of the numbers in row 10?
Solution. Row sums to , so row 10 sums to .
Example 3: Routes on a grid
Section titled “Example 3: Routes on a grid”How many shortest routes are there from the top-left corner of a street grid to a corner blocks right and blocks down?
Solution. Write a 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:
There are shortest routes. Notice that is in Pascal’s triangle: every route is blocks long, and you choose which 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 .
Solution. The triangular numbers run down the third diagonal:
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: . Check: . ✓
Common mistakes
Section titled “Common mistakes”Numbering rows from 1. The single at the top is row 0. Row 5 is , which has entries.
Numbering positions from 1. In row 6, position is and position is .
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.
Practice
Section titled “Practice”1. (Warm-up) Write rows 0 to 5 of Pascal’s triangle.
Solution
Row 0: ; row 1: ; row 2: ; row 3: ; row 4: ; row 5: .
2. (Warm-up) What is the sum of row 8?
Solution
.
3. (Warm-up) Row 7 is . Write row 8.
Solution
4. (Core) Find .
Solution
Row 7 is , so position is .
5. (Core) How many shortest routes are there from one corner of a street grid to a corner blocks right and blocks down?
Solution
Fill in the grid by adding the corner above and the corner to the left:
There are routes. (That’s : routes are blocks long, and you choose which go down.)
6. (Core) Use the hockey-stick pattern to find (a run down the fourth diagonal, starting at row 3), then check by adding.
Solution
These are . The hockey stick gives the entry below the last one, on the next diagonal: .
Check: . ✓
7. (Core) A row of Pascal’s triangle starts Which row is it, and what is the next entry?
Solution
The second entry of row is , so it’s row 12. The next entry is . Using the row above (row 11 starts ): .
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.
Solution
The sums are : the start of the Fibonacci sequence.
9. (Challenge) Explain why each row sum is double the previous one.
Solution
When you build row , each number in row is added into two entries below it: the one down-left and the one down-right. So every number in row is counted twice in row , and the row sum doubles. Starting from row 0’s sum of , row sums to .