Generator

pascal

A generator in the discrete library, called 10 times across 4 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

pascal is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

Pascal's triangle, 8 rowsEach entry is the sum of the two above it.111121133114641151010511615201561172135352171

show: "parity"

Pascal's triangle mod 2, 32 rowsOnly the odd entries are drawn; the pattern that appears is the Sierpiński triangle.

show: "sierpinski"

Sierpiński's triangle, depth 5A triangle with its middle removed, repeatedly, to the given depth.

show: "mod"

Pascal's triangle modulo 3, 27 rowsEntries divisible by 3 are left blank; the rest are shaded by remainder.

What it checks while it draws

Collected by running the family and listening to lib/verify.js, not written here. The count is how many separate times this build put that claim to the test.

Where it is called

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove