The Sequence Census of a Parity DesignThe Sequence Census of a Parity Design

The Sequence Census of a Parity Design

MrlyProd

First published 2026-08-31, revised 2026-09-08

PDF · TeX

Colour the cells of a grid by the parity of their coordinates, keep a chosen set of colours, and count what you kept. Every such rule writes an integer sequence, and this paper counts the sequences rather than admiring them. In dimension DD there are 22D2^{2^D} rules but only w=0D(1+(Dw))\prod_{w=0}^{D}\left(1+\binom{D}{w}\right) distinct counting sequences, and in the plane every one of them is a classical figurate number - which one being decided by two bits of the rule.

The six rules of the plane that keep the all-even corner, drawn at side five, each labelled with its fill polynomial, its code and the classical family it counts.
The six rules of the plane that keep the all-even corner, drawn at side five, each labelled with its fill polynomial, its code and the classical family it counts.

A design is a subset FF of the parity cube {0,1}D\{0,1\}^D; a cell of the grid of odd side n=2k1n = 2k-1 is filled when the parities of its coordinates spell a corner of FF. Write fwf_w for the number of kept corners of Hamming weight ww.

Theorem (fill law). PF(k)=cFkDc(k1)c=w=0DfwkDw(k1)wP_F(k) = \sum_{c \in F} k^{D-|c|}(k-1)^{|c|} = \sum_{w=0}^{D} f_w k^{D-w}(k-1)^w, a polynomial with leading coefficient F|F|, of degree exactly DD for every nonempty design and identically zero for the empty one.

Corollary (the census). The 22D2^{2^D} designs of dimension DD write exactly w=0D(1+(Dw))\prod_{w=0}^{D}\left(1+\binom{D}{w}\right) distinct sequences - 2,4,12,64,700,17424,2, 4, 12, 64, 700, 17424, \dots - because the polynomial remembers only the weight signature.

Theorem (the plane is classical). In dimension two, a nonempty design with f0=1f_0 = 1 fills as the (2F+2)(2|F|+2)-gonal number when f2=0f_2 = 0 and as the centered 2F2|F|-gonal number when f2=1f_2 = 1; the remaining nonzero rules fill as one of those polygonal numbers read at the reflected argument 1k1-k, or as a multiple f1k(k1)f_1 k(k-1) of the oblong numbers. So the squares, hexagonal numbers, octagonal numbers, centered squares, centered hexagonal numbers and odd squares are not six coincidences but one mechanism, and the family is read off the rule by inspection.

Theorem (surface law). Substituting a tile of cc cells multiplies exposed faces by cc and buries 2WalaL2W_a l_a^L of them along each axis aa, where lal_a is the tile's face fill and WaW_a its face-adjacent filled pairs; so the exposed-face count is C-finite of order at most D+1D+1, on roots drawn from {c,l1,,lD}\{c, l_1, \dots, l_D\}. Order two - the Menger sponge's 220L+48L2 \cdot 20^L + 4 \cdot 8^L, the carpet's perimeter - is the special case of one face fill, and it is the exception: 141 of the 255 nonempty rules of the cube carry two or more.

Theorem (the crossover). The count of distinct sequences exceeds the count of distinct shapes in dimensions one to four and is exceeded by it from dimension five on, the ratio growing past 3.8×1083.8 \times 10^8 by dimension six: the machine draws far more pictures than it can count.

Two evaluations do the work. PF(1)=f0P_F(1) = f_0 asks whether the unit cell is filled and PF(0)=(1)DfDP_F(0) = (-1)^D f_D asks whether the all-odd cells are kept, and a quadratic normalised at 00 and 11 is pinned by its leading coefficient alone - so the classical families are a bottleneck every planar count of this kind must pass through, not a signal of common ancestry. That is also why the centered hexagonal numbers of the diagonal slice of the odd cube, which arrive by a genuinely different mechanism, collide with the same catalogue entry. The paper also records which of these sequences the OEIS already holds, Burnside counts along the symmetry axis, and one conjecture about a catalogue absence, carrying the caveat that a null search against a downloaded snapshot is a report on that snapshot and nothing more - the paper's own worked example being the level-one diagonal slice, which counts D!/D/2!2D!/\lfloor D/2\rfloor!^2 cells and is therefore A056040, the swinging factorial, however unfamiliar its interleaved terms look.

  • Grew from the sequences page of the MrlyMath tree.
  • paper.pdf - the paper.
  • tectonic paper.tex rebuilds it; python3 scripts/verify.py re-checks every number and reprints every table; python3 scripts/figure.py redraws the figure.