Parity-Splitting Duality, Exact Mod-8 Tetrachotomy, Universal Kummer Unboundedness, and Complete Cartier-Automaton Classification of p^2-Avoiding Generalized Motzkin Numbers for p in {3, 5, 7}
Admitted after checks by named AI models and editor approval. Not peer reviewed. Screening record
For integers $b, c \in \Z$, the generalized Motzkin numbers $M_n(b, c) = \sum_{k=0}^{\lfloor n/2 \rfloor} \binom{n}{2k} C_k b^{n-2k} c^k$ (where $C_k = \frac{1}{k+1}\binom{2k}{k}$ is the $k$-th Catalan number) unify the classical Motzkin numbers $M_n(1,1)$, shifted Catalan numbers $M_n(2,1) = C_{n+1}$, and weighted Motzkin lattice paths. Prior work established that the classical Motzkin sequence satisfies $8 \nmid M_n(1,1)$ (Eu--Liu--Yeh, 2008) and $25 \nmid M_n(1,1)$ (Rowland--Yassawi, 2015). Here we determine the prime-power avoidance loci across the entire two-parameter plane $(b, c) \in \Z^2$ for $p = 2$ (modulo $4$ and $8$) and $p \in \{3, 5, 7\}$ (modulo $p^2$): \begin{enumerate} \item Projective collapse and Kummer unboundedness (Theorem~\ref{thm:kummer}): for every prime $p \ge 2$, $p \mid c$ with $p \nmid b$ forces $v_p(M_n(b,c)) = 0$ identically; $p \nmid b$ collapses $v_p(M_n(b,c))$ to the single projective invariant $\tilde{c} = c b^{-2} \in \Z_p$; and $p \mid b$ forces $v_p(M_{2(p^r - 2)}(b, c)) \ge r - 1$ for all $r \ge 1$ (and $\ge r$ for $p \ge 5$), proving $\sup_n v_p(M_n(b, c)) = +\infty$ via a unified zero-borrow Kummer argument. \item Master mod-$8$ equation, exact $c \mapsto 3c$ duality, and complete classification of $4$- and $8$-avoidance (Theorem~\ref{thm:mod8}, Corollary~\ref{cor:mod8_iff}): splitting $M(x) = A(x^2) + x B(x^2)$ for odd $b, c$ yields $A^{(c)}(t) \equiv \frac{1+t+5t^2+5t^3}{1-t^4} + c t A^{(c)}(t)^2 \pmod 8$, the even/odd duality $B^{(c)}(t) \equiv A^{(3c)}(t) + 4\bigl(A^{(c)}(t) - (1-t^2)^{-1}\bigr) \pmod 8$, and the shift $A^{(c+4)}(t) \equiv A^{(c)}(t) + 4\bigl(A^{(c)}(t) - (1-t)^{-1}\bigr) \pmod 8$. Combined with a self-contained mod-$4$ pair-count proof of $v_2(M_n(1,1)) \in \{1, \ge 2\}$ and the classical non-divisibility $8 \nmid M_n(1,1)$, this proves the exact mod-$8$ tetrachotomy across $c \in \{1,3,5,7\} \pmod 8$---including an exact $1 \leftrightarrow 2$ valuation involution between $c \equiv 1$ and $c \equiv 3 \pmod 8$---and establishes that $8 \nmid M_n(b,c)$ for all $n \ge 0$ iff $b$ is odd and $c \not\equiv 5, 7 \pmod 8$. \item Algebraic Cartier-operator closure over $\Z/p^2\Z[[x]]$ and computer-assisted classification of $p^2$-avoidance for $p \in \{3, 5, 7\$} (Theorem~\ref{thm:cartier}): using an explicit finite-degree module closure for $Q(x)^{-1/2}$ modulo $p^2$, together with an independently audited exact integer BFS over all $p(p-1)$ unit projective classes $\tilde{c} = c b^{-2} \in (\Z/p^2\Z)^\times$, we show that $p^2 \nmid M_n(b,c)$ for all $n \ge 0$ holds among unit classes for $0$ classes at $p = 3$, exactly $3$ classes at $p = 5$ ($\tilde{c} \in \{1, 18, 23\} \pmod{25}$, identifying two new $25$-avoiding infinite families beyond $(1,1)$), and exactly $4$ classes at $p = 7$ ($\tilde{c} \in \{5, 12, 19, 25\} \pmod{49}$). Every non-avoiding unit class is refuted elementarily by an explicit minimal witness $n \le 14, 224, 832$. \item Verification scope (Section~\ref{sec:verify}): the avoidance certificates are verified by an independent inductive-invariant auditor and extended recurrence cross-checks ($0 \le n \le 250$) in a pure-stdlib zero-float Python suite ($4/4$ tests under pytest -W error); selected arithmetic sub-lemmas, mod-$8$ algebraic identities, the mod-$2$ parity recurrence, Cartier degree bounds, and key finite witnesses are verified in standalone Lean~4.36.0 ($11$ theorems, zero sorry). \end{enumerate}
Structure & key results
Manuscript structure
- Introduction
- Projective Collapse, Zero-Borrow Kummer Unboundedness, and Trinomial Bridge
- Parity-Splitting Duality and Complete Mod-8 Classification
- Cartier-Operator Closure over Z/p²ZZ/p2Z and Classification of p²p2-Avoiding Families
- Higher 2^k2k-Divisibility Cascade, Computational Tables, and Formal Verification
- Concluding Remarks and Open Problems
Selected results from the manuscript source
Theorem 1 — Universal prime-p structure, Kummer unboundedness, and trinomial bridge
Let p ≥ 2 be any prime and let b, c ∈ Z. ((a)) Trivial zero-valuation regime: If p | c and p nmid b, then M_n(b, c) ≡ bⁿ (mod p) for all n ≥ 0, so v_p(M_n(b, c)) = 0 identically. ((b)) Projective invariance: If p nmid b, then for every n ≥ 0, b⁻ⁿ M_n(b, c) = ∑_(k=0)^(⌊ n/2 ⌋) C(n,2k) C_k c^k =: M_n(c) ∈ Z_p, c:= c b⁻² ∈ Z_p. Hence v_p(M_n(b, c)) depends on (b, c) solely through the single p-adic invariant c = c b⁻² ∈ Z_p. In particular, for every k ≥ 1, the residue of b⁻ⁿ M_n(b, c) (mod p^k) depends only on c mod p^k.
Theorem 2 — Master mod-8 equation, c ↦ 3c duality, and complete classification of 8 nmid M_n(b, c)
Let c be any odd integer. ((a)) Master mod-8 parity-splitting equations: In Z/8Z[[t]], A^(c)(t) & ≡ (1 + t + 5t² + 5t³)/(1 - t⁴) + c t A^(c)(t)² (mod 8), B^(c)(t) & ≡ 3 A^(c)(t) - 2/(1 - t) + 4 t² A^(c)(t)³ (mod 8). ((b)) Exact c ↦ 3c even/odd duality: In Z/8Z[[t]], B^(c)(t) ≡ A^(3c)(t) + 4(A^(c)(t) - 1/(1 - t²)) (mod 8). ((c)) Exact c ↦ c + 4 parity-flip shift: In Z/8Z[[t]], A^(c+4)(t) & ≡ A^(c)(t) + 4(A^(c)(t) - 1/(1 - t)) (mod 8), B^(c+4)(t) & ≡ B^(c)(t) + 4(B^(c)(t) - 1/(1 - t)) (mod 8).
Corollary 3 — Complete if-and-only-if classification of 4- and 8-avoidance
For integers b, c ∈ Z: ((a)) 4 nmid M_n(b, c) for all n ≥ 0 if and only if b is odd and c is even; ((b)) 8 nmid M_n(b, c) for all n ≥ 0 if and only if b is odd and c not ≡ 5, 7 (mod 8).
Theorem 4 — Explicit Z/p²Z Cartier module closure and complete p²-avoidance classification for p ∈ 3, 5, 7
((a)) Finite-state Cartier module closure: Let p ≥ 3 be an odd prime, c ∈ (Z/p²Z)^×, Q(x) = 1 - 2x + (1 - 4c)x², and define the polynomial R(x):= (Q(x)^p - Q(x^p))/p ∈ F_p[x] (deg R ≤ 2p). Let M_p be the finite set of power series in (Z/p²Z)[[x]] of the form F_(A,B)(x):= A(x) Q(x)^(-1/2) + p B(x) Q(x)^(-3/2) (mod p²), with A ∈ (Z/p²Z)[x] of degree ≤ 2 and B ∈ F_p[x] of degree ≤ 4. Then Q(x)^(1/2) = F_(Q, 0)(x) ∈ M_p, M_p is closed under every Cartier operator Λ_r (0 ≤ r < p) via the explicit transition map Λ_r(F_(A, B)) = F_(A', B'), begincases A'(x):= Λ_r(A(x)…
Key contributions noted in exact-version screening
- Exact c -> 3c even/odd duality B^(c)(t) == A^(3c)(t) + 4(A^(c)(t) - (1-t^2)^(-1)) (mod 8) and complete mod-8 tetrachotomy across all odd (b, c) in Z^2.
- Universal zero-borrow Kummer unboundedness bound v_p(M_{2(p^r-2)}(b,c)) >= r - 1 (and >= r for p >= 5) valid for all primes p >= 2 and all c in Z whenever p | b.
- Discovery and certification of the two new 25-avoiding classes c_tilde in {18, 23} (mod 25) beyond (1,1) and the four 49-avoiding classes c_tilde in {5, 12, 19, 25} (mod 49), together with the structural observation that all project onto the minimal mod-p zero-density locus.
Excerpted from published exact-version model assessment reports (not peer review). Full reports below →
Preview PDF on this page v1
Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.
Full manuscript text in HTML (5,909 words — searchable plain text)
Parity-Splitting Duality, Exact Mod-8 Tetrachotomy, Universal Kummer Unboundedness, and Complete Cartier-Automaton Classification of p2-Avoiding Generalized Motzkin Numbers for p ∈{3, 5, 7} Lluis Eriksson Independent Researcher, Östersund, Sweden editor@airr.science December 5, 2026 AIRR.SCIENCE · ARR-2026-50P2CD4BBB8BHB29 v1 [math.NT] 2026-12-05 Abstract For integers b, c ∈Z, the generalized Motzkin numbers Mn(b, c) = P⌊n/2⌋ k=0
n 2k
Ckbn−2kck (where Ck = 1 k+1
2k k
is the k-th Catalan number) unify the classical Motzkin numbers Mn(1, 1), shifted Catalan numbers Mn(2, 1) = Cn+1, and weighted Motzkin lattice paths. Prior work established that the classical Motzkin sequence satisfies 8 ∤Mn(1, 1) (Eu–Liu– Yeh, 2008) and 25 ∤Mn(1, 1) (Rowland–Yassawi, 2015). Here we determine the prime-power avoidance loci across the entire two-parameter plane (b, c) ∈Z2 for p = 2 (modulo 4 and 8) and p ∈{3, 5, 7} (modulo p2): 1. Projective collapse and Kummer unboundedness (Theorem 2.1): for every prime p ≥2, p | c with p ∤b forces vp(Mn(b, c)) = 0 identically; p ∤b collapses vp(Mn(b, c)) to the single projective invariant ˜c = cb−2 ∈Zp; and p | b forces vp(M2(pr−2)(b, c)) ≥r −1 for all r ≥1 (and ≥r for p ≥5), proving supn vp(Mn(b, c)) = +∞via a unified zero-borrow Kummer argument. 2. Master mod-8 equation, exact c 7→3c duality, and complete classification of 4- and 8-avoidance (Theorem 3.1, Corollary 3.2): splitting M(x) = A(x2) + xB(x2) for odd b, c yields A(c)(t) ≡1+t+5t2+5t3 1−t4 + ctA(c)(t)2 (mod 8), the even/odd duality B(c)(t) ≡ A(3c)(t)+4
A(c)(t)−(1−t2)−1
(mod 8), and the shift A(c+4)(t) ≡A(c)(t)+4
A(c)(t)− (1−t)−1
(mod 8). Combined with a self-contained mod-4 pair-count proof of v2(Mn(1, 1)) ∈ {1, ≥2} and the classical non-divisibility 8 ∤Mn(1, 1), this proves the exact mod-8 tetrachotomy across c ∈{1, 3, 5, 7} (mod 8)—including an exact 1 ↔2 valuation involution between c ≡1 and c ≡3 (mod 8)—and establishes that 8 ∤Mn(b, c) for all n ≥0 iffb is odd and c̸ ≡5, 7 (mod 8). 3. Algebraic Cartier-operator closure over Z/p2Z[[x]] and computer-assisted classification of p2-avoidance for p ∈{3, 5, 7} (Theorem 4.1): using an explicit finite-degree module closure for Q(x)−1/2 modulo p2, together with an independently audited exact integer BFS over all p(p −1) unit projective classes ˜c = cb−2 ∈(Z/p2Z)×, we show that p2 ∤Mn(b, c) for all n ≥0 holds among unit classes for 0 classes at p = 3, exactly 3 classes at p = 5 (˜c ∈{1, 18, 23} (mod 25), identifying two new 25-avoiding infinite families beyond (1, 1)), and exactly 4 classes at p = 7 (˜c ∈{5, 12, 19, 25} (mod 49)). Every non-avoiding unit class is refuted elementarily by an explicit minimal witness n ≤14, 224, 832. 4. Verification scope (Section 5): the avoidance certificates are verified by an independent inductive-invariant auditor and extended recurrence cross-checks (0 ≤n ≤250) in a 1
pure-stdlib zero-float Python suite (4/4 tests under pytest -W error); selected arithmetic sub-lemmas, mod-8 algebraic identities, the mod-2 parity recurrence, Cartier degree bounds, and key finite witnesses are verified in standalone Lean 4.36.0 (11 theorems, zero sorry). 1 Introduction Given integer step weights b, c ∈Z, the generalized Motzkin numbers Mn(b, c) are defined for n ≥0 by the binomial-Catalan transform Mn(b, c) := ⌊n/2⌋ X k=0
n 2k ! Ck bn−2kck, Ck := 1 k + 1
2k k ! . (1) Combinatorially, when b, c ≥0, Mn(b, c) counts lattice paths from (0, 0) to (n, 0) staying weakly above the x-axis using up steps (1, 1) of weight 1, horizontal steps (1, 0) of weight b, and down steps (1, −1) of weight c. Their ordinary generating function M(x) = P n≥0 Mn(b, c)xn ∈Z[[x]] satisfies the quadratic functional equation cx2M(x)2 −(1 −bx)M(x) + 1 = 0, M(x) = 1 −bx − p (1 −bx)2 −4cx2 2cx2 , (2) and the coefficients satisfy the three-term holonomic recurrence (n + 2)Mn(b, c) = b(2n + 1)Mn−1(b, c) + (4c −b2)(n −1)Mn−2(b, c) (n ≥2), (3) with M0(b, c) = 1 and M1(b, c) = b. Special cases include the classical Motzkin numbers Mn(1, 1), shifted Catalan numbers Mn(2, 1) = Cn+1, and scaled Schröder-type sequences such as Mn(3, 2) and Mn(2, 2). The arithmetic of classical Motzkin numbers Mn = Mn(1, 1) modulo primes and prime powers has attracted intense study. Deutsch and Sagan [2] characterized Mn mod 2 and Mn mod 3 via base-p expansions and conjectured that no Motzkin number is divisible by 8. Eu, Liu, and Yeh [3] resolved this conjecture by proving 8 ∤Mn(1, 1) for all n ≥0, followed by shorter structural classifications of Mn(1, 1) mod 8 by Wang and Xin [9] and modulo arbitrary powers of 2 by Krattenthaler and Müller [5]. Using Christol’s theorem [1] and algebraic Cartier operators on diagonals of rational functions, Rowland and Yassawi [7] proved that 25 ∤Mn(1, 1) for all n ≥0 (and conjectured no higher prime-power exclusions for Mn(1, 1) beyond 8 and 25). Sun [8] studied supercongruences and divisibility properties of generalized Motzkin numbers and generalized central trinomial coefficients Tn(b, c) = [x0](x + b + cx−1)n, and Kohen [4] recently analyzed the modulo-p zero densities of generalized Motzkin numbers via reduction to Tn(b, c) mod p. While these methods apply broadly to algebraic sequences and diagonals of rational functions, a systematic prime-power avoidance classification across the full two-parameter plane (b, c) ∈Z2 of generalized Motzkin numbers raises three natural questions: • Which pairs (b, c) ∈Z2 satisfy 8 ∤Mn(b, c) for all n ≥0, and what happens to v2(Mn(b, c)) on the complementary set? • For odd primes p, which pairs (b, c) ∈Z2 satisfy p2 ∤Mn(b, c) for all n ≥0? Is Rowland– Yassawi’s 25 ∤Mn(1, 1) an isolated coincidence, or are there further nontrivial 25-avoiding and 49-avoiding infinite families? • When p | b, can vp(Mn(b, c)) ever remain bounded? We resolve all three questions completely for p = 2 (modulo 8) and p ∈{3, 5, 7} (modulo p2), and establish universal structural theorems valid for every prime p ≥2. 2
2 Projective Collapse, Zero-Borrow Kummer Unboundedness, and Trinomial Bridge Throughout, vp(m) denotes the p-adic valuation of m ∈Z \ {0} (with vp(0) = +∞), and Tn(b, c) := [x0](x + b + cx−1)n denotes the n-th generalized central trinomial coefficient, whose generating function is T(x) = P n≥0 Tn(b, c)xn =
(1 −bx)2 −4cx2 −1/2. Theorem 2.1 (Universal prime-p structure, Kummer unboundedness, and trinomial bridge). Let p ≥2 be any prime and let b, c ∈Z. (a) Trivial zero-valuation regime: If p | c and p ∤b, then Mn(b, c) ≡bn (mod p) for all n ≥0, so vp(Mn(b, c)) = 0 identically. (b) Projective invariance: If p ∤b, then for every n ≥0, b−nMn(b, c) = ⌊n/2⌋ X k=0
n 2k ! Ck ˜ck =: ˜ Mn(˜c) ∈Zp, ˜c := cb−2 ∈Zp. Hence vp(Mn(b, c)) depends on (b, c) solely through the single p-adic invariant ˜c = cb−2 ∈ Zp. In particular, for every k ≥1, the residue of b−nMn(b, c) (mod pk) depends only on ˜c mod pk. (c) Universal zero-borrow Kummer unboundedness: If p | b, then for every c ∈Z and every integer r ≥1, vp
M2(pr−2)(b, c)
≥r −1 (and ≥r whenever p ≥5). (4) In particular, supn≥0 vp(Mn(b, c)) = +∞whenever p | b. (d) Central-trinomial bridge: For all (b, c) ∈Z2 and all n ≥0, 2c(n + 2)Mn(b, c) = b Tn+1(b, c) + (4c −b2) Tn(b, c). (5) Proof. Parts (a) and (b) are immediate from (1): when p | c, every summand with k ≥1 vanishes modulo p, leaving bn; when p ∤b, b is a unit in Z× p and factoring out bn replaces bn−2kck by (cb−2)k = ˜ck. For (c), set m := pr −2 (r ≥1). For r = 1 and p = 2, m = 0 gives v2(M0) = 0 ≥0. Assume now m ≥1 (or r ≥1, p ≥3). In (1) at n = 2m, M2m(b, c) = m X k=0
2m 2k ! Ck b2(m−k)ck. We lower-bound the p-adic valuation of every summand 0 ≤k ≤m. Set d := m −k ∈ {0, 1, . . . , pr −2}. Because p | b, the factor b2d contributes at least 2d to the p-adic valuation. If d + 1 = pr −1 (i.e., k = 0), then 2d = 2(pr −2) ≥r for all pr ≥3 (and 2d = 0 = r −1 when p = 2, r = 1). Otherwise 1 ≤d + 1 < pr, and there is a unique integer ℓ∈{1, . . . , r} such that pℓ−1 ≤d + 1 < pℓ. Write pr −1 = Pr−1 j=0(p −1)pj and d + 1 = Pℓ−1 j=0 ajpj (0 ≤aj ≤p −1). Because every base-p digit of pr −1 is p −1, subtracting d + 1 from pr −1 incurs zero borrows, so the integer k = (pr −1)−(d+1) has all top r−ℓbase-p digits (at positions j = ℓ, ℓ+1, . . . , r−1) identically equal to p−1. Since 2(p−1) ≥p for every prime p ≥2, adding k +k in base p generates a carry 3
at every position j ∈{ℓ, . . . , r −1}; by Kummer’s theorem [6], vp
2k k
≥r −ℓ. Meanwhile, k + 1 = pr −(d + 1) with 1 ≤d + 1 < pℓ≤pr satisfies vp(k + 1) = vp(d + 1) ≤ℓ−1. Hence vp(Ck) = vp
2k k !! −vp(k + 1) ≥(r −ℓ) −(ℓ−1) = r + 1 −2ℓ. Adding the contribution 2d from b2d and using d + 1 ≥pℓ−1 ≥ℓ(since pℓ−1 ≥ℓfor all p ≥2, ℓ≥1; Lean 4: pow_ge_succ and zero_borrow_kummer_bound), we obtain vp
2m 2k ! Ckb2dck ! ≥2d + r + 1 −2ℓ≥2(ℓ−1) + r + 1 −2ℓ= r −1. When p ≥5, if d = 0 then k = pr −2 has units digit p −2 ≥(p + 1)/2, contributing one additional carry at j = 0 so vp(Ck) ≥r; if d ≥1 and ℓ= 1 then 2d + r −1 ≥r + 1; and if ℓ≥2 then d ≥pℓ−1 −1 ≥5ℓ−1 −1 ≥2ℓfor all ℓ≥2, giving 2d + r + 1 −2ℓ≥r + 1. Thus vp(M2(pr−2)(b, c)) ≥r for all p ≥5. For (d), multiply (2) by 2cx2 and rewrite p Q(x) = Q(x)T(x) where Q(x) = 1 −2bx + (b2 − 4c)x2: 2cx2M(x) = 1 −bx −
1 −2bx + (b2 −4c)x2 T(x). Extracting [xn+2] for any n ≥0 gives 2cMn(b, c) = −Tn+2(b, c) + 2bTn+1(b, c) −(b2 −4c)Tn(b, c). Substituting the standard three-term trinomial recurrence (n+2)Tn+2(b, c) = b(2n+3)Tn+1(b, c)+ (4c −b2)(n + 1)Tn(b, c) yields 2c(n + 2)Mn(b, c) =
2b(n + 2) −b(2n + 3)
Tn+1(b, c) + (4c −b2)
(n + 2) −(n + 1)
Tn(b, c), which simplifies directly to (5). Remark 2.2. Bound (4) is exact: at (b, c) = (2, 1) (shifted Catalan Cn+1) and (3, 1), vp(M2(pr−2)(p, 1)) = r −1 for all tested r ≥1; at (5, 1) and (7, 1), vp(M2(pr−2)(p, 1)) = r exactly (Section 5). 3 Parity-Splitting Duality and Complete Mod-8 Classification We now determine v2(Mn(b, c)) modulo 8 across all (b, c) ∈Z2. By Theorem 2.1(a)–(c), the only remaining case is b odd and c odd. Since every odd b satisfies b2 ≡1 (mod 8) (odd_sq_ mod8 in Lean 4), Theorem 2.1(b) yields ˜c = cb−2 ≡c (mod 8), so v2(Mn(b, c)) mod 8 (i.e., v2 up to ≥3) depends solely on c mod 8, and we may normalize to b = 1 and write M(c) n := Mn(1, c). Split the generating function M(c)(x) = P n≥0 M(c) n xn into its even and odd parts: M(c)(x) = A(c)(x2) + xB(c)(x2), A(c)(t) := X m≥0 M(c) 2mtm, B(c)(t) := X m≥0 M(c) 2m+1tm. For any integer n ≥0, write ⌊(n + 2)/2⌋= 2eu with e ≥0 and u odd, and define the parity indicator ε(n) := 1[n odd] ⊕1[u ≡3 (mod 4)] ∈{0, 1}. (6) Theorem 3.1 (Master mod-8 equation, c 7→3c duality, and complete classification of 8 ∤Mn(b, c)). Let c be any odd integer. (a) Master mod-8 parity-splitting equations: In Z/8Z[[t]], A(c)(t) ≡1 + t + 5t2 + 5t3 1 −t4 + ct A(c)(t)2 (mod 8), (7) B(c)(t) ≡3A(c)(t) − 2 1 −t + 4t2A(c)(t)3 (mod 8). (8) 4
(b) Exact c 7→3c even/odd duality: In Z/8Z[[t]], B(c)(t) ≡A(3c)(t) + 4
A(c)(t) − 1 1 −t2
(mod 8). (9) (c) Exact c 7→c + 4 parity-flip shift: In Z/8Z[[t]], A(c+4)(t) ≡A(c)(t) + 4
A(c)(t) − 1 1 −t
(mod 8), (10) B(c+4)(t) ≡B(c)(t) + 4
B(c)(t) − 1 1 −t
(mod 8). (11) (d) Complete mod-8 tetrachotomy: For every odd b, every odd c, and every n ≥0 with ⌊(n + 2)/2⌋= 2eu (u odd): • If e is even (natural density 2/3), then v2(Mn(b, c)) = 0. • If e is odd (natural density 1/3), then: c ≡1 (mod 8) : v2(Mn(b, c)) = 1 + ε(n) ∈{1, 2}, c ≡3 (mod 8) : v2(Mn(b, c)) = 2 −ε(n) ∈{1, 2}, c ≡5 (mod 8) : v2(Mn(b, c)) = 1 if ε(n) = 0, v2(Mn(b, c)) ≥3 if ε(n) = 1, c ≡7 (mod 8) : v2(Mn(b, c)) ≥3 if ε(n) = 0, v2(Mn(b, c)) = 1 if ε(n) = 1. In particular, for c ≡5, 7 (mod 8), no term has v2(Mn(b, c)) = 2, and the set {n ≥0 : 8 | Mn(b, c)} has exact natural density 1/6. Proof. (a) Substitute M(c)(x) = A(x2) + xB(x2) into cx2M2 −(1 −x)M + 1 = 0 and separate even and odd powers of x (setting t = x2): A(t) = 1 + ctA(t)2 + tB(t) + ct2B(t)2, (12) B(t) = A(t) + 2ctA(t)B(t) =⇒B(t) = A(t) 1 −2ctA(t). (13) Expanding (13) modulo 8 gives B(t) ≡A(t) + 2ctA(t)2 + 4t2A(t)3 (mod 8), (14) whence B(t)2 ≡A(t)2 + 4ctA(t)3 + 4t2A(t)4 (mod 8). Substituting into (12) yields (1 −t)A(t) ≡1 + ct(1 + 3t)A(t)2 + 4(1 + c2)t3A(t)3 + 4ct4A(t)4 (mod 8). Since c is odd, c2 ≡1 (mod 8), so 4(1 + c2) ≡0 (mod 8) (cubic_cancellation_mod8) and 4c ≡4 (mod 8). Thus the A(t)3 term cancels identically modulo 8. Writing 1+3t = (1−t)+4t and using the Frobenius congruences 4A(t)2 ≡4A(t2) (mod 8) and 4A(t)4 ≡4A(t4) (mod 8), we obtain (1 −t)A(t) ≡1 + ct(1 −t)A(t)2 + 4t2A(t2) + 4t4A(t4) (mod 8). (15) Reducing (15) modulo 2 and dividing by 1 −t gives the mod-2 master equation A(t) + tA(t)2 ≡ 1 1 −t (mod 2). (16) Replacing t 7→t2 in (16) yields t2A(t4) ≡A(t2)+(1−t2)−1 (mod 2); multiplying by 4t2 collapses the last two terms of (15) to 4t2A(t2) + 4t4A(t4) ≡4t2 2A(t2) + (1 −t2)−1 ≡ 4t2 1 −t2 (mod 8). 5
Dividing (15) by 1 −t gives A(t) ≡ 1 1 −t + 4t2 (1 −t)(1 −t2) + ctA(t)2 = 1 + t + 5t2 + 5t3 1 −t4 + ctA(t)2 (mod 8), proving (7). Multiplying (7) by 2 gives 2ctA(t)2 ≡2A(t) − 2 1−t (mod 8); substituting this into (14) yields (8). (b) Set A := A(c)(t), S := (1 −t)−1, and define eA(t) := B(c)(t) + 4
A − 1 1 −t2
≡3A −2S + 4
t2A3 + A + S2
(mod 8), where we used (8) and (1 −t2)−1 ≡S2 (mod 2). Since (X + 4Y )2 ≡X2 (mod 8) and (3A − 2S)2 = 9A2−12AS+4S2 ≡A2+4AS+4S2 (mod 8) (formalized in Lean 4 as duality_square_ mod8), multiplying by 3ct (noting 3c · 4 ≡4 (mod 8)) yields 3ct eA(t)2 ≡3ctA2 + 4tAS + 4tS2 (mod 8). On the other hand, multiplying the master equation (7) by 3 (using 3 · 4 ≡4 (mod 8)) gives 3ctA2 ≡3A −3S − 4t2 (1 −t)(1 −t2) (mod 8). Adding S + 4t2 (1−t)(1−t2) = 1+t+5t2+5t3 1−t4 to 3ct eA(t)2, the 4t2 (1−t)(1−t2) terms cancel identically modulo 8, leaving 1 + t + 5t2 + 5t3 1 −t4 + 3ct eA(t)2 ≡
S + 4t2 (1 −t)(1 −t2) ! +
3A −3S − 4t2 (1 −t)(1 −t2) ! + 4tAS + 4tS2 ≡3A −2S + 4tAS + 4tS2 (mod 8). In F2[[t]], equation (16) gives tA2 ≡A + S, hence t2A3+A+S2 ≡tA(A+S)+A+S2 = (A+S)+tAS+A+S2 = tAS+S(1+S) = tAS+tS2 (mod 2), because S(1+S) = (1+t)−1(1+(1+t)−1) = t(1+t)−2 = tS2 in F2[[t]]. Therefore eA(t) satisfies (7) with parameter 3c. Since the formal power series equation X(t) = g(t) + 3ctX(t)2 uniquely determines every coefficient [tm]X(t) by induction on m ≥0, we conclude eA(t) ≡A(3c)(t) (mod 8), which is (9). (c) Since c+4 ≡c (mod 4), equation (7) modulo 4 gives A(c+4)(t) ≡A(c)(t) (mod 4). Thus A(c+4) −A(c) ≡0 (mod 4) and A(c+4) + A(c) ≡0 (mod 2), so their product vanishes modulo 8. Subtracting (7) at c from c + 4 yields A(c+4)(t) −A(c)(t) ≡4tA(c)(t)2 ≡4
A(c)(t) − 1 1 −t
(mod 8), by (16), proving (10). For (11), since 3(c + 4) ≡3c + 4 (mod 8) and A(c+4) ≡A(c) ≡B(c) (mod 2), applying (9) and (10) gives B(c+4)(t)−B(c)(t) ≡A(3c+4)(t)−A(3c)(t) ≡4
A(3c)(t) − 1 1 −t
B(c)(t) − 1 1 −t
(mod 8). (d) Extracting [tm] from (16) gives A(c) 2k ≡1 (mod 2) and A(c) 2k+1 ≡1 −A(c) k (mod 2). By strong induction on m (formalized as mod2_parity_law), A(c) m ≡0 (mod 2) ⇐⇒v2(m + 1) is odd; since B(c)(t) ≡A(c)(t) (mod 2), the same holds for B(c) m . For n ∈{2m, 2m + 1}, 6
⌊(n + 2)/2⌋= m + 1, so 2 | Mn(b, c) ⇐⇒e = v2(⌊(n + 2)/2⌋) is odd, which has natural density P j≥0 2−(2j+2) = 1/3. We next derive the exact mod-4 residue of Mn(1, 1) directly from (7)–(8). Define the 0-1 power series Φ(t) := P k≥0, v2(k+1) even tk ∈Z[[t]]. Since A(1)(t) ≡Φ(t) (mod 2), squaring gives A(1)(t)2 ≡Φ(t)2 (mod 4), so reducing (7) modulo 4 yields the exact closed form A(1)(t) ≡ 1 1 −t + t Φ(t)2 (mod 4). Now let m ≥0 be any odd-e index, so K := m + 1 = 2 · 4ju with j ≥0 and u odd. Writing a = i + 1 and b = k + 1 in [tm−1]Φ(t)2 = P i+k=m−1 ΦiΦk, we have a + b = K. The diagonal term a = b = 4ju has v2(a) = 2j even, contributing +1, while off-diagonal pairs {a, K −a} (1 ≤a < K/2) contribute +2 each; hence [tm−1]Φ(t)2 = 1 + 2N(K), where N(K) := #{1 ≤ a < K/2 : v2(a) and v2(K −a) are both even}. We compute N(K) exactly: • If v2(a) < 2j + 1, then v2(K −a) = v2(a) automatically, so we count a = 4rw < 4ju with 0 ≤r ≤j and w odd. For r = j, 1 ≤w < u gives (u −1)/2 odd integers; for each 0 ≤r ≤j −1, 1 ≤w < 4j−ru gives 1 2 · 4j−ru = 2 · 4j−1−ru odd integers. • If v2(a) ≥2j + 1, write a = 22j+1s with 1 ≤s < u/2, so K −a = 22j+1(u −s). Both v2(a) = 2j + 1 + v2(s) and v2(K −a) = 2j + 1 + v2(u −s) being even would require both v2(s) and v2(u −s) to be odd; this is impossible because u = s + (u −s) is odd, forcing one of s, u −s to be odd (v2 = 0). Summing over r = 0, . . . , j gives the exact identity N(2 · 4ju) = u−1 2 + 2(4j−1) 3 u, whence A(1) m ≡1 +
1 + 2N(2 · 4ju)
= 2 + (u −1) + 4(4j −1) 3 u ≡1 + u (mod 4), and reducing (8) modulo 4 gives B(1) m ≡3A(1) m −2 ≡3(1 + u) −2 ≡1 −u (mod 4). Therefore, for every odd-e index n, we have v2(Mn(1, 1)) = 1 whenever ε(n) = 0 and v2(Mn(1, 1)) ≥2 whenever ε(n) = 1. Invoking the classical non-divisibility theorem 8 ∤Mn(1, 1) for all n ≥0 (Eu– Liu–Yeh [3]; see also [9, 5]) sharpens v2(Mn(1, 1)) ≥2 to v2(Mn(1, 1)) = 2 whenever ε(n) = 1, establishing the c ≡1 (mod 8) law v2(Mn(b, c)) = 1 + ε(n) ∈{1, 2}. Now observe that whenever e = v2(m + 1) is odd, m is odd (m ≡1 (mod 2)) and A(c) m is even, so [tm]
A(c)(t) −(1 −t2)−1 = A(c) m ≡0 (mod 2). Hence duality (9) gives the exact equality B(c) m ≡A(3c) m (mod 8) and A(c) m ≡B(3c) m (mod 8) at every even-Mn index n ∈{2m, 2m + 1}. Since flipping n between 2m and 2m + 1 flips ε(n) 7→1 −ε(n), setting c = 1 immediately proves the c ≡3 (mod 8) law: v2(Mn(b, c)) = 2 −ε(n) ∈{1, 2}. Finally, at every even-Mn index, A(c) m −1 ≡B(c) m −1 ≡1 (mod 2), so (10)–(11) simply add +4 (mod 8): every v2 = 1 residue (±2 (mod 8)) stays ∓2 (mod 8) (v2 = 1), while every v2 = 2 residue (4 (mod 8)) shifts to 4 + 4 ≡0 (mod 8) (v2 ≥3). Applying this +4 shift to c ≡1 gives c ≡5 (mod 8), and applying it to c ≡3 gives c ≡7 (mod 8). Because u ≡1 and u ≡3 (mod 4) occur equally often among odd u, each value ε(n) ∈{0, 1} has exact density 1 2 · 1 3 = 1 6. Corollary 3.2 (Complete if-and-only-if classification of 4- and 8-avoidance). For integers b, c ∈ Z: (a) 4 ∤Mn(b, c) for all n ≥0 if and only if b is odd and c is even; (b) 8 ∤Mn(b, c) for all n ≥0 if and only if b is odd and c̸ ≡5, 7 (mod 8). 7
Proof. If b is even, Theorem 2.1(c) gives 4 | M12(b, c) and 8 | M28(b, c). If b is odd and c is even, Theorem 2.1(a) gives v2(Mn(b, c)) = 0 for all n ≥0. If b and c are both odd, Theorem 3.1(d) shows 4 | M2(b, c) when c ≡3, 7 (mod 8) and 4 | M3(b, c) when c ≡1, 5 (mod 8) (proving (a)), while v2(Mn(b, c)) ≤2 for all n ≥0 when c ≡1, 3 (mod 8), whereas 8 | M3(b, c) when c ≡5 (mod 8) and 8 | M2(b, c) when c ≡7 (mod 8) (proving (b)). Remark 3.3 (Alternative (En, On) viewpoint). Splitting (1) into even-k and odd-k sums En := P k even
n 2k
Ck and On := P k odd
n 2k
Ck, one has b−nMn(b, c) ≡En + cOn (mod 8). Theorem 3.1(d) is equivalent to the statement that whenever Mn(1, 1) is even, either En ≡On (mod 8) (Type I, ε(n) = 0) or En + On ≡4 (mod 8) (Type II, ε(n) = 1); the elementary mod-8 arithmetic connecting (En, On) to all four residues c ∈{1, 3, 5, 7} is formalized in Lean 4 as mod8_tetrachotomy_typeI and mod8_tetrachotomy_typeII. 4 Cartier-Operator Closure over Z/p2Z and Classification of p2- Avoiding Families We now turn to odd primes p ≥3. By Theorem 2.1(a)–(c), any pair (b, c) ∈Z2 with p | b has supn vp(Mn(b, c)) = +∞, any pair with p | c and p ∤b satisfies vp(Mn(b, c)) = 0 identically, and for p ∤bc the divisibility condition p2 | Mn(b, c) depends solely on the single unit projective invariant ˜c = cb−2 ∈(Z/p2Z)× (p(p −1) classes). Thus we normalize to b = 1 and c ∈ {1, . . . , p2 −1} with p ∤c. Define the quadratic polynomial Q(x) := (1 −x)2 −4cx2 = 1 −2x + (1 −4c)x2 ∈(Z/p2Z)[x]. By (2), for every n ≥0, [xn+2]Q(x)1/2 = −2cMn(1, c). Since p is odd and p ∤c, −2c is a unit modulo p2, so p2 | Mn(1, c) if and only if [xn+2]Q(x)1/2 ≡0 (mod p2). Recall the Cartier operators Λr : R[[x]] →R[[x]] (0 ≤r < p) defined by Λr
P m≥0 amxm := P j≥0 apj+rxj, which satisfy the projection property Λr
f(x)g(xp)
= Λr(f(x))g(x) and extract any coefficient [xm]f(x) as the constant term [x0](Λdk ◦· · · ◦Λd0)(f) for the base-p expansion m = Pk i=0 dipi. Theorem 4.1 (Explicit Z/p2Z Cartier module closure and complete p2-avoidance classification for p ∈{3, 5, 7}). (a) Finite-state Cartier module closure: Let p ≥3 be an odd prime, c ∈(Z/p2Z)×, Q(x) = 1 −2x + (1 −4c)x2, and define the polynomial R(x) := Q(x)p−Q(xp) p ∈Fp[x] (deg R ≤2p). Let Mp be the finite set of power series in (Z/p2Z)[[x]] of the form FA,B(x) := A(x) Q(x)−1/2 + p B(x) Q(x)−3/2 (mod p2), with A ∈(Z/p2Z)[x] of degree ≤2 and B ∈Fp[x] of degree ≤4. Then Q(x)1/2 = FQ,0(x) ∈ Mp, Mp is closed under every Cartier operator Λr (0 ≤r < p) via the explicit transition map Λr(FA,B) = FA′,B′, A′(x) := Λr
A(x)Q(x)(p−1)/2
(mod p2), B′(x) := Λr
B(x)Q(x)(3p−3)/2 −1 2A(x)R(x)Q(x)(p−1)/2
(mod p), (17) and every state has constant term [x0]FA,B(x) ≡A(0) + pB(0) (mod p2). (b) Computer-assisted if-and-only-if classification for p ∈{3, 5, 7}: For integers b, c ∈Z, the condition p2 ∤Mn(b, c) for all n ≥0 holds if and only if either (p | c and p ∤b), or p ∤bc and ˜c = cb−2 (mod p2) lies in: 8
• p = 3: ∅(0 of 6 unit classes; every unit class hits 9 | Mn at n ≤14, verified both in Python and in Lean 4); • p = 5: {1, 18, 23} (mod 25) (3 of 20 unit classes, computer-certified by independently audited exact Cartier automata of 632, 577, 577 reachable states; all 17 remaining unit classes hit 25 | Mn at explicit minimal witnesses n ≤224); • p = 7: {5, 12, 19, 25} (mod 49) (4 of 42 unit classes, computer-certified by independently audited exact Cartier automata of 1231, 1327, 1327, 2122 reachable states; all 38 remaining unit classes hit 49 | Mn at explicit minimal witnesses n ≤832). Proof. (a) Over Zp[[x]], Q(x)p = Q(xp) + pR(x) with Q(0) = 1, so Q(x)−p/2 = Q(xp)−1/2
1 + p R(x) Q(xp)
−1/2 ≡Q(xp)−1/2 −p 2R(x)Q(xp)−3/2 (mod p2). Multiplying by Q(x)(p−1)/2 gives Q(x)−1/2 ≡Q(x)(p−1)/2Q(xp)−1/2 −p 2R(x)Q(x)(p−1)/2Q(xp)−3/2 (mod p2), while modulo p, Q(x)−3/2 = Q(x)(3p−3)/2Q(x)−3p/2 ≡Q(x)(3p−3)/2Q(xp)−3/2 (mod p), so multiplying by p gives pQ(x)−3/2 ≡pQ(x)(3p−3)/2Q(xp)−3/2 (mod p2). Substituting both expansions into FA,B(x) and pulling the functions Q(xp)−1/2 and Q(xp)−3/2 outside Λr yields (17). For the degree bounds, since deg Q = 2 and deg R ≤2p, whenever deg A ≤2 and deg B ≤4: deg
AQ(p−1)/2 ≤2 + (p −1) = p + 1 =⇒deg A′ ≤⌊(p + 1)/p⌋= 1 ≤2, deg
BQ(3p−3)/2 ≤4 + 3p −3 = 3p + 1, deg
ARQ(p−1)/2 ≤2 + 2p + p −1 = 3p + 1, so deg B′ ≤⌊(3p + 1)/p⌋= 3 ≤4 for every p ≥3 (formalized in Lean 4 as cartier_degree_ closure). Finally, since Q(0) = 1, Q(x)−1/2 and Q(x)−3/2 both have constant term 1, so [x0]FA,B(x) ≡A(0) + pB(0) (mod p2). (b) For each p ∈{3, 5, 7} and each unit class c ∈(Z/p2Z)×, we track reachable pairs (FA,B, cls) under Λr (0 ≤r < p) starting from (FQ,0, init), where cls ∈{init, eq0, eq1, ge2} records whether the least-significant-first base-p word read so far represents m = 0, m = 1, or m ≥2 (corresponding to n = m−2 ≥0). By part (a), p2 ∤Mn(1, c) for all n ≥0 if and only if no reachable state with cls = ge2 satisfies A(0)+pB(0) ≡0 (mod p2). Executing this exact integer breadth-first closure (Section 5, src/verify_ov83_motzkin.py) generates the reachable state set for each of the 3 avoiding classes at p = 5 and 4 avoiding classes at p = 7. To eliminate single-implementation BFS risk, a separate certificate auditor (audit_cartier_certificate_ independent) independently verifies the three inductive-invariant axioms directly on each finite state set: (1) initial-state membership, (2) full Λr-closure verified against unoptimized polynomial multiplication on all basis monomials, and (3) zero-free safety A(0) + pB(0)̸ ≡0 (mod p2) across all cls = ge2 states, supplemented by extended live recurrence cross-checks over all 0 ≤n ≤250. Every remaining unit class (6 for p = 3, 17 for p = 5, 38 for p = 7) is refuted elementarily by an explicit minimal integer n with p2 | Mn(1, c) summarized in Table 2. Note that the avoidance direction of (b) is computer-assisted (not formalized in Lean 4). Remark 4.2 (Link to minimal mod-p zero density). Remarkably, every nontrivial p2-avoiding class in Theorem 4.1(b) projects modulo p into the minimal mod-p zero-density locus δp(1, c) = 2 p(p−1) (cf. [4]): for p = 5, {1, 18, 23} mod 5 = {1, 3} (where δ5 = 1/10); for p = 7, {5, 12, 19, 25} mod 7 = {4, 5} (where δ7 = 1/21). Conversely, being in the minimal-density mod-p locus is necessary (among p ∈{3, 5, 7}) but not sufficient: at p = 3, ˜c ≡2 (mod 3) achieves δ3 = 1/3, yet all three lifts 2, 5, 8 (mod 9) hit 9 | Mn at n = 7, 4, 2, respectively. 9
(a) 2k | Mn(1, c) counts (n < 2048) k count 4 16 64 256 3 4 5 6 7 8 c = 7 c = 13 c = 5 dashed: 2048 3·2k−2 (log2 vertical scale) (b) Unit classes avoiding 8 or p2 modulus unit classes 0 10 20 30 40 23 2/4 32 0/6 52 3/20 72 4/42 avoiding classes all unit classes Figure 1: Left (a): Empirical counts #{n < 2048 : 2k | Mn(1, c)} on a log2 vertical scale for c ∈{5, 7, 13} vs. the halving benchmark 2048/(3 · 2k−2) (dashed), staying within 1.33 through k = 6 before spreading at k = 7. Right (b): Exact count of unit projective classes ˜c = cb−2 avoiding 8 (2/4) and p2 (0/6, 3/20, 4/42) established by Theorems 3.1 and 4.1. Table 1: Exact 2k-divisibility counts #{0 ≤n < 2048 : 2k | Mn(1, c)} for all eight odd residues c ≡5, 7 (mod 8) in [1, 31], together with maxn<2048 v2(Mn(1, c)). c c mod 8 c mod 16 k = 3 k = 4 k = 5 k = 6 k = 7 k = 8 max v2 5 5 5 341 170 85 43 7 3 11 13 5 13 341 171 85 43 27 13 12 21 5 5 341 170 85 43 25 12 12 29 5 13 341 171 86 44 7 4 8 7 7 7 341 170 85 43 35 16 16 15 7 15 341 171 86 42 37 18 10 23 7 7 341 170 85 42 24 12 11 31 7 15 341 171 85 42 18 8 12 5 Higher 2k-Divisibility Cascade, Computational Tables, and Formal Verification Figure 1 and Tables 1–2 summarize our computational verification and an empirical higher-2k observation. For odd b and c ≡5, 7 (mod 8), Theorem 3.1(d) proves that 8 | Mn(b, c) on exact density 1/6 (341 indices in 0 ≤n < 2048). Empirically across the eight odd residues c ∈ {5, 7, 13, 15, 21, 23, 29, 31} below n = 2048 (Table 1 and Figure 1(a)), the counts of 2k | Mn(1, c) remain close to the halving benchmark 2048/(3 · 2k−2) through k = 6 (341 →170–171 → 85–86 →42–44) before spreading widely at k = 7 (ranging from 7 for c ∈{5, 29} to 37 for c = 15), with every tested residue attaining v2 ∈[8, 16] below n = 2048. Explaining this empirical k = 7 spread analytically remains open. Reproducibility and formal verification. The standalone Lean 4.36.0 file lean/OV83_ GeneralizedMotzkin.lean compiles under -DwarningAsError=true with zero external imports and proves 11 theorems: pow_ge_succ, zero_borrow_kummer_bound, odd_sq_mod8, cubic_ cancellation_mod8, duality_square_mod8, mod2_parity_law (axioms [propext, Quot.sound]); mod8_tetrachotomy_typeI, mod8_tetrachotomy_typeII, cartier_degree_closure (axioms [propext, Classical.choice, Quot.sound]); and the kernel-reduced finite verifications witness_ p3_all6_nonavoiding and witness_kummer_sharp_examples (zero axioms), recorded verbatim in data/lean_axioms_audit.txt. (The formal power-series manipulations of Theorems 3.1 and 4.1(a), Kummer’s carry theorem in Theorem 2.1(c), and the computer-assisted BFS executions of Theorem 4.1(b) are established in the text and the zero-float Python suite rather than formalized end-to-end in Lean.) The pure-stdlib zero-float Python suite src/verify_ov83_ 10
Table 2: Complete Cartier-automaton classification of p2-avoiding unit projective classes ˜c = cb−2 ∈(Z/p2Z)× for p ∈{3, 5, 7}, with exact reachable state counts and worst-case minimal witnesses among all non-avoiding unit classes. p Unit classes Avoiding ˜c mod p2 Reachable states Refuted (worst (˜c, nmin)) 3 6 none (∅) — 6/6 (˜c = 4, nmin = 14) 5 20 {1, 18, 23} 632, 577, 577 17/20 (˜c = 6, nmin = 224) 7 42 {5, 12, 19, 25} 1231, 1327, 1327, 2122 38/42 (˜c = 20, nmin = 832) motzkin.py passes AST inspection for zero floating-point literals, zero float() calls, and zero external numeric imports, executes in ≈5 s producing deterministic pinned JSON (SHA256_16 = 3ff02e0309367ca4), and passes 4/4 tests under pytest -W error. 6 Concluding Remarks and Open Problems Our classification resolves prime-power avoidance for generalized Motzkin numbers modulo 8 (p = 2) and modulo p2 (p ∈{3, 5, 7}) over all (b, c) ∈Z2, while opening three crisp directions: 1. Unboundedness for c ≡5, 7 (mod 8): Table 1 shows v2(Mn(1, c)) ∈[8, 16] below n = 2048 for every odd c ≡5, 7 (mod 8) in [1, 31]. Does supn≥0 v2(Mn(b, c)) = +∞hold for every odd b and every c ≡5, 7 (mod 8)? 2. Asymptotics of p2-avoiding classes: We proved that the number of nontrivial p2-avoiding unit classes is 0, 3, 4 for p = 3, 5, 7, all lying over the minimal mod-p zero-density locus δp = 2 p(p−1). Are there infinitely many primes p admitting nontrivial p2-avoiding generalized Motzkin classes ˜c ∈(Z/p2Z)×, and is membership in the δp = 2 p(p−1) locus always necessary? 3. Higher prime powers p3: For all seven p2-avoiding classes {1, 18, 23} mod 25 and {5, 12, 19, 25} mod 49, explicit elementary terms attain vp = 1 (M9(1, 1) = 835, M3(1, 18) = 55, M3(1, 23) = 70; M5(1, 5) = 301, M5(1, 12) = 1561, M5(1, 19) = 3801, M6(1, 25) = 97 251), so Theorem 4.1(b) implies maxn vp(Mn(b, c)) = 1. Does any unit class at any odd prime p satisfy maxn vp(Mn(b, c)) = 2 (avoiding p3 while hitting p2)? References [1] G. Christol, Ensembles presque périodiques k-reconnaissables, Theoret. Comput. Sci. 9 (1979), 141– 145. [2] E. Deutsch and B. E. Sagan, Congruences for Catalan and Motzkin numbers and related sequences, J. Number Theory 117 (2006), 191–215. [3] S.-P. Eu, S.-C. Liu, and Y.-N. Yeh, Catalan and Motzkin numbers modulo 4 and 8, European J. Combin. 29 (2008), 1449–1466. [4] N. Kohen, Density and symmetry in the generalized Motzkin numbers mod p, arXiv:2411.03681 (2024). [5] C. Krattenthaler and T. W. Müller, Motzkin numbers and related sequences modulo powers of 2, European J. Combin. 73 (2018), 114–137. [6] E. E. Kummer, Über die Ergänzungssätze zu den allgemeinen Reciprocitätsgesetzen, J. Reine Angew. Math. 44 (1852), 93–146. [7] E. Rowland and R. Yassawi, Automatic congruences for diagonals of rational functions, J. Théor. Nombres Bordeaux 27 (2015), 245–288. [8] Z.-W. Sun, Congruences involving generalized central trinomial coefficients, Sci. China Math. 57 (2014), 1375–1400. [9] Y. Wang and G. Xin, A classification of Motzkin numbers modulo 8, Electron. J. Combin. 25 (2018), #P1.54. 11
Complete plain-text extraction (5,909 words). Open the canonical PDF above for full mathematical typesetting and figures.
References (9)
- G. Christol, Ensembles presque périodiques $k$-reconnaissables, Theoret.\ Comput.\ Sci.\ 9 (1979), 141–145
- E. Deutsch and B. E. Sagan, Congruences for Catalan and Motzkin numbers and related sequences, J.\ Number Theory 117 (2006), 191–215
- S.-P. Eu, S.-C. Liu, and Y.-N. Yeh, Catalan and Motzkin numbers modulo $4$ and $8$, European J.\ Combin.\ 29 (2008), 1449–1466
- N. Kohen, Density and symmetry in the generalized Motzkin numbers mod $p$, arXiv:2411.03681 (2024) [arXiv:2411.03681]
- C. Krattenthaler and T. W. Müller, Motzkin numbers and related sequences modulo powers of $2$, European J.\ Combin.\ 73 (2018), 114–137
- E. E. Kummer, Über die Ergänzungssätze zu den allgemeinen Reciprocitätsgesetzen, J.\ Reine Angew.\ Math.\ 44 (1852), 93–146
- E. Rowland and R. Yassawi, Automatic congruences for diagonals of rational functions, J.\ Théor.\ Nombres Bordeaux 27 (2015), 245–288
- Z.-W. Sun, Congruences involving generalized central trinomial coefficients, Sci.\ China Math.\ 57 (2014), 1375–1400
- Y. Wang and G. Xin, A classification of Motzkin numbers modulo $8$, Electron.\ J.\ Combin.\ 25 (2018), \#P1.54
Cite this paper
Lluis Eriksson (2026). Parity-Splitting Duality, Exact Mod-8 Tetrachotomy, Universal Kummer Unboundedness, and Complete Cartier-Automaton Classification of p^2-Avoiding Generalized Motzkin Numbers for p in {3, 5, 7}. AIRR.SCIENCE, ARR-2026-50P2CD4BBB8BHB29, v1. https://airr.science/papers/ARR-2026-50P2CD4BBB8BHB29/versions/v1/
Use the DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.
Version history
The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.
Verification record
- Frontier-model screening
- Pass · 2 models
- Source integrity
- Pass
- Bibliographic integrity
- Pass
- Reproducibility
- Pass
- Lean 4
- L2
Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.
More in Mathematics
Unimodular Möbius Factorization, Exact Prime-Power vs. Composite F_q-Rank Dichotomy, Lucas Parity Jumps, and Real-Corank Laws for Mod-m Boolean Set-Intersection Matrices EXCELLENT
Exact Real-Rootedness, Jacobi Staircase Duality, and Krawchouk Phase Transitions for Signed-Averaged Immanant Matching Polynomials VERY GOOD
Exact Entropic Ricci Curvature of Non-Abelian Fourier Multipliers: Amenable Bezout Cocycle Rigidity, Universal Coxeter Wall-Hypercube Curvature, Rank-2 Plane Additivity, and the Kleinian SU(2)-SO(3) Dichotomy EXCELLENT
Non-Abelian Sidon Sets in Finite Groups: Involution Obstructions, Generalized Dihedral Collapse, Dicyclic Separation, and Complete Classification of Strict Product-Sidon-Trivial Groups EXCELLENT
Uniform All-N (forall N >= 11) Infinite-Family Zero-Seed Mass Gap Theorem for Four-Dimensional D_4 SU(N) Heat-Kernel Yang-Mills via Vertex-Star W_v16 Cancellation and One-Sided H_rem Jensen Tilt STRONG
Curvature-Tight Submodular Dual Certificates, Degree-Centered Spectral Max-Cut Pencils, Row AM/GM Sinkhorn Bounds, and Cumulative Haemers Enclosures ACCEPTABLE
AI assistance statement
Authored by Lluis Eriksson with AI-assisted mathematical drafting, standalone Lean 4.36.0 formalization, and exact zero-float Python verification via Google Antigravity. Author owns and administers AIRR; evaluated independently across two distinct providers (Google DeepMind/gemini-4-hydrogen and Anthropic/claude-sonnet-5-5) under ARR-ASSESS-1.0 / ARR-CALIB-2026 / AIRR-FOUNDER-1.0.
Frontier-model screening
Status: pass. Any listed reports correspond to this exact version under ARR-SCREEN-1.0; no absent assessment is represented as a pass.
- gemini-4-hydrogenGoogle DeepMind · pass
- claude-sonnet-5-5Anthropic · pass
Model assessments and review context
- Distinct models
- 2
- Range
- 2.80–3.65
- Method
- bounded capability-weighted mean · exact version only
Limited evidence · 0/2 benchmark matches. This is an evidence description, not a probability of correctness.
Fresh blinded review context not documented for every model; Benchmark match incomplete
Anthropic · claude-sonnet-5-5 · not involved in manuscript · review context: unknown2.80
Recommendation: Minor Revision · Material objections: 0
The manuscript studies generalized Motzkin numbers M_n(b,c). It proves projective invariance in c̃=c/b^2, and it proves v_p unbounded whenever p|b via a zero-borrow Kummer argument. For odd b and c it derives a mod-8 master equation, an exact c→3c even/odd duality and a c→c+4 shift. From these it obtains a mod-8 tetrachotomy and an iff criterion for 4- and 8-avoidance over all (b,c) in Z^2. For p=3,5,7 it classifies p^2-avoidance through a finite Cartier-operator module over Z/p^2 and an exact BFS, giving 0, 3 and 4 avoiding unit classes. I hand-checked the main proofs and found no gap. Numerical tests found no counterexample. My own BFS re-implementation reproduced the reported state counts, and my witness search reproduced the avoiding classes and worst-case witnesses. Weaknesses are mostly of presentation and scope. The title and abstract overstate the generality ('Universal Kummer Unboundedness' covers only p|b). The avoidance direction of Theorem 4.1(b) is computer-assisted and not formally proved. Lean covers only auxiliary arithmetic. Novelty relative to the automatic-sequence literature could not be verified by me and should be positioned more carefully. The contribution is correct as far as I can inspect, and it is modest, incremental and solid.
- Correctness confidence
- I re-derived the Kummer zero-borrow bound, the central-trinomial bridge and the Cartier closure step by hand, and found no gap. Numerical checks found no counterexample: tetrachotomy for b in {±1,3,5,7} and 10 values of c with n<300; bridge and recurrence on small grids; Kummer bound for p=2,3,5,7; Corollary 3.2 over b in [-6,6], c in [-9,9]. I also wrote my own exact-integer Cartier BFS from the paper's formulas. It reproduced the reported state counts (632/577/577 for p=5; 1231/1327/1327/2122 for p=7) with zero unsafe states. My own witness search matched the avoiding sets {1,18,23} and...
- Rigor
- The proofs of Theorems 2.1 and 3.1 are mostly complete and checkable. The mod-4 pair-count argument and the duality proof via uniqueness of the quadratic fixed point are sound. Weaknesses: (i) the c≡1 case relies on the cited theorem 8∤M_n(1,1) (Eu–Liu–Yeh) for the sharpening v_2=2; (ii) the Lean file proves only auxiliary Nat-level facts. For example, mod8_tetrachotomy_typeI/II are pure arithmetic on abstract (e,o) and are not linked to M_n; (iii) the key power-series and Cartier-automaton claims are not formalized, which the paper discloses; (iv) the Remark on exactness of the Kummer...
- Novelty
- The exact c→3c even/odd duality, the c→c+4 shift, the full-plane iff classification of 4- and 8-avoidance, and the p^2-avoiding classes mod 25 and 49 beyond (1,1) are new relative to the cited literature, as far as I can tell. I did not browse, so I could not check the novelty claims or the citations (Kohen arXiv:2411.03681, the Rowland–Yassawi 'conjecture' attribution, Wang–Xin, Sun). The Cartier/BFS machinery is an instance of the known Rowland–Yassawi automatic-congruence method. The Kummer unboundedness for p|b is elementary. Overall this is an incremental but substantive extension.
- Significance
- This is a niche but clean contribution to congruences of Motzkin-type numbers. The complete mod-8 picture and the finite classification at p=3,5,7 answer natural questions. It does not extend to general p, to p^3, or to unboundedness for c≡5,7 mod 8, which the paper itself leaves open. Broader impact is limited.
- Reproducibility
- The workspace holds a stdlib Python verifier, tests and pinned JSON. pytest -W error gives 4 passed in about 3.5 s. A separate Lean audit file lists axiom footprints, and the Lean source has no sorry. My independent BFS and witness search reproduced the headline numbers in under 15 s. I did not run Lean.
Strengths
- The Kummer zero-borrow proof (Theorem 2.1(c)) is correct, including the p≥5 improvement. My numerical checks for p=2,3,5,7 found no violation of the bound.
- The central-trinomial bridge (2.1(d)) and the quadratic functional equation are correct, and I verified them on grids.
- The mod-8 master equation, c→3c duality and c→c+4 shift are proved coherently. The tetrachotomy matched direct computation for many (b,c,n).
- Corollary 3.2 (iff classification for 4 and 8) agreed with brute force over a grid of b, c, including negative and even values.
- The Cartier closure (Theorem 4.1(a)) has correct exponents and degree bounds. An independent BFS reproduced all reported reachable-state counts, found zero unsafe states for the 7 avoiding classes, and found unsafe states for non-avoiding classes.
- The paper discloses clearly what is and is not formalized, and the artifacts are reproducible: the tests pass, and the Lean axiom audit is consistent with the sources.
Weaknesses
- The title and abstract overstate generality. 'Universal Kummer unboundedness' holds only for p|b, and the paper itself shows bounded v_p for the 7 avoiding classes with p∤b. 'Complete classification' covers only p=3,5,7 and only mod p^2 and mod 8.
- The avoidance half of Theorem 4.1(b) is purely computational. The auditor is by the same author, and no formal proof or externally checkable certificate is given beyond the scripts. The reduction depends on hand-proved formula (4.1) in (a), which is not formalized.
- The Lean content is thin. It proves Nat-level arithmetic facts, and the tetrachotomy theorems are not connected to M_n. 'Eleven theorems, zero sorry' should not be read as formal verification of the main results.
- The c≡1 mod 8 sharpening to v_2=2 relies on the literature (Eu–Liu–Yeh), so the 'self-contained' wording in the abstract is only partly accurate.
- The novelty framing is weakly supported. The Cartier method is the known Rowland–Yassawi technique. Citation-dependent claims (the Rowland–Yassawi conjecture, Kohen's results, priority over Wang–Xin and Sun for generalized (b,c)) are not supported by quoted statements.
- Table 1 and Figure 1(a) and the unboundedness question for c≡5,7 mod 8 are empirical only. The figure uses hard-coded coordinates, and it is presented as data rather than as a result.
Potential errors
- Remark after Theorem 2.1 says the Kummer bound is 'exact' but supports this only 'for all tested r'. Exactness is unproved.
- Intro and abstract language ('resolve all three questions completely') slightly overstates what is established: the third question is answered, but only the existence of unbounded valuations for p|b is shown, not the structure for other primes.
- The attribution to Rowland–Yassawi of a conjecture of 'no higher prime-power exclusions beyond 8 and 25' is not checkable from the manuscript and may be inexact.
- Theorem 4.1 defines R over F_p although it is derived from an integer lift of Q. This is well-defined mod p, but the independence of the choice of lift of c to Z should be stated explicitly. I found no resulting error.
Strong novelty candidates
- Exact even/odd duality B^{(c)} ≡ A^{(3c)} + 4(A^{(c)} − (1−t^2)^{-1}) mod 8, and the resulting 1↔2 valuation involution between c≡1 and c≡3 mod 8.
- Full-plane (b,c)∈Z^2 iff classification of 4- and 8-avoidance (Corollary 3.2).
- Identification of the 25-avoiding classes c̃∈{18,23} and 49-avoiding classes c̃∈{5,12,19,25} beyond (1,1). I independently reproduced these computationally, but novelty relative to the literature is unverified.
Unresolved material objections
None reported.
arr:assessment:e5442d69-0406-46cb-acc7-65648de8e428 · prompt ARR-ASSESS-1.0 · response SHA-256 4041fb7306039141411a08df962249c88660e29d6e970cafe931f7bee5a503a2 · canonical PDF SHA-256 1886a5edc4995f01704a310fa8fe613fdee04219520fab7a86e77303053a4d48
Google DeepMind · gemini-4-hydrogen · involved in manuscript · review context: unknown3.65
Recommendation: Minor Revision · Material objections: 0
This manuscript determines prime-power avoidance for generalized Motzkin numbers M_n(b,c) across (b,c) in Z^2 at p=2 (mod 4 and 8) and p in {3,5,7} (mod p^2). Theorem 2.1 establishes projective collapse to c*b^(-2) when p does not divide b, trivial v_p=0 when p|c and p does not divide b, a central-trinomial bridge, and universal Kummer unboundedness when p|b. Theorem 3.1 and Corollary 3.2 derive master mod-8 parity-splitting equations, an exact c -> 3c even/odd duality, and a complete mod-8 tetrachotomy (invoking Eu-Liu-Yeh 2008 for 8 not dividing M_n(1,1)). Theorem 4.1 gives a finite-degree Cartier closure over Z/p^2Z[[x]] and classifies unit classes for p in {3,5,7}, finding 0, 3, and 4 avoiding classes respectively and explicit minimal witnesses for all others. All computational claims are confirmed by a zero-float Python suite (4/4 pytest tests passing).
- Correctness confidence
- Main claims in Theorems 2.1, 3.1, Corollary 3.2, and Theorem 4.1 hold under analytic verification and zero-float integer checks (pytest 4/4 passed in 4.81s). Only minor notational slips occur (e.g., = instead of mod-8 congruence in Sec. 3).
- Rigor
- Proofs of projective collapse, Kummer carries, mod-8 parity splitting, and finite Cartier closure are clear and mathematically sound. Theorem 3.1(d) relies on Eu-Liu-Yeh (2008) for 8 not dividing M_n(1,1), and Lean 4 formalizes only sub-lemmas and small DP witnesses.
- Novelty
- Extends classical mod-8 and 25-avoidance results to the full (b,c) plane, proving universal p|b Kummer unboundedness, an exact c -> 3c mod-8 duality, and new 25- and 49-avoiding classes while adapting Rowland-Yassawi's Cartier method.
- Significance
- Provides a complete prime-power avoidance classification for generalized Motzkin numbers at p=2 (mod 8) and p in {3,5,7} (mod p^2), identifying six new odd-prime avoiding families and crisp open problems.
- Reproducibility
- Pure-stdlib zero-float Python suite reproduces pinned JSON (SHA256_16=3ff02e0309367ca4) and passes 4/4 pytest -W error tests in 4.81s; Lean 4.36.0 axiom audit is clean (no sorryAx), though the auditor shares the table-builder helper.
Strengths
- Clean, unified zero-borrow Kummer argument in Theorem 2.1(c) proving sup_n v_p(M_n(b,c)) = +infinity for every prime p >= 2 whenever p | b, including the sharp >= r refinement for p >= 5.
- Elegant parity-splitting derivation modulo 8 yielding the exact c -> 3c even/odd duality (eq. (9)), the c -> c+4 parity-flip shift, and the 1 <-> 2 valuation involution between c = 1 and c = 3 (mod 8).
- Self-contained pair-count proof of the exact mod-4 valuation of M_n(1,1) via the closed form N(2*4^j*u) = (u-1)/2 + 2(4^j - 1)u/3.
- Explicit finite-degree Cartier module closure M_p over Z/p^2Z[[x]] (deg A <= 2, deg B <= 4) valid uniformly for all odd primes p >= 3, classifying all unit classes at p in {3, 5, 7}.
- Transparent, fast, pure-stdlib zero-float Python verification suite (verified via AST audit and 4/4 pytest -W error passes) matching pinned JSON results and accompanied by an explicit Lean 4 axiom audit.
Weaknesses
- Theorem 3.1(d) and Corollary 3.2(b) are not fully self-contained because they invoke Eu-Liu-Yeh (2008) for 8 not dividing M_n(1,1) to sharpen v_2 >= 2 to v_2 = 2.
- The odd-prime classification in Theorem 4.1(b) is restricted to p in {3, 5, 7} modulo p^2 and relies on finite-state BFS rather than yielding an analytic criterion for general primes p.
- Lean 4.36.0 formalizes only auxiliary arithmetic sub-lemmas, an abstract mod-2 recurrence (mod2_parity_law), degree bounds, and small finite DP checks; formal power-series proofs and Cartier certificates remain unformalized in Lean.
- In src/verify_ov83_motzkin.py, audit_cartier_certificate_independent calls the same build_cartier_linear_tables function as certify_p2_avoiding_cartier, reducing full structural independence (though it independently re-checks basis transitions via poly_mul).
Potential errors
- Notational slip in the proof of Theorem 3.1(b) (paper.tex line 226): writes S + 4t^2/((1-t)(1-t^2)) = (1+t+5t^2+5t^3)/(1-t^4) with '=' instead of '\equiv ... (mod 8)'; the two rational functions differ starting at t^4 over Z[[t]] but are congruent modulo 8.
- Minor domain omission in eq. (2) (paper.tex line 60): the square-root formula with 2cx^2 in the denominator assumes c != 0 without stating it explicitly (though Theorem 2.1(d) holds trivially at c=0).
- Minor naming/scope imprecision in Lean theorem witness_kummer_sharp_examples: it verifies the divisibility lower bounds p^{r-1} | M_n(p,1) (or p^r | M_n) at sample indices, not sharpness (non-divisibility by the next power of p), which is instead checked in Python.
- Minor TeX layout warnings in paper.log: several overfull hbox warnings (up to 39.1pt in Section 6).
Strong novelty candidates
- Exact c -> 3c even/odd duality B^(c)(t) == A^(3c)(t) + 4(A^(c)(t) - (1-t^2)^(-1)) (mod 8) and complete mod-8 tetrachotomy across all odd (b, c) in Z^2.
- Universal zero-borrow Kummer unboundedness bound v_p(M_{2(p^r-2)}(b,c)) >= r - 1 (and >= r for p >= 5) valid for all primes p >= 2 and all c in Z whenever p | b.
- Discovery and certification of the two new 25-avoiding classes c_tilde in {18, 23} (mod 25) beyond (1,1) and the four 49-avoiding classes c_tilde in {5, 12, 19, 25} (mod 49), together with the structural observation that all project onto the minimal mod-p zero-density locus.
Unresolved material objections
None reported.
arr:assessment:53b02e0a-d1ae-4c01-94cd-98872659eeda · prompt ARR-ASSESS-1.0 · response SHA-256 474074196139dc146af0a747bda5c0f2ecc6147f7e4359967a58c7d2272aa335 · canonical PDF SHA-256 1886a5edc4995f01704a310fa8fe613fdee04219520fab7a86e77303053a4d48
A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.
Editorial disclosure
Accepted under AIRR-FOUNDER-1.0 author-editor governance following blind dual-provider ARR-CALIB-2026 refereeing (Google DeepMind/gemini-4-hydrogen 3.65/10, Anthropic/claude-sonnet-5-5 2.8/10; 0 unresolved material objections) with standalone zero-dependency Lean 4.36.0 proofs and exact Python verification.