Category: Sequences and Series Level: 201
C(n, k) odd ⇔ the cell is part of the Sierpinski pattern
Color the odd numbers in Pascal's triangle and the Sierpinski triangle appears. The same pattern comes from adding neighbors, with no geometry at all.
Each number is the sum of the two numbers above it, and every row starts and ends with 1.
C(n, k) = C(n - 1, k - 1) + C(n - 1, k)
Shade every odd entry green and leave the even ones gray. Odd plus odd is even, so holes open where two odd numbers meet.
odd + odd = even, odd + even = odd
Drop the digits and keep only the colors. Sixteen rows show the Sierpinski triangle, made by addition alone.
rows 0 to 15
The top eight rows appear three times, around an upside-down block of even numbers. That is the same remove-the-middle rule as the geometric picture.
16 rows = 3 copies of 8 rows + an even hole
cd svg-generator python3 -m svgmath render sierpinski-pascal --out /tmp/sierpinski-pascal
Source: svgmath/diagrams/sequences.py