Flag-state recurrence laws for three-cell diagonal constancy

To count rectangular colourings subject to a diagonal rule in every \(3\times3\) window, it is enough to retain the last row and two equality flags per interior column. This representation verifies all 24 signed recurrences proposed in six of R. H. Hardin's OEIS tables, gives their exact starting indices and minimum eventual orders, and confirms four width-three generating functions proposed by Barker. The boards have width \(w\ge3\) and height \(n+2\), with \(n\ge1\). Colours receive their labels in order of first appearance when the board is read row by row from left to right. The palette size is an upper limit. In the disjunction rule, at least one full diagonal of each window must have all three entries equal. Both diagonals may qualify, and the qualifying direction can vary between windows. In the exclusion rule, neither full diagonal may have all three entries equal. The exclusion is applied to each window, so its board count cannot be obtained by subtracting the disjunction count from the number of unrestricted boards. Hardin's companion columns ask whether the reported signed coefficients give exact recurrences beyond the tabulated terms. For each row below, the pairs \((d,s)\) are listed in increasing width order. The published coefficients \(c_1,\ldots,c_d\), with zero at any omitted lag, satisfy \[a_w(n)=\sum_{j=1}^{d}c_j a_w(n-j)\qquad(n\ge s), \] where \(a_w(n)\) is the count for the specified rule and palette limit. The index \(s\) is the least start among equations with positive lag indices. The order \(d\) is minimal among eventual constant-coefficient recurrences over \(\mathbb Q\). Window rulePalette limitWidthsExact \((d,s)\) in width orderHardin's table and companion columnsAt least one43–5\((9,10),(26,28),(33,35)\)A204056, recurrence columns A204049–A204051At least one33–7\((5,6),(16,18),(17,19),(29,31),(26,28)\)A204153, recurrence columns A204146–A204150At least one23–9\((4,5),(10,12),(16,18),(28,30),(25,27),(45,49),(36,42)\)A203923, recurrence columns A203916–A203922Neither33–5\((4,5),(36,37),(64,65)\)A204782, recurrence columns A204775–A204777Neither23–6\((4,5),(19,20),(36,38),(55,57)\)A204398, columns 1–4, A204391–A204394Neither43–4\((8,9),(55,56)\)A204351, recurrence columns A204344–A204345 Computing the counts. Use zero-based columns and a labelled palette \(\{0,\ldots,q-1\}\). For the two most recent rows \(a,b\), keep \(b\) and the flags \[\ell_j=[a_{j-1}=b_j],\qquad r_j=[a_{j+1}=b_j],\qquad 1\le j\le w-2, \] where brackets give 1 for a true equality and 0 otherwise. For the disjunction rule, accept a new row \(c\) when, at every interior column \(j\), \[(\ell_j=1\ \land\ c_{j+1}=b_j)\ \lor\ (r_j=1\ \land\ c_{j-1}=b_j). \] The tests share the same row \(c\). Count each legal row once, including when both clauses hold. For the exclusion rule, forbid \(b_j\) at coordinate \(j+1\) if \(\ell_j=1\), and at coordinate \(j-1\) if \(r_j=1\). Take the union of the forbidden colours at each coordinate. The legal next rows are the Cartesian product of the remaining colour sets. In either rule, compute the successor flags from \((b,c)\). A zero flag pair prevents extension under the disjunction and imposes no restriction under exclusion. Every state contributes at termination, including a state with no legal successor. For each \(q\), identify last rows that differ only by a palette permutation, keeping their flags. For a representative \(b\) using \(k\) distinct colours, initialise each flag state with the number of rows \(a\) that give those flags, multiplied by \((q)_k=q(q-1)\cdots(q-k+1)\), the number of distinct relabellings of \(b\). The weight of an edge is the number of labelled rows \(c\) that take the representative to the specified successor state. If \(u_q\) is the resulting row vector of two-row counts, \(M_q\) the matrix of edge weights from current to successor state, and \(\mathbf1\) the column of ones, the labelled count is \(L_q(n,w)=u_qM_q^n\mathbf1\). The first-appearance count follows by averaging over palette permutations. In the formulas below, \(L_q\) is evaluated at the same \((n,w)\) and under the indicated window rule. Window ruleAt most two coloursAt most three coloursAt most four coloursAt least one\(L_2/2\)\((L_3+3L_1)/6\)\((L_4+6L_2+8L_1)/24\)Neither\(L_2/2\)\(L_3/6\)\((L_4+6L_2)/24\) For the four-colour palette, six transpositions fix two colours and eight three-cycles fix one. For the three-colour palette, three transpositions fix one. The exclusion rule rules out one-colour boards in the stated domain, so its one-colour terms vanish. The transfer also enumerates the binary exclusion columns of widths 7–9, for which the source gives table values without proposing recurrences, and applies at every width \(w\ge3\) for four-colour exclusion. For binary boards, the shared comparisons constrain the interior bits along paths of columns of the same parity. Before refinement by successor counts, the disjunction has 13 states at width three and \(1+8\cdot3^{w-2}\) for \(w\ge4\), counting all states with a zero flag pair as a single state with no successors. Exclusion has 16 states at width three and \(8\cdot4^{w-2}\) for \(w\ge4\). Using and checking the recurrences. To recover the full signed vector for any row of the first table, compute the counts from \(n=1\) through \(s+d-1\) by the transfer and solve the exact linear system \[\sum_{j=1}^{d}a_w(s+i-j)c_j=a_w(s+i),\qquad 0\le i<d. \] This system has a unique solution. A null vector would give a linear relation on \(d\) consecutive shifts that propagates under the order-\(d\) recurrence, yielding a smaller eventual order. Once the coefficients are known, counts from \(n=1\) through \(s-1\) suffice to generate all later terms. For the finite certificate, the palette matrices can be combined in a block diagonal matrix \(M\), with their integer orbit weights absorbed into the initial vector \(u\) and the common divisor \(D\in\{2,6,24\}\) applied at the end. States may be grouped by starting with one class and repeatedly splitting by the totals of outgoing edge weights into each current class until those totals agree within every class. Use the common totals as the new edge weights and sum the initial weights within classes. For \(P(T)=T^d-\sum_{j=1}^{d}c_jT^{d-j}\), the signed residual at \(n\ge d+1\) is \[a_w(n)-\sum_{j=1}^{d}c_ja_w(n-j)=\frac{uM^{n-d}P(M)\mathbf1}{D}. \] In all 24 cases a block of \(\dim M\) exact zeros from \(s\) certifies the entire tail by Cayley–Hamilton. When \(s>d+1\), the residual at \(s-1\) is nonzero. For example, the four-colour disjunction gives \(834893811\) at \(n=27\) for width four and \(32886827532288\) at \(n=34\) for width five. Binary exclusion gives \(-159408\) at \(n=37\) for width five and \(-1978368\) at \(n=56\) for width six. In every case the polynomial \(Q(x)=1-\sum_{j=1}^{d}c_jx^j\) is coprime to \(Q(x)\sum_{n\ge1}a_w(n)x^n\). The exact certificate checks coprimality modulo a prime that preserves the degree of \(Q\), so the reduced generating-function denominator has degree \(d\). Barker's four width-three functions are exact. Each expression below equals the formal power series \(\sum_{n\ge1}a_3(n)x^n\), so the coefficient of \(x^n\) counts boards of height \(n+2\). - With at most three colours and at least one monochromatic diagonal per window, \[\frac{x(689-232x+2295x^2-820x^3-1952x^4)}{(1-x)(1+4x^2)(1-5x-4x^2)}. \] Barker's generating function in A204146 - With at most two colours and at least one monochromatic diagonal per window, \[\frac{8x(14+7x+28x^2+16x^3)}{(1+2x^2)(1-3x-2x^2)}. \] Barker's generating function in A203916 - With at most three colours and neither diagonal monochromatic in any window, \[\frac{54x(48-32x-672x^2+441x^3)}{(1-22x+14x^2)(1-14x^2)}. \] Barker's generating function in A204775 - With at most two colours and neither diagonal monochromatic in any window, \[\frac{8x(18-9x-36x^2+16x^3)}{(1-5x+2x^2)(1-2x^2)}. \] Barker's generating function in A204391

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24798640
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Flag-state recurrence laws for three-cell diagonal constancy

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Flag-state recurrence laws for three-cell diagonal constancy

