Kolton Ndoj

Pascal's triangle

Every number in the triangle is the sum of the two above it, and each one counts a different way of choosing.

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

What the symbols mean

(nk)\binom nk
number of ways to choose k things from n
nn
row number (starting at 0)
kk
position in the row

Why it works — the picture

Picture a pegboard where a ball falls and bounces left or right at each peg. The number of different routes to a spot is the sum of the routes to the two spots above it, which is the whole triangle rule. Each row also adds up to a power of 2, since every ball has 2 choices at each of n pegs. Colour the odd numbers and a self-repeating fractal appears (Sierpinski's triangle).

Graph for Pascal's triangle 01011000
Row sums of the triangle: 1, 2, 4, 8, 16... Row 10 adds up to 1024. (drawn with the default slider values — move the sliders live)

Try it yourself

Where it’s used in real life

Counting lottery combinations, designing tournaments, and the probabilities of coin flips all use these numbers.

The story behind it

Blaise Pascal wrote about it in 1654, but Chinese and Indian mathematicians knew it centuries earlier.

Related

Play with it live →

Math · Combinatorics · Beginner-friendly