Pascal’s Triangle
Each entry is the sum of the two above it. Pascal’s triangle encodes binomial coefficients, powers of 2, and fractal patterns under modular coloring.
Every interior number is the sum of the two above it. Row n sums to 2ⁿ and contains the binomial coefficients C(n, k). Coloring by parity reveals the Sierpinski triangle; other moduli create related fractal patterns. The amber row is the latest one revealed.
What you are seeing
The triangle starts with 1. Every interior entry is the sum of the two entries above it.
Row n contains the binomial coefficients C(n, k), which count ways to choose k items from n.
Coloring entries by parity produces the Sierpinski triangle. Coloring modulo other primes reveals related fractals.
Why it matters
Pascal’s triangle connects algebra, combinatorics, probability, and fractals. It appears in binomial expansions, random walks, and cellular automata.
Complexity & details
Building n rows costs O(n²) additions and O(n²) space.
Frequently asked questions
Why does parity create Sierpinski?+
By Lucas’ theorem, C(n,k) is odd exactly when the binary digits of k are a subset of the binary digits of n. That rule produces the fractal pattern.
What is the sum of row n?+
The sum is 2ⁿ, because each entry contributes to two entries in the next row.