Zixuan He
preprint en

Abstract

To count rectangular colourings subject to a diagonal rule in every \(3\times3\) window, it is enough to retain the last row and two equality flags per interior column. This representation verifies all 24 signed recurrences proposed in six of R. H. Hardin's OEIS tables, gives their exact starting indices and minimum eventual orders, and confirms four width-three generating functions proposed by Barker. The boards have width \(w\ge3\) and height \(n+2\), with \(n\ge1\). Colours receive their labels in order of first appearance when the board is read row by row from left to right. The palette size is an upper limit. In the disjunction rule, at least one full diagonal of each window must have all three entries equal. Both diagonals may qualify, and the qualifying direction can vary between windows. In the exclusion rule, neither full diagonal may have all three entries equal. The exclusion is applied to each window, so its board count cannot be obtained by subtracting the disjunction count from the number of unrestricted boards. Hardin's companion columns ask whether the reported signed coefficients give exact recurrences beyond the tabulated terms. For each row below, the pairs \((d,s)\) are listed in increasing width order. The published coefficients \(c_1,\ldots,c_d\), with zero at any omitted lag, satisfy \[a_w(n)=\sum_{j=1}^{d}c_j a_w(n-j)\qquad(n\ge s), \] where \(a_w(n)\) is the count for the specified rule and palette limit. The index \(s\) is the least start among equations with positive lag indices. The order \(d\) is minimal among eventual constant-coefficient recurrences over \(\mathbb Q\). Window rulePalette limitWidthsExact \((d,s)\) in width orderHardin's table and companion columnsAt least one43–5\((9,10),(26,28),(33,35)\)A204056, recurrence columns A204049–A204051At least one33–7\((5,6),(16,18),(17,19),(29,31),(26,28)\)A204153, recurrence columns A204146–A204150At least one23–9\((4,5),(10,12),(16,18),(28,30),(25,27),(45,49),(36,42)\)A203923, recurrence columns A203916–A203922Neither33–5\((4,5),(36,37),(64,65)\)A204782, recurrence columns A204775–A204777Neither23–6\((4,5),(19,20),(36,38),(55,57)\)A204398, columns 1–4, A204391–A204394Neither43–4\((8,9),(55,56)\)A204351, recurrence columns A204344–A204345 Computing the counts. Use zero-based columns and a labelled palette \(\{0,\ldots,q-1\}\). For the two most recent rows \(a,b\), keep \(b\) and the flags \[\ell_j=[a_{j-1}=b_j],\qquad r_j=[a_{j+1}=b_j],\qquad 1\le j\le w-2, \] where brackets give 1 for a true equality and 0 otherwise. For the disjunction rule, accept a new row \(c\) when, at every interior column \(j\), \[(\ell_j=1\ \land\ c_{j+1}=b_j)\ \lor\ (r_j=1\ \land\ c_{j-1}=b_j). \] The tests share the same row \(c\). Count each legal row once, including when both clauses hold. For the exclusion rule, forbid \(b_j\) at coordinate \(j+1\) if \(\ell_j=1\), and at coordinate \(j-1\) if \(r_j=1\). Take the union of the forbidden colours at each coordinate. The legal next rows are the Cartesian product of the remaining colour sets. In either rule, compute the successor flags from \((b,c)\). A zero flag pair prevents extension under the disjunction and imposes no restriction under exclusion. Every state contributes at termination, including a state with no legal successor. For each \(q\), identify last rows that differ only by a palette permutation, keeping their flags. For a representative \(b\) using \(k\) distinct colours, initialise each flag state with the number of rows \(a\) that give those flags, multiplied by \((q)_k=q(q-1)\cdots(q-k+1)\), the number of distinct relabellings of \(b\). The weight of an edge is the number of labelled rows \(c\) that take the representative to the specified successor state. If \(u_q\) is the resulting row vector of two-row counts, \(M_q\) the matrix of edge weights from current to successor state, and \(\mathbf1\) the column of ones, the labelled count is \(L_q(n,w)=u_qM_q^n\mathbf1\). The first-appearance count follows by averaging over palette permutations. In the formulas below, \(L_q\) is evaluated at the same \((n,w)\) and under the indicated window rule. Window ruleAt most two coloursAt most three coloursAt most four coloursAt least one\(L_2/2\)\((L_3+3L_1)/6\)\((L_4+6L_2+8L_1)/24\)Neither\(L_2/2\)\(L_3/6\)\((L_4+6L_2)/24\) For the four-colour palette, six transpositions fix two colours and eight three-cycles fix one. For the three-colour palette, three transpositions fix one. The exclusion rule rules out one-colour boards in the stated domain, so its one-colour terms vanish. The transfer also enumerates the binary exclusion columns of widths 7–9, for which the source gives table values without proposing recurrences, and applies at every width \(w\ge3\) for four-colour exclusion. For binary boards, the shared comparisons constrain the interior bits along paths of columns of the same parity. Before refinement by successor counts, the disjunction has 13 states at width three and \(1+8\cdot3^{w-2}\) for \(w\ge4\), counting all states with a zero flag pair as a single state with no successors. Exclusion has 16 states at width three and \(8\cdot4^{w-2}\) for \(w\ge4\). Using and checking the recurrences. To recover the full signed vector for any row of the first table, compute the counts from \(n=1\) through \(s+d-1\) by the transfer and solve the exact linear system \[\sum_{j=1}^{d}a_w(s+i-j)c_j=a_w(s+i),\qquad 0\le i<d. \] This system has a unique solution. A null vector would give a linear relation on \(d\) consecutive shifts that propagates under the order-\(d\) recurrence, yielding a smaller eventual order. Once the coefficients are known, counts from \(n=1\) through \(s-1\) suffice to generate all later terms. For the finite certificate, the palette matrices can be combined in a block diagonal matrix \(M\), with their integer orbit weights absorbed into the initial vector \(u\) and the common divisor \(D\in\{2,6,24\}\) applied at the end. States may be grouped by starting with one class and repeatedly splitting by the totals of outgoing edge weights into each current class until those totals agree within every class. Use the common totals as the new edge weights and sum the initial weights within classes. For \(P(T)=T^d-\sum_{j=1}^{d}c_jT^{d-j}\), the signed residual at \(n\ge d+1\) is \[a_w(n)-\sum_{j=1}^{d}c_ja_w(n-j)=\frac{uM^{n-d}P(M)\mathbf1}{D}. \] In all 24 cases a block of \(\dim M\) exact zeros from \(s\) certifies the entire tail by Cayley–Hamilton. When \(s>d+1\), the residual at \(s-1\) is nonzero. For example, the four-colour disjunction gives \(834893811\) at \(n=27\) for width four and \(32886827532288\) at \(n=34\) for width five. Binary exclusion gives \(-159408\) at \(n=37\) for width five and \(-1978368\) at \(n=56\) for width six. In every case the polynomial \(Q(x)=1-\sum_{j=1}^{d}c_jx^j\) is coprime to \(Q(x)\sum_{n\ge1}a_w(n)x^n\). The exact certificate checks coprimality modulo a prime that preserves the degree of \(Q\), so the reduced generating-function denominator has degree \(d\). Barker's four width-three functions are exact. Each expression below equals the formal power series \(\sum_{n\ge1}a_3(n)x^n\), so the coefficient of \(x^n\) counts boards of height \(n+2\). - With at most three colours and at least one monochromatic diagonal per window, \[\frac{x(689-232x+2295x^2-820x^3-1952x^4)}{(1-x)(1+4x^2)(1-5x-4x^2)}. \] Barker's generating function in A204146 - With at most two colours and at least one monochromatic diagonal per window, \[\frac{8x(14+7x+28x^2+16x^3)}{(1+2x^2)(1-3x-2x^2)}. \] Barker's generating function in A203916 - With at most three colours and neither diagonal monochromatic in any window, \[\frac{54x(48-32x-672x^2+441x^3)}{(1-22x+14x^2)(1-14x^2)}. \] Barker's generating function in A204775 - With at most two colours and neither diagonal monochromatic in any window, \[\frac{8x(18-9x-36x^2+16x^3)}{(1-5x+2x^2)(1-2x^2)}. \] Barker's generating function in A204391

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon