Exact unequal-diagonal-sum array recurrences

When must two labelled arrays of different widths obey different counting recurrences, even though they use the same local rule? In Hardin's tables, the main diagonal and antidiagonal of every contiguous \(3\times3\) window must have unequal integer sums. The shared centre cancels, leaving a condition on the four corners. This splits the count into four independent grids and confirms all six proposed signed recurrences. Their least orders depend on both the width and the palette. For the palette \(\{0,1,2\}\), Hardin asked whether the two signed column formulas hold throughout their native ranges and how to count the whole rectangular table. Both formulas hold. Columns \(k=1,2\), of widths 3 and 4, have least orders 9 and 27 and start at \(n=10\) and \(n=28\), respectively. The same counting formula agrees with all 96 listed entries in column \(k=3\), of width 5. OEIS A257017, columns 1–3, A257014, column 1 signed formula, A257015, column 2 signed formula. For the palette \(\{0,1\}\), Hardin asked for the four empirical recurrences, Barker's two generating functions and an exact count for the whole table. All four recurrences hold. Columns \(k=1,2,3,4\), of widths 3, 4, 5 and 6, have least orders 4, 8, 30 and 27 and start at \(n=5,9,31,28\), respectively. Both of Barker's generating functions hold as formal power series. The orders in both tables are minimal even among constant-coefficient recurrences required to hold only eventually. Each of the six recurrence columns agrees with 210 listed entries. OEIS A258681, columns 1–4, A258674, column 1 recurrence and Barker series, A258675, column 2 recurrence and Barker series, A258676, column 3 recurrence, A258677, column 4 recurrence. In both tables the native height is \(h=n+2\), with \(n\ge1\), and the width is \(w=k+2\). The entries are labelled by their numerical values. In a window whose top and bottom rows are \(a\) and \(b\), equality of the diagonal sums is equivalent to \(a_{j+1}-a_{j-1}=b_{j+1}-b_{j-1}\), where \(j\) is the centre column. Grouping the cells by row and column parity and closing the gaps sends each original window to a neighbouring \(2\times2\) square in exactly one grid. Within that grid, successive rows must differ in every signed horizontal difference. Let \(q\in\{2,3\}\) be the palette size, with entries \(0,\ldots,q-1\). Write \(C_q(r,s)\) for the count on a parity grid with \(r\) rows and \(s\) columns, taking the count of an empty grid to be 1. For any positive height and width the full count is \[T_q(h,w)=\prod_{r\in(\lfloor h/2\rfloor,\lceil h/2\rceil)}\prod_{s\in(\lfloor w/2\rfloor,\lceil w/2\rceil)} C_q(r,s). \] Each pair contributes both entries, including when they coincide. To compute \(C_q(r,s)\) for \(r,s\ge1\), use the signed row profile \(d=(d_1,\ldots,d_{s-1})\), where \(d_i\) is the entry in column \(i+1\) minus the entry in column \(i\). Put \(p_0=0\) and \(p_i=\sum_{j=1}^i d_j\). The number of rows with that profile is \[f_{q,s}(d)=\max\bigl(0,q-\max_{0\le i<s}p_i+\min_{0\le i<s}p_i\bigr). \] Keep the integer profiles of positive multiplicity. Initialise their masses to \(f_{q,s}(d)\). In each of the next \(r-1\) steps, send the mass at \(d\) to each profile \(e\) with \(d_i\ne e_i\) for every \(i\), multiplying the contribution by \(f_{q,s}(e)\). Sum the final masses. This gives the entire count, including \(C_q(r,1)=q^r\). The recurrence columns need only small matrices. In the formulas below, \(u\) is the initial row vector, \(M\) gives the number of permissible next rows in each destination class per current row, and \(\mathbf1\) is a column of ones. For \(r\ge1\), \(C_q(r,s)=uM^{r-1}\mathbf1\) for the following choices. At ternary width \(s=2\), class the rows by absolute difference in the order \(0,1,2\). \[u=(3,4,2),\qquad M=\begin{pmatrix}0&4&2\\3&2&2\\3&4&1\end{pmatrix}. \] At binary widths \(s=2,3\), class the rows by the number of nonzero adjacent differences in increasing order. The two choices are \[u_2=(2,2),\quad M_2=\begin{pmatrix}0&2\\2&1\end{pmatrix},\qquad u_3=(2,4,2),\quad M_3=\begin{pmatrix}0&0&2\\0&2&1\\2&2&1\end{pmatrix}. \] For a fixed column put \(a_n=T_q(n+2,k+2)\) for \(n\ge1\) and use its order \(d\) above. An exact construction of the signed coefficients is to compute \(a_1,\ldots,a_{2d}\) and solve the square system \[a_{d+i}=\sum_{j=1}^{d}c_j a_{d+i-j},\qquad i=1,\ldots,d. \] The solution is unique and gives the native signed vector, including zeros at omitted lags. With the first \(d\) counts as seeds, \(a_n=\sum_{j=1}^{d}c_j a_{n-j}\) generates every subsequent count. The stated starts are the first indices at which all the required lags have positive native indices. With \(x\) marking the native height index \(n\), the two binary series verified against Barker's formulas have the following equivalent rational forms, evaluated from the binary transfer. For \(k=1\), \[\sum_{n\ge1}T_2(n+2,3)x^n=\frac{320x+960x^2+5120x^3+16384x^4}{(1-2x-16x^2)(1+16x^2)}. \] For \(k=2\), \[\sum_{n\ge1}T_2(n+2,4)x^n=\frac{1600x-4400x^2+35200x^3-79424x^4-534528x^5+1363968x^6-7077888x^7+16777216x^8}{(1-9x+16x^2)(1-16x^2)(1+36x^2+256x^4)}. \]

