Pascal's Triangle Calculator

Type a number of rows to build Pascal's triangle and read off its last row.

How many rows to build, a whole number from 1 to 30. The last row is the answer.

Try

Result

You enteredPascal’s triangle, 1 row\text{Pascal's triangle, } 1 \text{ row}

1\displaystyle 1

Triangle

1\displaystyle \begin{array}{c}1\end{array}

Row sum

20=1\displaystyle 2^{0} = 1
Show the work
  1. Pascal's rule

    Start with a single 1 in row 0. Every row begins and ends with 1, and each number inside is the sum of the two numbers just above it, as in 1+1=21 + 1 = 2. The numbers in row nn are the binomial coefficients (nk)\binom{n}{k}.

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

    1\begin{array}{c}1\end{array}
  2. Result

    The last of the 1 row is row 0: 11. Its entries add up to 20=12^{0} = 1.

Worked examples