I've been told that prime-number factoring is based on a "roman"russian-doll" sequence of matrices, where a seed matrix of height Y and width X exists consisting of all zeros except for a single 1 at row Y column X. For every x columns added, the matrix grows by y, and two closely related formulas sum the column vectors and the row vectors.
An additional constraint that results in the "roman"russian doll" effect are: $$ \forall I \in \mathcal{N} \cdot I\ge X\implies \sum_{j\in \mathcal{N}} h_{I,j}=\sum_{j=Y+(y/x-m)(I-X)}^{Y+y(I-X)/x} h_{I,j} $$