Authors

Institutions

Publication Details

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

Exact unequal-diagonal-sum array recurrences

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

Exact unequal-diagonal-sum array recurrences

Zixuan He
preprint en

Abstract

When must two labelled arrays of different widths obey different counting recurrences, even though they use the same local rule? In Hardin's tables, the main diagonal and antidiagonal of every contiguous \(3\times3\) window must have unequal integer sums. The shared centre cancels, leaving a condition on the four corners. This splits the count into four independent grids and confirms all six proposed signed recurrences. Their least orders depend on both the width and the palette. For the palette \(\{0,1,2\}\), Hardin asked whether the two signed column formulas hold throughout their native ranges and how to count the whole rectangular table. Both formulas hold. Columns \(k=1,2\), of widths 3 and 4, have least orders 9 and 27 and start at \(n=10\) and \(n=28\), respectively. The same counting formula agrees with all 96 listed entries in column \(k=3\), of width 5. OEIS A257017, columns 1–3, A257014, column 1 signed formula, A257015, column 2 signed formula. For the palette \(\{0,1\}\), Hardin asked for the four empirical recurrences, Barker's two generating functions and an exact count for the whole table. All four recurrences hold. Columns \(k=1,2,3,4\), of widths 3, 4, 5 and 6, have least orders 4, 8, 30 and 27 and start at \(n=5,9,31,28\), respectively. Both of Barker's generating functions hold as formal power series. The orders in both tables are minimal even among constant-coefficient recurrences required to hold only eventually. Each of the six recurrence columns agrees with 210 listed entries. OEIS A258681, columns 1–4, A258674, column 1 recurrence and Barker series, A258675, column 2 recurrence and Barker series, A258676, column 3 recurrence, A258677, column 4 recurrence. In both tables the native height is \(h=n+2\), with \(n\ge1\), and the width is \(w=k+2\). The entries are labelled by their numerical values. In a window whose top and bottom rows are \(a\) and \(b\), equality of the diagonal sums is equivalent to \(a_{j+1}-a_{j-1}=b_{j+1}-b_{j-1}\), where \(j\) is the centre column. Grouping the cells by row and column parity and closing the gaps sends each original window to a neighbouring \(2\times2\) square in exactly one grid. Within that grid, successive rows must differ in every signed horizontal difference. Let \(q\in\{2,3\}\) be the palette size, with entries \(0,\ldots,q-1\). Write \(C_q(r,s)\) for the count on a parity grid with \(r\) rows and \(s\) columns, taking the count of an empty grid to be 1. For any positive height and width the full count is \[T_q(h,w)=\prod_{r\in(\lfloor h/2\rfloor,\lceil h/2\rceil)}\prod_{s\in(\lfloor w/2\rfloor,\lceil w/2\rceil)} C_q(r,s). \] Each pair contributes both entries, including when they coincide. To compute \(C_q(r,s)\) for \(r,s\ge1\), use the signed row profile \(d=(d_1,\ldots,d_{s-1})\), where \(d_i\) is the entry in column \(i+1\) minus the entry in column \(i\). Put \(p_0=0\) and \(p_i=\sum_{j=1}^i d_j\). The number of rows with that profile is \[f_{q,s}(d)=\max\bigl(0,q-\max_{0\le i<s}p_i+\min_{0\le i<s}p_i\bigr). \] Keep the integer profiles of positive multiplicity. Initialise their masses to \(f_{q,s}(d)\). In each of the next \(r-1\) steps, send the mass at \(d\) to each profile \(e\) with \(d_i\ne e_i\) for every \(i\), multiplying the contribution by \(f_{q,s}(e)\). Sum the final masses. This gives the entire count, including \(C_q(r,1)=q^r\). The recurrence columns need only small matrices. In the formulas below, \(u\) is the initial row vector, \(M\) gives the number of permissible next rows in each destination class per current row, and \(\mathbf1\) is a column of ones. For \(r\ge1\), \(C_q(r,s)=uM^{r-1}\mathbf1\) for the following choices. At ternary width \(s=2\), class the rows by absolute difference in the order \(0,1,2\). \[u=(3,4,2),\qquad M=\begin{pmatrix}0&4&2\\3&2&2\\3&4&1\end{pmatrix}. \] At binary widths \(s=2,3\), class the rows by the number of nonzero adjacent differences in increasing order. The two choices are \[u_2=(2,2),\quad M_2=\begin{pmatrix}0&2\\2&1\end{pmatrix},\qquad u_3=(2,4,2),\quad M_3=\begin{pmatrix}0&0&2\\0&2&1\\2&2&1\end{pmatrix}. \] For a fixed column put \(a_n=T_q(n+2,k+2)\) for \(n\ge1\) and use its order \(d\) above. An exact construction of the signed coefficients is to compute \(a_1,\ldots,a_{2d}\) and solve the square system \[a_{d+i}=\sum_{j=1}^{d}c_j a_{d+i-j},\qquad i=1,\ldots,d. \] The solution is unique and gives the native signed vector, including zeros at omitted lags. With the first \(d\) counts as seeds, \(a_n=\sum_{j=1}^{d}c_j a_{n-j}\) generates every subsequent count. The stated starts are the first indices at which all the required lags have positive native indices. With \(x\) marking the native height index \(n\), the two binary series verified against Barker's formulas have the following equivalent rational forms, evaluated from the binary transfer. For \(k=1\), \[\sum_{n\ge1}T_2(n+2,3)x^n=\frac{320x+960x^2+5120x^3+16384x^4}{(1-2x-16x^2)(1+16x^2)}. \] For \(k=2\), \[\sum_{n\ge1}T_2(n+2,4)x^n=\frac{1600x-4400x^2+35200x^3-79424x^4-534528x^5+1363968x^6-7077888x^7+16777216x^8}{(1-9x+16x^2)(1-16x^2)(1+36x^2+256x^4)}. \]

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