We prove the empirical recurrence recorded by R. H. Hardin for OEIS A202883 and the empirical generating function contributed by Colin Barker. By reflecting the two columns and following the cell that still requires support from the row below, the board count reduces to five continuation counts. The reduced denominator has degree five, so the order remains minimal after dropping any finite prefix. Lean 4 verifies the recurrence, initial values and coefficient identities directly from board enumeration.
Fill two columns with zeros, ones and twos. Requiring each positive entry to touch an equally large or larger entry leaves just five counts to track as new rows are added.
- A202883.lean sha256 446718abdfbd…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
The paper
read it here or download it- paperauthor's PDF ↓TeX source
did not compile here
latexmk failed; see the log This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Debian) (preloaded format=pdflatex 2026.11.25) 2 DEC 2026 00:05 entering extended mode file:line:error style messages enabled. %&-line parsing enabled. **paper.tex (./paper.tex LaTeX2e <2022-11-01> patch level 1 L3 programming layer <2023-01-16> ! LaTeX Error: File `ctexart.cls' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: cls) Enter file name: ./paper.tex:3: Emergency stop. <read *> l.3 \usepackage [margin=25mm,top=23mm,bottom=23mm]{geometry}^^M Here is how much of TeX's memory you used: 24 strings out of 477975 479 string characters out of 5839280 1849330 words of memory out of 5000000 20260 multiletter control sequences out of 15000+600000 512287 words of font info for 32 fonts, out of 8000000 for 9000 59 hyphenation exceptions out of 8191 19i,0n,29p,113b,17s stack positions out of 10000i,1000n,20000p,200000b,200000s ./paper.tex:3: ==> Fatal error occurred, no output PDF file produced!The author's PDF is unaffected. Our builder runs TeX Live 2022 with no network; a newer package or a missing file is the usual cause.
This Chinese-language paper proves previously empirical formulas and their minimality for two-column ternary boards. The Lean certificate covers enumeration and the all-height recurrence and generating-function coefficients. Minimality follows from the written coprimality proof. The public manuscript credits OpenAI Codex.
问题和主要结果
设 \(a_n\) 为 \(n\) 行两列的合法填法数。邻格只取棋盘内与该格共边的格子,相等的数可以互相支持。行、列的位置有区别,镜像填法分别计数。约定空棋盘有一种填法,即 \(a_0=1\)。Hardin 于 2011 年建立了这条数列。文献 \[1\] 将递推式和 Barker 于 2018 年给出的生成函数均标为经验公式。
定理 1对一切整数 \(n\geq 5\),$$ a_n=6a_{n-1}+2a_{n-2}+46a_{n-3}+25a_{n-4}+36a_{n-5}. $$初值为 \((a_0,a_1,a_2,a_3,a_4)=(1,3,35,265,1849)\)。按文献 \[1\] 的首项编号,生成函数为$$ \sum_{n\geq1}a_n x^{n-1} =\frac{3+17x+49x^2+51x^3+36x^4} {1-6x-2x^2-46x^3-25x^4-36x^5}. $$
一个可以手算的例子
一行时,两个数必须相等,故 \(a_1=3\)。两行时,四个格子的邻接关系是一个四边形。按数字 \(2\) 的个数分类,可以直接数出 \(a_2\)。
| 数字 \(2\) 的个数 | 填法数 | 计数理由 |
|---|---|---|
| 0 | 10 | \(1\) 可占零格、相邻两格、三格或四格,共 \(1+4+4+1\) 种。 |
| 1 | 0 | 唯一的 \(2\) 严格大于每个邻格。 |
| 2 | 16 | 两个 \(2\) 占据一条边。其余两格各有两种填法,共 \(4\times 2^2\) 种。 |
| 3 | 8 | 先任选剩余的一格,再给它填 \(0\) 或 \(1\)。 |
| 4 | 1 | 全部填 \(2\)。 |
所以 \(a_2=10+16+8+1=35\)。对于任意行数,仍只需跟踪当前行里那个可能缺少支持的格子。
最后一行需要保留哪些信息
从上向下填。一行的两个数相等时,它们互相支持。两数不等时,较小数满足规则,较大数若未获上一行支持,就必须由下一行同列的数支持。更早的行一旦填妥,后面的选择不会改变它们的合法性。
用 \(R_{ab}(k)\) 表示边界行是 \((a,b)\)、这行已经满足规则时,再向下填恰好 \(k\) 行的合法续填数。记 \(E_j(k)=R_{jj}(k)\)。如果边界右格尚待支持,记边界 \((0,1)\) 的续填数为 \(U_1(k)\),边界 \((0,2)\) 或 \((1,2)\) 的续填数为 \(U_2(k)\)。后两种边界确实等价:下一行右格只能填 \(2\),它既支持上方的 \(2\),也足以支持本行左格。因此上方左格是 \(0\) 还是 \(1\) 不影响续填。待支持的格子在左时,可交换两列计数。
引理 1对任意 \(a,b\in\{0,1,2\}\) 以及 \(k\geq0\),$$ 2R_{ab}(k)=E_a(k)+E_b(k). $$证明 \(k=0\) 时三种已满足规则的边界各有一种空续填。设 \(k>0\)。将紧接边界的新行按其无序数对分类。如果新行两数相等,它已经满足规则,贡献与边界无关。 如果新行的两数为 \(s<t\),把 \((s,t)\) 和 \((t,s)\) 两种摆法配对。小数 \(s\) 已获支持,大数 \(t\) 是否已获支持只取决于它正上方的数。固定 \(s,t\) 后,设 \(h(c)\) 为 \(t\) 正上方填 \(c\) 时一种摆法的后续填法数。水平反射给出两种摆法之间的双射,故同一个 \(h\) 适用于左右两侧。混合边界的两种摆法共贡献 \(h(a)+h(b)\),常值边界 \((a,a)\)、\((b,b)\) 分别贡献 \(2h(a)\)、\(2h(b)\)。对所有无序数对求和即得式 \((2R_{ab}=E_a+E_b)\)。\(\square\)
逐行建立转移矩阵
下表列出再添一行后的续填数。右列的量均取在 \(k\),左列的量均取在 \(k+1\)。记 \(S=E_0+E_1+E_2\),即新行两数相等时三种选择的总贡献。
| 边界续填数 | 枚举下一行所得的和 |
|---|---|
| \(E_0(k+1)\) | \(S+2U_1+4U_2\) |
| \(E_1(k+1)\) | \(S+2R_{01}+4U_2\) |
| \(E_2(k+1)\) | \(S+2R_{01}+2R_{02}+2R_{12}\) |
| \(U_1(k+1)\) | \(E_1+E_2+R_{01}+3U_2\) |
| \(U_2(k+1)\) | \(E_2+R_{02}+R_{12}\) |
例如,待支持边界 \((0,1)\) 要求新行右格至少为 \(1\)。恰有六种新行:\(11,22,01\) 已满足规则,\(02,12,21\) 中的 \(2\) 均需再向下找支持,故给出表的第四行。对边界右格待支持的 \(2\),仅有 \(22,02,12\) 三种新行,给出第五行。前三行中,不等数对各有两个方向,是否待支持取决于较大数是否超过常值边界。
递推式及其最小阶数
置 \(v_k=(E_0(k),E_1(k),E_2(k),2U_1(k),2U_2(k))^{\mathsf T}\)。 将引理 1 代入表中,得到$$ v_{k+1}=Mv_k,\qquad M=\begin{pmatrix} 1&1&1&1&2\\2&2&1&0&2\\3&3&3&0&0\\1&3&2&0&3\\1&1&4&0&0 \end{pmatrix},\qquad v_0=\begin{pmatrix}1\\1\\1\\0\\0\end{pmatrix}. $$初值的两个零体现底边条件:没有下一行时,待支持的格子无法满足规则。在棋盘上方虚设一行已经满足规则的 \(00\),它不能给首行的任何正数提供支持,故 \(a_n=E_0(n)\),即 \(M^n v_0\) 的第一分量。
展开式 \(v_{k+1}=Mv_k\) 中的五阶行列式可得$$ \det(tI-M)=t^5-6t^4-2t^3-46t^2-25t-36. $$由凯莱–哈密顿定理,代入 \(M\) 后上式右端为零矩阵。右乘 \(M^{n-5}v_0\) 并取第一分量,即得五阶递推式。依次乘 \(M\) 得到最初五个第一分量 \(1,3,35,265,1849\)。令 \(A(x)=\sum_{n\geq0} a_n x^n\),将递推式按幂次求和给出$$ A(x)=\frac{P(x)}{Q(x)} =\frac{1-3x+15x^2+3x^3+26x^4} {1-6x-2x^2-46x^3-25x^4-36x^5}. $$将 \((A(x)-1)/x\) 通分化简即得正高度生成函数,定理 1 得证。\(\square\)
推论 2\(a_n\) 的有理常系数齐次线性递推的最小阶数为五,即使允许略去任意有限个首项也是如此。
证明 分子与分母在模 \(5\) 后都保持次数。在 \(\mathbb F_5[x]\) 中做带余除法,\(Q\) 除以 \(P\) 的余式为 \(-x-2\),\(P\) 除以 \(-x-2\) 的余式为 \(-1\)。故二者模 \(5\) 互素。由高斯引理及首项系数均不被 \(5\) 整除,二者在 \(\mathbb Q[x]\) 中也互素。若存在从某项起成立的 \(d\) 阶递推,就存在常数项为 \(1\)、次数至多为 \(d\) 的多项式 \(D\),使 \(D(x)A(x)\) 只有有限个非零系数。于是 \(Q\mid DP\),从而 \(Q\mid D\),故 \(d\geq\deg Q=5\)。\(\square\)
独立核对与资料来源
对高度一至六,逐一枚举所有填法并检查每格的共边邻格,依次得到 3、35、265、1849、13345、96941 种合法填法。此外,五阶递推式 算出的第 \(1\) 至 \(210\) 项与文献 \[2\] 逐项相符。全体 \(n\) 的结论来自式 \(v_{k+1}=Mv_k\)。
R. H. Hardin. OEIS A202883,2011。公式栏收录递推式及 Colin Barker 于 2018 年 6 月 2 日给出的生成函数。 <oeis.org/A202883>
R. H. Hardin. A202883 的数值表,\(1\leq n\leq210\)。\
<oeis.org/A202883/b202883.txt>
Prepared in an OpenAI Codex research session for qingzhumengxiao (GitHub handle).
Files
content-addressed: the hash is the address| paper.pdf | 177 kB | sha256 3554b9dc5ecc54ee… .ots |
| paper.tex | 8 kB | sha256 d83b7b6af2c41d14… .ots |
| A202883.lean | 9 kB | sha256 446718abdfbd73d4… read .ots |
| A202883-verification.txt | 420 B | sha256 538879bdcc524ee5… .ots |