betaFeedback

WorksMathematics

Exact p-adic Valuations of Algebraic Binomial Coefficients and Transfer-Operator Enumeration of Separated Permutations: Resolutions of Open Problems in OEIS A387569, A392059, and A179967

Abstract

We resolve three open problems in the On-Line Encyclopedia of Integer Sequences (OEIS) and establish two broader generalizations. First, for n >= 1, let A387569(n) denote the least positive integer y for which there exists an integer x with binom(x + iy, n) in Z[i]. Using local completions, we prove that primes p ≡ 1 (mod 4) never divide A387569(n), prove via the Chinese Remainder Theorem that binom(x + iy, n) is in Z[i] for some integer x if and only if A387569(n) divides y, and derive an explicit prime-power formula extending the known table beyond n = 23. More generally, for any imaginary quadratic ring of integers O_K (including non-UFDs such as Z[sqrt(-5)]), we prove by local valuation decoupling and the Chinese Remainder Theorem that unramified split rational primes never divide the minimal existential shift, while showing via Q(sqrt(-3)) that 2y-periodicity fails in general and proving an explicit universal period bound via Chu–Vandermonde. Second, for A392059(n), we characterize universal integrality over all integers x, establish the polynomial translation identity binom(x + A392059(n)i, c) ≡ binom(x + 2^floor(log_2 n), c) (mod 1+i) for every 0 <= c <= n, disprove the OEIS congruence conjecture for all n >= 1 using the explicit witness x(n) = n - 2^floor(log_2 n), and prove that the minimal period modulo (1+i) is 2*A392059(n). Third, we construct an explicit finite quotient transfer operator resolving Manyama's (2026) conjectures on OEIS A179967 (permutations of [2n+9] with |p(j)-p(j-1)| > n), proving pure-integer Stage 1 prefix-graph orbit contraction, bijective Stage 2–3 transition weights, direct enumeration of all pre-bulk terms 0 <= n <= 7, Krylov annihilator minimality, and exact closed forms across 2 <= k <= 9 (OEIS A322255).

Introduction

The arithmetic of integer-valued polynomials over algebraic number rings—initiated by Pólya and Ostrowski and generalized via pp-orderings by Bhargava [1, 2]—motivates integrality questions for binomial polynomials along affine slices. For n≥1n \ge1 and Z+iy⊂Z[i]\mathbb{Z}+iy \subset\mathbb{Z}[i] (y∈Z>0y \in\mathbb{Z}_{>0}), two dual problems appear in the OEIS:

  1. Existential integrality (OEIS A387569 [10]): Find the least y≥1y \ge1 with (x+iyn)∈Z[i]\binom{x+iy}{n} \in\mathbb{Z}[i] for some x∈Zx \in\mathbb{Z}. Direct search previously reached only n=23n=23, leaving periodicity in xx, the absence of prime factors p≡1(mod4)p \equiv1 \pmod{4}, and a general formula open.

Version 2.6 Final (joint AI–human collaborative edition incorporating Stage 1 prefix-graph automorphism proofs, explicit Stage 2–3 combinatorial weight identities, Vandermonde period bounds, exact 2-adic factorial valuations, and vectorized meet-in-the-middle enumeration through n=7n=7). Primary derivations, transfer-operator constructions, verification code, and manuscript synthesis by Google Gemini (Gemini 4 Carbon); independent adversarial auditing, the Q(−3)\mathbb{Q}(\sqrt{-3}) periodicity counterexample, and proof-completeness critiques by OpenAI ChatGPT; confidential prompting architecture and workflow orchestration by Seon-Woo Hong; see Section 5. (2) Universal integrality and congruence (OEIS A392059 [11]): For

A392059⁡(n)=∏p≤np=2 or p≡3(mod4)p⌊log⁡pn⌋,(1)\operatorname{A392059}(n)=\prod_{\substack{p\le n\\p=2\ \text{or}\ p\equiv3\pmod4}}p^{\lfloor\log_p n\rfloor}, \tag*{(1)}

it was conjectured in [11] that A392059⁡(n)\operatorname{A392059}(n) is the minimal k≥1k\ge1 satisfying (x+kin)≡(xn)(mod1+i)\binom{x+ki}{n}\equiv\binom{x}{n}\pmod{1+i} for all x∈Zx\in\mathbb{Z}.

§ 1.3 and § 2 resolve both problems completely and extend split-prime invisibility to arbitrary imaginary quadratic Dedekind domains OK\mathcal{O}_K. Section 4 resolves Manyama’s (2026) conjectures on OEIS A179967 [8] enumerating permutations pp of [2n+9][2n+9] with ∣p(j)−p(j−1)∣>n|p(j)-p(j-1)|>n, together with [2n+k][2n+k] (2≤k≤92\le k\le9, diagonals of OEIS A322255 [9]).

Notation and Binomial Conventions

Lowercase p,q∈Z>0p,q\in\mathbb{Z}_{>0} denote rational primes, and vp(u)∈Zv_p(u)\in\mathbb{Z} denotes the pp-adic valuation on Q\mathbb{Q} (vp(0)=+∞v_p(0)=+\infty). For an algebraic number field KK with ring of integers OK\mathcal{O}_K, gothic letters P,p,Q\mathfrak{P},\mathfrak{p},\mathfrak{Q} denote nonzero prime ideals of OK\mathcal{O}_K, with normalized discrete valuation vP(z)∈Zv_{\mathfrak{P}}(z)\in\mathbb{Z} on OK,P\mathcal{O}_{K,\mathfrak{P}}. In Z[i]\mathbb{Z}[i], inert p≡3(mod4)p\equiv3\pmod4 has P=pZ[i]\mathfrak{P}=p\mathbb{Z}[i] with vpZ[i](u)=vp(u)v_{p\mathbb{Z}[i]}(u)=v_p(u) on Q×\mathbb{Q}^{\times}, while 2Z[i]=(ϖ)22\mathbb{Z}[i]=(\varpi)^2 with ϖ=1+i\varpi=1+i and v(ϖ)(2)=2v_{(\varpi)}(2)=2. For any Q\mathbb{Q}-algebra RR and z∈Rz\in R, set (zm):=z(z−1)⋯(z−m+1)/m!\binom{z}{m}:=z(z-1)\cdots(z-m+1)/m! (m≥1m\ge1), (z0):=1\binom{z}{0}:=1, and (zm):=0\binom{z}{m}:=0 (m<0m<0). Then (xm)∈Z\binom{x}{m}\in\mathbb{Z} for all x∈Zx\in\mathbb{Z} ((xm)=0\binom{x}{m}=0 for 0≤x<m0\le x<m; (−rm)=(−1)m(r+m−1m)\binom{-r}{m}=(-1)^m\binom{r+m-1}{m} for r≥1r\ge1), and

(z1+z2n)=∑m=0n(z1m)(z2n−m)\binom{z_1+z_2}{n}=\sum_{m=0}^{n}\binom{z_1}{m}\binom{z_2}{n-m}

holds in Q[z1,z2]\mathbb{Q}[z_1,z_2].

Related Work

For classical binomial rows (nm)\binom{n}{m} (0≤m≤n0\le m\le n), Rowland [12] gave a pp-regular matrix product for ∑m=0nxvp((nm))\sum_{m=0}^{n}x^{v_p(\binom{n}{m})}, generalized by Chand [3] to Fibonomial and CC-nomial coefficients. Whereas those works count valuations across 0≤m≤n0\le m\le n, A387569 and A392059 fix nn and vary x∈Zx\in\mathbb{Z} along x+iy∈Z[i]x+iy\in\mathbb{Z}[i], governed by prime splitting in Q(i)\mathbb{Q}(i). In combinatorics, maximizing min⁡{u,v}∈E(G)∣p(u)−p(v)∣\min_{\{u,v\}\in E(G)}|p(u)-p(v)| is the anti-bandwidth (separation number) problem in frequency assignment [4], scheduling [5], and graph layouts [7]; our transfer operator yields exact rational generating functions and exponential growth rates lim⁡n→∞n−1log⁡ak(n)=log⁡(⌊k/2⌋⌈k/2⌉)\lim_{n\to\infty}n^{-1}\log a_k(n)=\log(\lfloor k/2\rfloor\lceil k/2\rceil) on paths P2n+kP_{2n+k}.

Local-to-Global Valuations for OEIS A387569 and Dedekind Domains

Lemma 2.1 (Split primes). If p≡1(mod4)p\equiv1\pmod4 splits in Z[i]\mathbb{Z}[i] as pZ[i]=pp‾p\mathbb{Z}[i]=\mathfrak{p}\overline{\mathfrak{p}}, then vp((x+iyn))≥0v_{\mathfrak{p}}\left(\binom{x+iy}{n}\right)\ge0 and vp‾((x+iyn))≥0v_{\overline{\mathfrak{p}}}\left(\binom{x+iy}{n}\right)\ge0 for all n≥0n\ge0 and x,y∈Zx,y\in\mathbb{Z}.

Proof. By Hensel’s lemma, T2+1=0T^2+1=0 has roots ±ι∈Zp\pm\iota\in\mathbb{Z}_p, inducing Z[i]p≅Zp\mathbb{Z}[i]_{\mathfrak{p}}\cong\mathbb{Z}_p (i↦+ιi\mapsto+\iota) and Z[i]p‾≅Zp\mathbb{Z}[i]_{\overline{\mathfrak{p}}}\cong\mathbb{Z}_p (i↦−ιi\mapsto-\iota). Thus x+iyx+iy maps to α±=x±ιy∈Zp\alpha_{\pm}=x\pm\iota y\in\mathbb{Z}_p. By Mahler’s theorem [6], T↦(Tn)T\mapsto\binom{T}{n} is continuous on Zp\mathbb{Z}_p and maps the dense set Z≥0\mathbb{Z}_{\ge0} into Z⊂Zp\mathbb{Z}\subset\mathbb{Z}_p, so (α±n)∈Zp\binom{\alpha_{\pm}}{n}\in\mathbb{Z}_p. □\square

Lemma 2.2 (Inert primes). Let p≡3(mod4)p\equiv3\pmod4 be prime and y∈Z∖{0}y\in\mathbb{Z}\setminus\{0\} with t=vp(y)≥0t=v_p(y)\ge0. For n≥1n\ge1 and x∈Zx\in\mathbb{Z},

Vp(n,t;x):=vpZ[i](∏j=0n−1(x−j+iy))=∑s=1t∣{0≤j≤n−1:ps∣(x−j)}∣.(2)V_p(n,t;x):=v_{p\mathbb{Z}[i]}\left(\prod_{j=0}^{n-1}(x-j+iy)\right)=\sum_{s=1}^{t}\left|\left\{0\le j\le n-1:p^s\mid(x-j)\right\}\right|. \tag*{(2)}

depends only on tt and x mod ptx\bmod p^t, with max⁡x∈ZVp(n,t;x)=∑s=1t⌈n/ps⌉\max_{x\in\mathbb{Z}}V_p(n,t;x)=\sum_{s=1}^{t}\lceil n/p^s\rceil (attained whenever x≡0(modpt)x\equiv0\pmod{p^t}) and min⁡x∈ZVp(n,t;x)=∑s=1t⌊n/ps⌋\min_{x\in\mathbb{Z}}V_p(n,t;x)=\sum_{s=1}^{t}\lfloor n/p^s\rfloor (attained at x≡−1(modpt)x\equiv-1\pmod{p^t}).

Proof. In Zp[i]=Zp⊕Zpi\mathbb{Z}_p[i]=\mathbb{Z}_p\oplus\mathbb{Z}_pi, vpZ[i](u+iv)=min⁡(vp(u),vp(v))v_{p\mathbb{Z}[i]}(u+iv)=\min(v_p(u),v_p(v)), so vpZ[i](x−j+iy)=min⁡(vp(x−j),t)=∑s=1t1ps∣(x−j)v_{p\mathbb{Z}[i]}(x-j+iy)=\min(v_p(x-j),t)=\sum_{s=1}^{t}\mathbf{1}_{p^s\mid(x-j)}, yielding (2). Any nn consecutive integers contain between ⌊n/ps⌋\lfloor n/p^s\rfloor and ⌈n/ps⌉\lceil n/p^s\rceil multiples of psp^s; x≡0(modpt)x\equiv0\pmod{p^t} gives ⌈(n−1)/ps⌉+1=⌈n/ps⌉\lceil(n-1)/p^s\rceil+1=\lceil n/p^s\rceil multiples in {0,…,n−1}\{0,\ldots,n-1\} for all 1≤s≤t1\le s\le t, while x≡−1(modpt)x\equiv-1\pmod{p^t} gives ⌊n/ps⌋\lfloor n/p^s\rfloor multiples in {1,…,n}\{1,\ldots,n\}. □\square

Lemma 2.3 (Ramified norm resonance). Let ϖ=1+i\varpi=1+i. For y=2ty0∈Z∖{0}y=2^t y_0\in\mathbb{Z}\setminus\{0\} (t=v2(y)≥0t=v_2(y)\ge0, y0y_0 odd) and u∈Zu\in\mathbb{Z},

v(ϖ)(u+iy)=v2(u2+y2)=2∑s=1t12s∣u+1u≡2t(mod2t+1).(3)v_{(\varpi)}(u+iy)=v_2(u^2+y^2)=2\sum_{s=1}^{t}\mathbf{1}_{2^s\mid u}+\mathbf{1}_{u\equiv2^t\pmod{2^{t+1}}}. \tag*{(3)}

Hence V(ϖ)(n,t;x):=∑j=0n−1v(ϖ)(x−j+iy)V_{(\varpi)}(n,t;x):=\sum_{j=0}^{n-1}v_{(\varpi)}(x-j+iy) depends only on tt and x mod 2t+1x\bmod2^{t+1} (independently of y0y_0), with

max⁡x∈ZV(ϖ)(n,t;x)=2∑s=1t⌈n2s⌉+⌈n2t+1⌉,(4)\max_{x\in\mathbb{Z}}V_{(\varpi)}(n,t;x)=2\sum_{s=1}^{t}\left\lceil\frac{n}{2^s}\right\rceil+\left\lceil\frac{n}{2^{t+1}}\right\rceil, \tag*{(4)}

achieved whenever x≡2t(mod2t+1)x\equiv2^t\pmod{2^{t+1}}.

Proof. Since ϖϖ‾=2\varpi\overline{\varpi}=2 and ϖ‾=−iϖ\overline{\varpi}=-i\varpi, v(ϖ)(u+iy)=v2(u2+y2)v_{(\varpi)}(u+iy)=v_2(u^2+y^2). If v2(u)=r<tv_2(u)=r<t, v2(u2+y2)=2rv_2(u^2+y^2)=2r; if v2(u)>tv_2(u)>t, v2(u2+y2)=2tv_2(u^2+y^2)=2t; if v2(u)=tv_2(u)=t, writing u=2tu0u=2^t u_0 (u0u_0 odd) gives u02+y02≡2(mod8)u_0^2+y_0^2\equiv2\pmod8, so v2(u2+y2)=2t+1v_2(u^2+y^2)=2t+1, proving (3). For x≡2t(mod2t+1)x\equiv2^t\pmod{2^{t+1}}, 2s∣(x−j)⟺2s∣j2^s\mid(x-j)\Longleftrightarrow2^s\mid j (1≤s≤t1\le s\le t) and x−j≡2t(mod2t+1)⟺2t+1∣jx-j\equiv2^t\pmod{2^{t+1}}\Longleftrightarrow2^{t+1}\mid j, attaining each upper bound simultaneously on 0≤j≤n−10\le j\le n-1. □

Theorem 2.4 (Complete resolution of OEIS A387569). For n≥1n\ge1, set

B(n):=2t2(n)∏p≤np≡3(mod4)ptp(n),(5)B(n):=2^{t_2(n)}\prod_{\substack{p\le n\\p\equiv3\pmod4}}p^{t_p(n)}, \tag*{(5)}

where t2(n)=min⁡{t≥0:2∑s=1t⌈n/2s⌉+⌈n/2t+1⌉≥2v2(n!)}t_2(n)=\min\{t\ge0:2\sum_{s=1}^{t}\lceil n/2^s\rceil+\lceil n/2^{t+1}\rceil\ge2v_2(n!)\} and tp(n)=min⁡{t≥0:∑s=1t⌈n/ps⌉≥vp(n!)}t_p(n)=\min\{t\ge0:\sum_{s=1}^{t}\lceil n/p^s\rceil\ge v_p(n!)\}. Then:

(i) For fixed n≥1n\ge1 and y∈Z∖{0}y\in\mathbb{Z}\setminus\{0\}, (x+iyn)∈Z[i]\binom{x+iy}{n}\in\mathbb{Z}[i] is periodic in x∈Zx\in\mathbb{Z} with period dividing 2∣y∣2|y|.

(ii) For any y∈Zy\in\mathbb{Z}, there exists x∈Zx\in\mathbb{Z} with (x+iyn)∈Z[i]\binom{x+iy}{n}\in\mathbb{Z}[i] if and only if B(n)∣yB(n)\mid y. In particular, A387569(n)=B(n)A387569(n)=B(n), and x=yx=y satisfies (y(1+i)n)∈Z[i]\binom{y(1+i)}{n}\in\mathbb{Z}[i] whenever B(n)∣yB(n)\mid y.

Proof. Since Z[i]=⋂pZ[i]p\mathbb{Z}[i]=\bigcap_{\mathfrak p}\mathbb{Z}[i]_{\mathfrak p} and split primes satisfy vp((x+iyn))≥0v_{\mathfrak p}\left(\binom{x+iy}{n}\right)\ge0 by Lemma 2.1 while primes p>np>n do not divide n!n!, membership (x+iyn)∈Z[i]\binom{x+iy}{n}\in\mathbb{Z}[i] (y≠0y\ne0) is equivalent to

V(ϖ)(n,v2(y);x)≥2v2(n!)andVp(n,vp(y);x)≥vp(n!)(∀p≤n, p≡3(mod4)).(6)V_{(\varpi)}(n,v_2(y);x)\ge2v_2(n!)\quad\text{and}\quad V_p(n,v_p(y);x)\ge v_p(n!)\quad(\forall p\le n,\ p\equiv3\pmod4). \tag*{(6)}

By Lemmas 2.2–2.3, these depend on xx only modulo 2v2(y)+12^{v_2(y)+1} and pvp(y)p^{v_p(y)}, whose least common multiple divides 2∣y∣2|y|, proving (i).

For (ii), y=0y=0 is trivial. For y≠0y\ne0, M2(t):=2∑s=1t⌈n/2s⌉+⌈n/2t+1⌉M_2(t):=2\sum_{s=1}^{t}\lceil n/2^s\rceil+\lceil n/2^{t+1}\rceil increases by ≥2\ge2 per step, and Mp(t):=∑s=1t⌈n/ps⌉M_p(t):=\sum_{s=1}^{t}\lceil n/p^s\rceil is strictly increasing. Necessity: If B(n)∤yB(n)\nmid y, either v2(y)<t2(n)v_2(y)<t_2(n) (max⁡xV(ϖ)=M2(v2(y))<2v2(n!)\max_x V_{(\varpi)}=M_2(v_2(y))<2v_2(n!)) or vq(y)<tq(n)v_q(y)<t_q(n) for some inert q≤nq\le n (max⁡xVq=Mq(vq(y))<vq(n!)\max_x V_q=M_q(v_q(y))<v_q(n!)), leaving (6) unsolvable. Sufficiency: If B(n)∣yB(n)\mid y, then M2(v2(y))≥2v2(n!)M_2(v_2(y))\ge2v_2(n!) (attained on x≡2v2(y)(mod2v2(y)+1)x\equiv2^{v_2(y)}\pmod{2^{v_2(y)+1}} independently of odd factors of yy) and Mp(vp(y))≥vp(n!)M_p(v_p(y))\ge v_p(n!) (attained on x≡0(modpvp(y))x\equiv0\pmod{p^{v_p(y)}}). By pairwise coprimality and the Chinese Remainder Theorem, a simultaneous solution exists; explicitly, x=y=2v2(y)yoddx=y=2^{v_2(y)}y_{\mathrm{odd}} satisfies both congruences simultaneously, giving A387569(n)=B(n)A387569(n)=B(n). □

Theorem 2.5 (Extension to imaginary quadratic Dedekind domains). Let d<0d<0 be squarefree, K=Q(d)K=\mathbb{Q}(\sqrt d), OK=Z[θ]\mathcal{O}_K=\mathbb{Z}[\theta] (θ=d\theta=\sqrt d if d≡2,3(mod4)d\equiv2,3\pmod4; θ=1+d2\theta=\frac{1+\sqrt d}{2} if d≡1(mod4)d\equiv1\pmod4), and yK(n):=min⁡{y∈Z>0:∃x∈Z with (x+yθn)∈OK}y_K(n):=\min\{y\in\mathbb{Z}_{>0}:\exists x\in\mathbb{Z}\text{ with }\binom{x+y\theta}{n}\in\mathcal{O}_K\}. Even when h(K)>1h(K)>1 (non-UFD), no rational prime pp splitting completely as pOK=pp‾p\mathcal{O}_K=\mathfrak p\overline{\mathfrak p} (p≠p‾\mathfrak p\ne\overline{\mathfrak p}) ever divides yK(n)y_K(n).

nnA387569(n)A387569(n)nnA387569(n)A387569(n)nnA387569(n)A387569(n)
242,422,7283375,104,5684275,104,568
251,211,3643475,104,568433,229,496,424
262,422,7283575,104,568446,458,992,848
273,634,09236450,627,408459,688,489,272
282,422,7283775,104,568463,229,496,424
291,211,3643875,104,56847151,786,331,928
302,422,7283975,104,56848303,572,663,856
3137,552,28440150,209,136491,062,504,323,496
32300,418,2724175,104,56850151,786,331,928

Table 1. Exact values of A387569(n)A387569(n) for 24≤n≤5024 \le n \le50 from (5).

Proof. At any split prime pp (pOK=pp‾p\mathcal O_K=\mathfrak p\overline{\mathfrak p}), OK,p\mathcal O_{K,\mathfrak p} is a DVR with e(p/p)=f(p/p)=1e(\mathfrak p/p)=f(\mathfrak p/p)=1, so O^K,p≅Zp\widehat{\mathcal O}_{K,\mathfrak p}\cong\mathbb Z_p via Hensel lifting; Mahler’s theorem gives x+yθn∈O^K,p∩K=OK,p\frac{x+y\theta}{n}\in\widehat{\mathcal O}_{K,\mathfrak p}\cap K=\mathcal O_{K,\mathfrak p} for all x,y∈Zx,y\in\mathbb Z.

Suppose a split prime pp divides y:=yK(n)y:=y_K(n), set y′:=y/p∈Z>0y':=y/p\in\mathbb Z_{>0}, and fix x0∈Zx_0\in\mathbb Z with x0+yθn∈OK\frac{x_0+y\theta}{n}\in\mathcal O_K. For each non-split rational prime q≤nq\le n (q≠pq\ne p, vq(y′)=vq(y)v_q(y')=v_q(y)), let Q\mathfrak Q be the unique prime ideal above qq and set Nq:=qvq(n!)+1N_q:=q^{v_q(n!)+1}. We find xq′∈Zx'_q\in\mathbb Z preserving vQ(xq′+y′θn)≥0v_{\mathfrak Q}\left(\frac{x'_q+y'\theta}{n}\right)\ge0:

  1. qq inert: {1,θ}\{1,\theta\} is an integral Zq\mathbb Z_q-basis of OK,Q=Zq[θ]\mathcal O_{K,\mathfrak Q}=\mathbb Z_q[\theta], so vQ(u+vθ)=min⁡(vq(u),vq(v))v_{\mathfrak Q}(u+v\theta)=\min(v_q(u),v_q(v)); since vq(y′)=vq(y)v_q(y')=v_q(y), xq′:=x0x'_q:=x_0 works.

  1. qq odd and ramified (q∣dq\mid d): If d≡2,3(mod4)d\equiv2,3\pmod4 (θ=d\theta=\sqrt d), vQ(u+vθ)=min⁡(2vq(u),2vq(v)+1)v_{\mathfrak Q}(u+v\theta)=\min(2v_q(u),2v_q(v)+1), so xq′:=x0x'_q:=x_0 works. If d≡1(mod4)d\equiv1\pmod4 (θ=1+d2\theta=\frac{1+\sqrt d}{2}), 2∈Zq×2\in\mathbb Z_q^\times and 2(x−j+vθ)=(2x+v−2j)+vd2(x-j+v\theta)=(2x+v-2j)+v\sqrt d, giving vQ(x−j+vθ)=min⁡(2vq(2x+v−2j),2vq(v)+1)v_{\mathfrak Q}(x-j+v\theta)=\min(2v_q(2x+v-2j),2v_q(v)+1). Choosing xq′∈Zx'_q\in\mathbb Z with 2xq′+y′≡2x0+y(modNq)2x'_q+y'\equiv2x_0+y\pmod{N_q} (gcd⁡(2,q)=1\gcd(2,q)=1) preserves min⁡(vQ(⋅),2vq(n!)+2)\min(v_{\mathfrak Q}(\cdot),2v_q(n!)+2) on every factor, hence preserves vQ(xq′+y′θn)≥0v_{\mathfrak Q}\left(\frac{x'_q+y'\theta}{n}\right)\ge0.

  1. q=2q=2 ramified (d≡2,3(mod4)d\equiv2,3\pmod4, θ=d\theta=\sqrt d): Here vQ2(u+vd)=v2(u2−dv2)v_{\mathfrak Q_2}(u+v\sqrt d)=v_2(u^2-dv^2). If d≡2(mod4)d\equiv2\pmod4, parity gives min⁡(2v2(u),2v2(v)+1)\min(2v_2(u),2v_2(v)+1). If d≡3(mod4)d\equiv3\pmod4 and v=2tv0v=2^t v_0 (v0v_0 odd), then v2(u)≠tv_2(u)\ne t gives v2(u2−dv2)=2min⁡(v2(u),t)v_2(u^2-dv^2)=2\min(v_2(u),t), whereas v2(u)=tv_2(u)=t (u=2tu0u=2^t u_0, u0u_0 odd) gives u02−dv02≡1−d≡2(mod4)u_0^2-dv_0^2\equiv1-d\equiv2\pmod4 and v2(u2−dv2)=2t+1v_2(u^2-dv^2)=2t+1 independently of v0v_0; thus xq′:=x0x'_q:=x_0 works.

Since local integrality at q≤nq\le n depends on xx only modulo Nq=qvq(n!)+1N_q=q^{v_q(n!)+1} and {Nq}q≤n non-split\{N_q\}_{q\le n\text{ non-split}} are pairwise coprime, CRT yields x′∈Zx'\in\mathbb Z with x′≡xq′(modNq)x'\equiv x'_q\pmod{N_q} for all non-split q≤nq\le n, giving x′+y′θn∈⋂pOK,p=OK\frac{x'+y'\theta}{n}\in\bigcap_{\mathfrak p}\mathcal O_{K,\mathfrak p}=\mathcal O_K and contradicting y′<yK(n)y'<y_K(n). □

Remark 2.6 (Failure of 2y2y-periodicity in general OK\mathcal O_K and explicit universal period bound). Unlike Theorem 2.4(i) for Z[i]\mathbb Z[i], the period in xx need not divide 2∣y∣2|y| in general: in K=Q(−3)K=\mathbb Q(\sqrt{-3}) (θ=1+−32\theta=\frac{1+\sqrt{-3}}{2}) at n=4n=4, y=4y=4 (2y=82y=8), −10+4θ4=9311463−14631463θ∉OK\frac{-10+4\theta}{4}=\frac{931}{1463}-\frac{1463}{1463}\theta\notin\mathcal O_K whereas −2+4θ4=−5+11θ∈OK\frac{-2+4\theta}{4}=-5+11\theta\in\mathcal O_K, despite −10≡−2(mod8)-10\equiv-2\pmod8. Instead, for every OK\mathcal O_K and y∈Zy\in\mathbb Z, integrality is periodic across all x∈Zx\in\mathbb Z with period dividing PK(n):=∏q≤n, q non-splitqqvq(n!)P_K(n):=\prod_{q\le n,\ q\ \mathrm{non\text{-}split}}q^{q^{v_q(n!)}}. Indeed, for z=x+yθz=x+y\theta and P=PK(n)P=P_K(n), Chu–Vandermonde gives (z+Pn)−(zn)=∑m=1n(zn−m)(Pm)\binom{z+P}{n}-\binom zn=\sum_{m=1}^{n}\binom{z}{n-m}\binom Pm. Each term (1≤m≤n1\le m\le n) is locally integral at split primes (as in Theorem 2.5) and at all primes >n>n (which do not divide (n−m)!(n-m)!), since (Pm)∈Z\binom Pm\in\mathbb Z. At each non-split prime q≤nq\le n (Q∣q\mathfrak Q\mid q, e=e(Q/q)∈{1,2}e=e(\mathfrak Q/q)\in\{1,2\}), vq(P)=vq(n!)≥⌈log⁡qn⌉≥vq(j)v_q(P)=v_q(n!)\ge\lceil\log_q n\rceil\ge v_q(j) for 1≤j<m≤n1\le j<m\le n gives vq(P−j)≥vq(j)v_q(P-j)\ge v_q(j) and vq((Pm))≥vq(n!)−vq(m)≥vq((n−m)!)v_q\left(\binom Pm\right)\ge v_q(n!)-v_q(m)\ge v_q((n-m)!) (as (nm)∈Z\binom nm\in\mathbb Z), while z−j∈OK,Qz-j\in\mathcal O_{K,\mathfrak Q} implies vQ((zn−m))≥−e vq((n−m)!)v_{\mathfrak Q}\left(\binom z{n-m}\right)\ge-e\,v_q((n-m)!); thus vQ((zn−m)(Pm))≥0v_{\mathfrak Q}\left(\binom z{n-m}\binom Pm\right)\ge0 for all 1≤m≤n1\le m\le n, so (z+Pn)−(zn)∈OK\binom{z+P}{n}-\binom zn\in\mathcal O_K. Full-period CRT verification (Appendix A) confirms (yQ(−5)(n))n=112=(1,2,1,4,10,2,2,8,4,20,220,220)(y_{\mathbb Q(\sqrt{-5})}(n))_{n=1}^{12}=(1,2,1,4,10,2,2,8,4,20,220,220) in Z[−5]\mathbb Z[\sqrt{-5}] (h=2h=2).

Universal Integrality and Disproof of the Conjecture in OEIS A392059

Lemma 3.1 (Chu–Vandermonde reduction). For any additive subgroup I⊂Q(i)I \subset\mathbb{Q}(i), n≥1n \ge1, and k∈Zk \in\mathbb{Z}, (x+kin)−(xn)∈I\binom{x+ki}{n}-\binom{x}{n} \in I holds for all x∈Zx \in\mathbb{Z} if and only if (kim)∈I\binom{ki}{m} \in I for every 1≤m≤n1 \le m \le n.

Proof. Writing g(x):=(x+kin)−(xn)=∑m=1n(xn−m)(kim)g(x) := \binom{x+ki}{n}-\binom{x}{n} = \sum_{m=1}^{n}\binom{x}{n-m}\binom{ki}{m} under § 1.1, (xn−m)∈Z\binom{x}{n-m} \in\mathbb{Z} for all x∈Zx \in\mathbb{Z} gives sufficiency; conversely, iterated forward differences satisfy (Δdg)(0)=(kin−d)∈I(\Delta^d g)(0)=\binom{ki}{n-d}\in I for 0≤d≤n−10\le d\le n-1. □

Theorem 3.2 (Characterization and correction of OEIS A392059). Let A392059(n)A392059(n) be given by (1) for n≥1n\ge1, and τ(n):=⌊log⁡2n⌋\tau(n):=\lfloor\log_2 n\rfloor. Under § 1.1:

(i) For k∈Z>0k\in\mathbb{Z}_{>0}, (x+kin)∈Z[i]\binom{x+ki}{n}\in\mathbb{Z}[i] for all x∈Zx\in\mathbb{Z} if and only if A392059(n)∣kA392059(n)\mid k.

(ii) For k=A392059(n)k=A392059(n), every 0≤c≤n0\le c\le n, and every x∈Zx\in\mathbb{Z} (including x<0x<0 and x+2τ(n)<cx+2^{\tau(n)}<c),

(x+A392059(n)ic)≡(xc)+(xc−2τ(n))≡(x+2τ(n)c)(mod1+i).(7)\binom{x+A392059(n)i}{c}\equiv\binom{x}{c}+\binom{x}{c-2^{\tau(n)}}\equiv\binom{x+2^{\tau(n)}}{c}\pmod{1+i}. \tag*{(7)}

(iii) For every n≥1n\ge1, k=A392059(n)k=A392059(n) and x∗(n)=n−2τ(n)x^*(n)=n-2^{\tau(n)} give (x∗(n)+kin)−(x∗(n)n)≡1≠0(mod1+i)\binom{x^*(n)+ki}{n}-\binom{x^*(n)}{n}\equiv1\ne0\pmod{1+i}, disproving the conjecture in OEIS A392059 for all n≥1n\ge1.

(iv) For every n≥1n\ge1, the minimal k≥1k\ge1 with (x+kin)∈Z[i]\binom{x+ki}{n}\in\mathbb{Z}[i] and (x+kin)≡(xn)(mod1+i)\binom{x+ki}{n}\equiv\binom{x}{n}\pmod{1+i} for all x∈Zx\in\mathbb{Z} is 2⋅A392059(n)2\cdot A392059(n).

Proof. By Lemma 3.1 (I=Z[i]I=\mathbb{Z}[i]) and Lemma 2.1, universal integrality holds iff (kim)\binom{ki}{m} is locally integral at p=2p=2 and odd inert p≤np\le n for all 1≤m≤n1\le m\le n. For inert p≡3(mod4)p\equiv3\pmod4 and t=vp(k)t=v_p(k), vpZ[i]((kim))=t+∑j=1m−1min⁡(vp(j),t)−vp(m!)v_{p\mathbb{Z}[i]}(\binom{ki}{m})=t+\sum_{j=1}^{m-1}\min(v_p(j),t)-v_p(m!), which is t−vp(m)≥0t-v_p(m)\ge0 for 1≤m≤n1\le m\le n when t≥⌊log⁡pn⌋t\ge\lfloor\log_p n\rfloor, and −1-1 at m=pt+1≤nm=p^{t+1}\le n when t<⌊log⁡pn⌋t<\lfloor\log_p n\rfloor. At p=2p=2 (t=v2(k)t=v_2(k)), v(ϖ)((kim))=∑j=0m−1v2(j2+k2)−2v2(m!)v_{(\varpi)}(\binom{ki}{m})=\sum_{j=0}^{m-1}v_2(j^2+k^2)-2v_2(m!):

  • If t≥τ(n)+1t\ge\tau(n)+1 (2t>n2^t>n), v2(j)<tv_2(j)<t for 1≤j<m1\le j<m, giving 2(t−v2(m))≥22(t-v_2(m))\ge2 for all 1≤m≤n1\le m\le n.

  • If t=τ(n)t=\tau(n), 1≤m≤2t1\le m\le2^t gives 2(t−v2(m))2(t-v_2(m)) (≥2\ge2 for m<2tm<2^t, and 00 at m=2tm=2^t); for m=2t+sm=2^t+s (1≤s<2t1\le s<2^t), j=2tj=2^t contributes 2t+12t+1 by Lemma 2.3, giving v(ϖ)((kim))=2(t−v2(s))+1≥3v_{(\varpi)}(\binom{ki}{m})=2(t-v_2(s))+1\ge3.

  • If t<τ(n)t<\tau(n), setting m=2t+1≤nm=2^{t+1}\le n gives numerator valuation 2t+(2t+1)+4v2((2t−1)!)=2t+2−32t+(2t+1)+4v_2((2^t-1)!)=2^{t+2}-3 and denominator valuation 2v2((2t+1)!)=2t+2−22v_2((2^{t+1})!)=2^{t+2}-2 (via v2((2r)!)=2r−1v_2((2^r)!)=2^r-1), hence (2t+2−3)−(2t+2−2)=−1<0(2^{t+2}-3)-(2^{t+2}-2)=-1<0.

This proves (i). When k=A392059(n)k=A392059(n) (t=τ(n)t=\tau(n)), (kim)≡δm,2τ(n)(modϖ)\binom{ki}{m}\equiv\delta_{m,2^{\tau(n)}}\pmod{\varpi} for 1≤m≤n1\le m\le n. Reducing (x+kic)=∑m=0c(xc−m)(kim)\binom{x+ki}{c}=\sum_{m=0}^c\binom{x}{c-m}\binom{ki}{m} modulo (ϖ)(\varpi) gives (xc)+(xc−2τ(n))\binom{x}{c}+\binom{x}{c-2^{\tau(n)}}. In Z[[T]]\mathbb{Z}[[T]], (1+T)x=∑d=0∞(xd)Td(1+T)^x=\sum_{d=0}^{\infty}\binom{x}{d}T^d holds for all x∈Zx\in\mathbb{Z}; reducing modulo 22 in F2[[T]]\mathbb{F}_2[[T]] gives (1+T)x(1+T)2τ(n)=(1+T)x(1+T2τ(n))(1+T)^x(1+T)^{2^{\tau(n)}}=(1+T)^x(1+T^{2^{\tau(n)}}), equating coefficients of TcT^c to prove (7). Setting c=nc=n and x∗(n)=n−2τ(n)x^*(n)=n-2^{\tau(n)} gives (nn)−(x∗(n)n)=1\binom{n}{n}-\binom{x^*(n)}{n}=1, proving (iii); requiring v(ϖ)((ki2τ(n)))≥1v_{(\varpi)}(\binom{ki}{2^{\tau(n)}})\ge1 forces v2(k)≥τ(n)+1v_2(k)\ge\tau(n)+1, proving (iv). □

Self-Contained Transfer-Operator Theory for Separated Permutations

Let Gn,kG_{n,k} be the graph on [2n+k][2n+k] with edges {x,y}\{x,y\} for ∣x−y∣>n|x-y|>n; ak(n)a_k(n) is twice the number of undirected Hamiltonian paths in Gn,kG_{n,k}.

Proposition 4.1 (Half-graph decomposition). For n≥k−1n\ge k-1 and m:=n−k+1≥0m:=n-k+1\ge0, partition [2n+k][2n+k] into five disjoint sets:

UL={1,…,k−1},Ubulk={u~1,…,u~m},C={c1,…,ck},U_L=\{1,\ldots,k-1\},\quad U_{\mathrm{bulk}}=\{\tilde{u}_1,\ldots,\tilde{u}_m\},\quad C=\{c_1,\ldots,c_k\},
Vbulk={v~1,…,v~m},VR={w1,…,wk−1},V_{\mathrm{bulk}}=\{\tilde{v}_1,\ldots,\tilde{v}_m\},\quad V_R=\{w_1,\ldots,w_{k-1}\},

with u~t=k−1+t\tilde{u}_t=k-1+t, cr=n+rc_r=n+r, v~t=n+k+t\tilde{v}_t=n+k+t, wj=2n+1+jw_j=2n+1+j. Set U:=UL∪UbulkU:=U_L\cup U_{\mathrm{bulk}} and V:=Vbulk∪VRV:=V_{\mathrm{bulk}}\cup V_R. Then UU, VV, and CC are independent sets in Gn,kG_{n,k}; no edge joins CC to Ubulk∪VbulkU_{\mathrm{bulk}}\cup V_{\mathrm{bulk}},

whereas between CC and UL∪VRU_L \cup V_R, cr∼u∈UL⟺u≤r−1c_r \sim u \in U_L \Longleftrightarrow u \le r-1 and cr∼wj∈VR⟺j≥rc_r \sim w_j \in V_R \Longleftrightarrow j \ge r; furthermore, UL×V⊂E(Gn,k)U_L \times V \subset E(G_{n,k}), U×VR⊂E(Gn,k)U \times V_R \subset E(G_{n,k}), and u~t∼v~t′⟺t≤t′\widetilde{u}_t \sim\widetilde{v}_{t'} \Longleftrightarrow t \le t'.

Proof. Internal differences in U,VU,V are ≤n−1\le n-1 and in CC are ≤k−1≤n\le k-1 \le n. For cr=n+rc_r=n+r, (n+r)−x>n⟺x≤r−1(n+r)-x>n \Longleftrightarrow x\le r-1 (x∈ULx\in U_L), and (n+k+s)−(n+r)>n⟺s≥m+r(n+k+s)-(n+r)>n \Longleftrightarrow s\ge m+r (vs=wj∈VRv_s=w_j\in V_R with j≥rj\ge r). For ui=i∈Uu_i=i\in U and vs=n+k+s∈Vv_s=n+k+s\in V, (n+k+s)−i>n⟺i−s≤k−1(n+k+s)-i>n \Longleftrightarrow i-s\le k-1, which holds if i≤k−1i\le k-1 or s≥m+1s\ge m+1, and gives t≤t′t\le t' for i=k−1+t,s=t′i=k-1+t,s=t'.

Every undirected Hamiltonian path PP of Gn,kG_{n,k} (n≥k−1n\ge k-1) has two degree-1 global endpoints partitioned across (C∪UL)⊔(Ubulk∪Vbulk)⊔VR(C\cup U_L)\sqcup(U_{\mathrm{bulk}}\cup V_{\mathrm{bulk}})\sqcup V_R, built uniquely in three stages: Stage 1 selects all edges of PP incident to CC (into UL∪VRU_L\cup V_R) and designates whichever global endpoints (0, 1, or 2) lie in C∪ULC\cup U_L; Stage 2 processes (u~t,v~t)(\widetilde{u}_t,\widetilde{v}_t) for t=1,…,mt=1,\ldots,m, adding u~t\widetilde{u}_t to the active UU-pool, saturating v~t\widetilde{v}_t, and designating any global endpoints in Ubulk∪VbulkU_{\mathrm{bulk}}\cup V_{\mathrm{bulk}}; Stage 3 designates any remaining global endpoints on VRV_R, saturates VRV_R against the surviving active UU-pool, and multiplies by 2.

Lemma 4.2 (Intertwining quotient). For an active UU-pool with qq untouched vertices, mpairm_{\mathrm{pair}} twin-paired UU-to-UU segments, and ff boundary-tethered ends (CU:=q+mpairC_U:=q+m_{\mathrm{pair}}), the internal bulk block MCU,fM_{C_U,f} on q∈{0,…,CU}q\in\{0,\ldots,C_U\} satisfies yTMCU,f=(CU+1)(CU+f)yT\mathbf{y}^{\mathsf{T}}M_{C_U,f}=(C_U+1)(C_U+f)\mathbf{y}^{\mathsf{T}} for yT=(2CU−q)q=0CU\mathbf{y}^{\mathsf{T}}=(2^{C_U-q})_{q=0}^{C_U}. Moreover, all bulk and Stage 3 operators intertwine Π(q,mpair)=2mpair\Pi(q,m_{\mathrm{pair}})=2^{m_{\mathrm{pair}}}, collapsing (q,mpair)(q,m_{\mathrm{pair}}) onto CUC_U.

Proof. After u~t\widetilde{u}_t sends q↦q+1q\mapsto q+1, Π\Pi-weighted transitions from (q,mpair)(q,m_{\mathrm{pair}}) sum to 2q+1+(q+1)(2mpair+f)+mpair(mpair+f−1)=(CU+1)(CU+f)2^{q+1}+(q+1)(2m_{\mathrm{pair}}+f)+m_{\mathrm{pair}}(m_{\mathrm{pair}}+f-1)=(C_U+1)(C_U+f), independent of mpairm_{\mathrm{pair}}. Similarly, single-slot and pair-slot extractions without u~t\widetilde{u}_t yield q+mpair=CUq+m_{\mathrm{pair}}=C_U and q(q−1)+q(2mpair+f)+mpair(mpair+f−1)=CU(CU+f−1)q(q-1)+q(2m_{\mathrm{pair}}+f)+m_{\mathrm{pair}}(m_{\mathrm{pair}}+f-1)=C_U(C_U+f-1), with terminal weight 20=12^0=1 at CU=0C_U=0.

Definition 4.3 (Quotiented state tuple). A non-closed cut configuration is given by s=(CU,bUV,eU,qVR,mVRVR,eVR,etot)∈Z≥07s=(C_U,b_{UV},e_U,q_{V_R},m_{V_RV_R},e_{V_R},e_{\mathrm{tot}})\in\mathbb{Z}_{\ge0}^7 (plus terminal state CLOSED when VRV_R is pre-saturated in Stage 1), where CU=q+mpairC_U=q+m_{\mathrm{pair}} is the Π\Pi-quotiented UU-capacity; bUVb_{UV} counts UU-to-VRV_R bridges; eU∈{0,1,2}e_U\in\{0,1,2\} counts UU-to-endpoint segments; qVRq_{V_R} counts untouched VRV_R-vertices; mVRVRm_{V_RV_R} counts VRV_R-to-VRV_R arches; eVR∈{0,1,2}e_{V_R}\in\{0,1,2\} counts VRV_R-to-endpoint segments; and etot∈{0,1,2}e_{\mathrm{tot}}\in\{0,1,2\} counts placed global endpoints.

Lemma 4.4 (Degree-balance invariant and finiteness). Setting HU(s):=2CU+bUV+eUH_U(s):=2C_U+b_{UV}+e_U and HVmax⁡(s):=2qVR+2mVRVR+bUV+eVRH_V^{\max}(s):=2q_{V_R}+2m_{V_RV_R}+b_{UV}+e_{V_R}, any completable state satisfies

∣HU(s)−HVmax⁡(s)∣≤2−etotandHU(s)−HVmax⁡(s)≡2−etot(mod2).(8)\left|H_U(s)-H_V^{\max}(s)\right|\le2-e_{\mathrm{tot}} \qquad\text{and}\qquad H_U(s)-H_V^{\max}(s)\equiv2-e_{\mathrm{tot}}\pmod{2}. \tag*{(8)}

Hence the reachable state set Vreach(k)\mathcal{V}_{\mathrm{reach}}(k) is finite for every $k\ge2.

Proof. If rU,rv~,rVR>0r_U,r_{\widetilde{v}},r_{V_R}>0 (rU+rv~+rVR=rrem:=2−etotr_U+r_{\widetilde{v}}+r_{V_R}=r_{\mathrm{rem}}:=2-e_{\mathrm{tot}}) denote remaining endpoints placed on future u~\widetilde{u}, future v~\widetilde{v}, and VRV_R, Stage 3 degree equality requires HU(s)−rU+rv~=HVmax⁡(s)−rVRH_U(s)-r_U+r_{\widetilde{v}}=H_V^{\max}(s)-r_{V_R}, so HU(s)−HVmax⁡(s)=2rU−rremH_U(s)-H_V^{\max}(s)=2r_U-r_{\mathrm{rem}}, yielding (8). Since qVR+2mVRVR+bUV+eVR≤k−1q_{V_R}+2m_{V_RV_R}+b_{UV}+e_{V_R}\le k-1, (8) bounds all coordinates of ss.

Lemma 4.5 (Exactness of Stage 1 staircase contraction and orbit double-counting). Process c1,…,ckc_1,\ldots,c_k across r=1,…,kr=1,\ldots,k. At step rr, define the active left pool Ua(r):={u1,…,ur−1}U_a^{(r)}:=\{u_1,\ldots,u_{r-1}\} (ur−1u_{r-1} entering before crc_r for r≥2r\ge2, untouched or as a global endpoint), the active right pool Va(r):={wr,…,wk−1}V_a^{(r)}:=\{w_r,\ldots,w_{k-1}\} of size NVa:=k−rN_{V_a}:=k-r, and the frozen pool Vf(r−1):={w1,…,wr−1}V_f^{(r-1)}:=\{w_1,\ldots,w_{r-1}\}. Classify each labeled partial forest FF after crc_r by the 13-tuple

s~=(qU,qVa,qVf,mUU,bUVa,bUVf,eU,mVaVa,bVaVf,eVa,mVfVf,eVf,etot)∈Z≥013\widetilde{s}=(q_U,q_{V_a},q_{V_f},m_{UU},b_{UV_a},b_{UV_f},e_U,m_{V_aV_a},b_{V_aV_f},e_{V_a},m_{V_fV_f},e_{V_f},e_{\mathrm{tot}})\in\mathbb{Z}_{\ge0}^{13}

*where (qU,qVa,qVf)(q_U,q_{V_a},q_{V_f}) count degree-0 vertices in (Ua(r),Va(r),Vf(r−1))(U_a^{(r)},V_a^{(r)},V_f^{(r-1)}), the next nine coordinates count open paths by the unordered pool-pair of their two ends in {Ua(r),Va(r),Vf(r−1),E}\{U_a^{(r)},V_a^{(r)},V_f^{(r-1)},E\} (E,EE,E forbidden), and etot∈{0,1,2}e_{\mathrm{tot}}\in\{0,1,2\}. Let Wr(s~):=∣Fr(s~)∣W_r(\widetilde{s}):=|\mathcal{F}_r(\widetilde{s})| be the number of labeled forests in class s~\widetilde{s} after crc_r. Then:

(a) For 1≤r≤k−11 \le r \le k-1, moving wrw_r from Va(r)V_a^{(r)} into Vf(r)V_f^{(r)} partitions Fr(s~)\mathcal{F}_r(\widetilde{s}) by the role RR of wrw_r among six disjoint roles (saturated degree-2, counted by sVa:=NVa−qVa−(bUVa+2mVaVa+bVaVf+eVa)s_{V_a}:=N_{V_a}-q_{V_a}-(b_{UV_a}+2m_{V_aV_a}+b_{V_aV_f}+e_{V_a}), or role counts cR(s~)∈{qVa,bUVa,2mVaVa,bVaVf,eVa}c_R(\widetilde{s})\in\{q_{V_a},b_{UV_a},2m_{V_aV_a},b_{V_aV_f},e_{V_a}\}). For every s~\widetilde{s} and RR, NVaN_{V_a} divides Wr(s~)⋅cR(s~)W_r(\widetilde{s})\cdot c_R(\widetilde{s}) in Z\mathbb{Z}, and the exact labeled count with wrw_r in role RR is Wr(s~)⋅cR(s~)/NVa∈Z≥0W_r(\widetilde{s})\cdot c_R(\widetilde{s})/N_{V_a}\in\mathbb{Z}_{\ge0}.

(b) At r=kr=k, NVa=0N_{V_a}=0, so (qVa,bUVa,mVaVa,bVaVf,eVa)=(0,0,0,0,0)(q_{V_a},b_{UV_a},m_{V_aV_a},b_{V_aV_f},e_{V_a})=(0,0,0,0,0), and Π(qU,mUU)=2mUU\Pi(q_U,m_{UU})=2^{m_{UU}} projects (Wk(s~))(W_k(\widetilde{s})) losslessly onto the Stage 1 initial vector u0u_0 on Definition 4.3.

Proof. Let HrH_r denote the Stage 1 processed prefix graph at step rr on vertex set U(r)⊔{c1,…,cr}⊔Vf(r−1)⊔Va(r)U^{(r)}\sqcup\{c_1,\ldots,c_r\}\sqcup V_f^{(r-1)}\sqcup V_a^{(r)}, whose edges are the Stage 1 incidences {{cs,ui}:1≤i<s≤r}∪{{cs,wj}:1≤s≤r, s≤j≤k−1}\{\{c_s,u_i\}:1\le i<s\le r\}\cup\{\{c_s,w_j\}:1\le s\le r,\ s\le j\le k-1\}. By Proposition 4.1, Va(r)={wr,…,wk−1}V_a^{(r)}=\{w_r,\ldots,w_{k-1}\} is an independent set, every u∈U(r)u\in U^{(r)} and every processed csc_s (1≤s≤r1\le s\le r) is adjacent in Gn,kG_{n,k} to every w∈Va(r)w\in V_a^{(r)}, and every w∈Va(r)w\in V_a^{(r)} has the identical neighborhood {c1,…,cr}\{c_1,\ldots,c_r\} in HrH_r. Extending each permutation in S(Va(r))≅SNVa\mathfrak{S}(V_a^{(r)})\cong S_{N_{V_a}} by the identity outside Va(r)V_a^{(r)} therefore yields graph automorphisms of the processed prefix graph HrH_r (though not of Gn,kG_{n,k} for r<kr<k, since future cr+1c_{r+1} is non-adjacent to wrw_r), preserving Fr(s~)\mathcal{F}_r(\widetilde{s}). Counting pairs (F,w)∈Fr(s~)×Va(r)(F,w)\in\mathcal{F}_r(\widetilde{s})\times V_a^{(r)} where ww has role RR in FF gives Wr(s~)⋅cR(s~)W_r(\widetilde{s})\cdot c_R(\widetilde{s}) summing over FF first, and NVa⋅∣{F∈Fr(s~):wr has role R}∣N_{V_a}\cdot|\{F\in\mathcal{F}_r(\widetilde{s}):w_r\text{ has role }R\}| by transitivity of S(Va(r))\mathfrak{S}(V_a^{(r)}) summing over ww first, proving (a). At r=kr=k, Va(k)=∅V_a^{(k)}=\varnothing forces all five VaV_a-coordinates to vanish and Vf(k−1)=VRV_f^{(k-1)}=V_R, mapping via Lemma 4.2 directly onto Definition 4.3.

Proposition 4.6 (Bijective exactness of Stage 2–3 transition multiplicities). Every undirected Hamiltonian path PP of Gn,kG_{n,k} (n≥k−1n\ge k-1) corresponds to a unique trajectory of labeled partial forests across Stages 1–3 without double-counting, and Lemma 4.5 yields ak(n)=⟨wclose,Tn−k+1u0⟩a_k(n)=\langle\mathbf{w}_{\mathrm{close}},T^{n-k+1}\mathbf{u}_0\rangle with exact rules on s=(C,b,e,qV,mV,eV,etot)s=(C,b,e,q_V,m_V,e_V,e_{\mathrm{tot}}) (vrem:=qV+2mV+b+eVv_{\mathrm{rem}}:=q_V+2m_V+b+e_V):

  1. u~\widetilde{u}-insertion Tu~T_{\widetilde{u}}: u~t\widetilde{u}_t enters as internal (C↦C+1C\mapsto C+1, wt 1) or, if etot<2e_{\mathrm{tot}}<2, as endpoint (e↦e+1e\mapsto e+1, etot↦etot+1e_{\mathrm{tot}}\mapsto e_{\mathrm{tot}}+1, wt 1).

  1. v~\widetilde{v}-saturation Tv~T_{\widetilde{v}}: Complete bipartiteness makes valid completions invariant under Sq×(S2≀Smpair)×Sb×SqV×(S2≀SmV)S_q\times(S_2\wr S_{m_{\mathrm{pair}}})\times S_b\times S_{q_V}\times(S_2\wr S_{m_V}). Cycle-freeness forbids joining twin ends of an mpairm_{\mathrm{pair}}-arch, picking an untouched UU-vertex twice, or joining two ee-ends unless vrem=0v_{\mathrm{rem}}=0. Applying Π(q,mpair)=2mpair\Pi(q,m_{\mathrm{pair}})=2^{m_{\mathrm{pair}}} from Lemma 4.2:

  • Endpoint v~t\widetilde{v}_t (etot<2e_{\mathrm{tot}}<2) picks 1 UU-slot: from (q,mpair)(q,m_{\mathrm{pair}}) in q+2mpair⋅12=Cq+2m_{\mathrm{pair}}\cdot\frac{1}{2}=C ways →(C−1,b,e+1,…,etot+1)\to(C-1,b,e+1,\ldots,e_{\mathrm{tot}}+1); from bb bridges in bb ways →(C,b−1,e,…,eV+1,etot+1)\to(C,b-1,e,\ldots,e_V+1,e_{\mathrm{tot}}+1); or (0,0,1,0,0,1)→CLOSED(0,0,1,0,0,1)\to\mathrm{CLOSED} (wt 1).

  • Internal v~t\widetilde{v}_t picks 2 UU-slots: both from (q,mpair)(q,m_{\mathrm{pair}}) in 2(q2)+2mpairq+mpair(mpair−1)=C(C−1)2\binom{q}{2}+2m_{\mathrm{pair}}q+m_{\mathrm{pair}}(m_{\mathrm{pair}}-1)=C(C-1) ways or one from (q,mpair)(q,m_{\mathrm{pair}}) and one from b+eb+e in (q+mpair)(b+e)=C(b+e)(q+m_{\mathrm{pair}})(b+e)=C(b+e) ways, giving C(C−1+b+e)C(C-1+b+e) ways →(C−1,b,e,…)\to(C-1,b,e,\ldots); two bridges in (b2)\binom{b}{2} ways →(C,b−2,e,qV,mV,eV+1,…)\to(C,b-2,e,q_V,m_V,e_V+1,\ldots); one bridge and one ee-end in bebe ways →(C,b−1,e−1,qV,mV,eV+1,…)\to(C,b-1,e-1,q_V,m_V,e_V+1,\ldots); or (0,0,2,0,0,0,2)→CLOSED(0,0,2,0,0,0,2)\to\mathrm{CLOSED} (wt 1).

  1. Stage 3 closure wclose\mathbf{w}_{\mathrm{close}}: Saturating open vertices of VRV_R in canonical order avoids double-counting: qV↦qV−1q_V\mapsto q_V-1 applies Tv~T_{\widetilde{v}}; eV↦eV−1e_V\mapsto e_V-1 consumes 1 UU-slot (CC or bb ways, or closes at vrem=1v_{\mathrm{rem}}=1); the first end of mV↦mV−1m_V\mapsto m_V-1 turns its partner into eVe_V (endpoint: 1 way; joined to ee: ee ways), bb (CC ways), or mVm_V (bb ways); and b↦b−1b\mapsto b-1 becomes ee (1 or ee ways), joins another bridge (b−1b-1 ways, avoiding its own UU-end), or joins (q,mpair)(q,m_{\mathrm{pair}}) in 2q+2mpair=2C2q+2m_{\mathrm{pair}}=2C ways, multiplying closed spanning paths by 2.

Proof. Each spanning path P⊂Gn,kP\subset G_{n,k} restricts uniquely to every prefix; PP is a Hamiltonian path iff degrees are 2 (except 2 endpoints of degree 1), no step closes a cycle, and the final edge joins the two endpoint components. Lemma 4.5, items (1)–(3), and Lemma 4.2 partition all valid local selections bijectively.

Example 4.7 (Worked 12-state system for k=3k=3, A129534). For k=3k=3 (n≥2n \ge2), Vreach(3)\mathcal{V}_{\mathrm{reach}}(3) has D3=12D_3=12 states: s0=(0,0,0,0,0,1,1)s_0=(0,0,0,0,0,1,1) [u0=1u_0=1, w=2w=2], s1=(0,0,1,0,0,1,2)s_1=(0,0,1,0,0,1,2) [4, 2], s2=(0,0,1,0,1,0,1)s_2=(0,0,1,0,1,0,1) [1, 4], s3=(0,0,1,1,0,0,1)s_3=(0,0,1,1,0,0,1) [1, 2], s4=(0,0,2,0,1,0,2)s_4=(0,0,2,0,1,0,2) [1, 4], s5=(0,0,2,1,0,0,2)s_5=(0,0,2,1,0,0,2) [1, 2], s6=(0,1,0,0,0,0,0)s_6=(0,1,0,0,0,0,0) [1, ?], s7=(0,1,0,0,0,1,1)s_7=(0,1,0,0,0,1,1) [1, 2], s8=(0,1,1,0,0,0,1)s_8=(0,1,1,0,0,0,1) [1, 0], s9=(0,1,1,0,0,1,2)s_9=(0,1,1,0,0,1,2) [1, 2], s10=(1,0,0,0,0,1,1)s_{10}=(1,0,0,0,0,1,1) [3, ?], and s11=(1,0,0,0,0,2,2)s_{11}=(1,0,0,0,0,2,2) [3, 2]. Transitions Ts9=2s9+s11Ts_9=2s_9+s_{11} (Ts11=2s11Ts_{11}=2s_{11}) and Ts8=2s8+s10+2s1Ts_8=2s_8+s_{10}+2s_1 (Ts10=2s10+s1Ts_{10}=2s_{10}+s_1, Ts1=s1Ts_1=s_1) yield the λ=2\lambda=2 Jordan chains while the λ=1\lambda=1 mode cancels on u0u_0, giving ⟨(TT−2I)2w,Tmu0⟩=0\langle(T^{\mathsf{T}}-2I)^2w,T^mu_0\rangle=0 (∀m≥0\forall m\ge0) and proving a3(n)=(n+6)2na_3(n)=(n+6)2^n (n≥1n\ge1).

Theorem 4.8 (Resolution of OEIS A179967 and family A322255). For k=9k=9, dim⁡Vreach(9)=193\dim\mathcal{V}_{\mathrm{reach}}(9)=193, and a(n)=A179967(n)a(n)=\mathrm{A179967}(n) has generating function

G(x)=362880−23733610x+574782136x2−6066574082x3+23063767496x4+1306804904x5+19195078240x6+99691196928x7+5798373293056x8+140546260769280x9−1838864889858048x10(1−8x)(1−14x)(1−18x)(1−20x)2(9)G(x)=\frac{362880-23733610x+574782136x^2-6066574082x^3+23063767496x^4+1306804904x^5+19195078240x^6+99691196928x^7+5798373293056x^8+140546260769280x^9-1838864889858048x^{10}}{(1-8x)(1-14x)(1-18x)(1-20x)^2} \tag*{(9)}

for all n≥0n\ge0, and closed form for all n>5n>5:

a(n)=154924827300000n+570475219334062531250000000⋅20n−3073238635354294⋅18n−13406475235298⋅14n−1058192⋅8n.(10)a(n)=\frac{154924827300000n+5704752193340625}{31250000000}\cdot20^n-\frac{3073238635}{354294}\cdot18^n-\frac{13406475}{235298}\cdot14^n-\frac{105}{8192}\cdot8^n. \tag*{(10)}

Across 2≤k≤92\le k\le9, the minimal recurrence operator for n≥k−1n\ge k-1 is ∏C=0⌊(k−1)/2⌋(S−(C+1)(k−1−C))\prod_{C=0}^{\lfloor(k-1)/2\rfloor}(S-(C+1)(k-1-C)), yielding the exact closed forms in Table 3.

Proof. By Lemma 4.5 and Proposition 4.6, for k=9k=9 and n≥8n\ge8, a(n)=⟨wclose,Tn−8u0⟩a(n)=\langle w_{\mathrm{close}},T^{n-8}u_0\rangle on Q193\mathbb{Q}^{193}. For P(λ)=(λ−8)(λ−14)(λ−18)(λ−20)2P(\lambda)=(\lambda-8)(\lambda-14)(\lambda-18)(\lambda-20)^2 and z:=P(TT)wclosez:=P(T^{\mathsf{T}})w_{\mathrm{close}}, Cayley–Hamilton implies K(u0)=span⁡Q{T0u0,…,T192u0}\mathcal{K}(u_0)=\operatorname{span}_{\mathbb{Q}}\{T^0u_0,\ldots,T^{192}u_0\}. Appendix A verifies Krylov annihilation ⟨z,Tmu0⟩=0\langle z,T^mu_0\rangle=0 across $0\le m\le 194$ (and non-vanishing if any root factor is omitted), proving P(S)a(n)=0P(S)a(n)=0 for all n≥8n\ge8. All eight pre-bulk values a(0),…,a(7)a(0),\ldots,a(7) are computed directly without transfer operators (subset DP for 0≤n≤40\le n\le4 and vectorized meet-in-the-middle for n=5,6,7n=5,6,7, i.e., $N=19,21,23). Combining a(0),…,a(7)a(0),\ldots,a(7) with a(8),…,a(12)a(8),\ldots,a(12) yields zero coefficients at x11,x12x^{11},x^{12} in (∑n=0∞a(n)xn)(1−8x)(1−14x)(1−18x)(1−20x)2(\sum_{n=0}^{\infty}a(n)x^n)(1-8x)(1-14x)(1-18x)(1-20x)^2, proving (9) and (10). Analogous Krylov verification for 2≤k≤82\le k\le8 (cross-checked against raw labeled Stage 1 enumeration for 2≤k≤52\le k\le5 and subset DP across 2≤k≤62\le k\le6, 2n+k≤162n+k\le16) establishes Table 3. □\square

kkOEIS / Seq.DkD_kMinimal recurrence rootsExact proved formula ak(n)a_k(n) for all n≥k−1n \ge k-1
2Const (2)1{1}\{1\}2
3A12953412{2,2}\{2,2\}(n+6)⋅2n(n+6)\cdot2^n
4A17996231{3,4}\{3,4\}492⋅4n−83⋅3n\frac{49}{2}\cdot4^n-\frac{8}{3}\cdot3^n
5A17996355{4,6,6}\{4,6,6\}182n+263327⋅6n−34⋅4n\frac{182n+2633}{27}\cdot6^n-\frac{3}{4}\cdot4^n
6A17996479{5,8,9}\{5,8,9\}462944729⋅9n−788364⋅8n−32125⋅5n\frac{462944}{729}\cdot9^n-\frac{7883}{64}\cdot8^n-\frac{32}{125}\cdot5^n
7A179965114{6,10,12,12}\{6,10,12,12\}56571n+1394594432⋅12n−1037011250⋅10n−554⋅6n\frac{56571n+1394594}{432}\cdot12^n-\frac{103701}{1250}\cdot10^n-\frac{5}{54}\cdot6^n
8A179966147{7,12,15,16}\{7,12,15,16\}97803413132768⋅16n−1954858304253125⋅15n−1746192592⋅12n−57616807⋅7n\frac{978034131}{32768}\cdot16^n-\frac{1954858304}{253125}\cdot15^n-\frac{174619}{2592}\cdot12^n-\frac{576}{16807}\cdot7^n
9A179967193{8,14,18,20,20}\{8,14,18,20,20\}See closed form (10)

Table 3. Reachable dimensions DkD_k, minimal recurrence roots of ak(n)a_k(n), and exact closed forms for n≥k−1n \ge k-1 across 2≤k≤92 \le k \le9 (diagonals of OEIS A322255).

nnA179967(nn)
158,360,092,086,071,998,742,691,840
16170,567,948,261,566,724,975,493,120
173,478,446,688,452,290,960,163,471,360
1870,906,470,173,375,431,565,055,098,880
191,444,804,224,341,790,235,429,754,634,240
2029,428,214,824,670,023,287,111,753,400,320

Table 2. Values of A179967(nn) for 15≤n≤2015\le n\le20 beyond the main OEIS display (0≤n≤140\le n\le14), confirming agreement between ⟨wclose,Tn−8u0⟩\langle w_{\mathrm{close}},T^{n-8}u_0\rangle, (10), and Manyamā’s table [8].

StatementInfinite-Range Proof MechanismFinite-Range / Annihilator Check in Appendix A
Lemmas 2.1–2.3Hensel’s lemma; Mahler [6]binom_theta local valuation checks
Theorem 2.4 (A387569)Dedekind OK=⋂OK,p\mathcal{O}_K=\bigcap\mathcal{O}_{K,\mathfrak{p}}; CRTSuff. (n≤27n \le27), prime-del (n≤16n \le16), min-y (n≤9n \le9)
Theorem 2.5, Rem. 2.6DVR completion O^K,p≅Zp\widehat{\mathcal{O}}_{K,\mathfrak{p}}\cong\mathbb{Z}_p; CRTFull-period CRT Z[−5]\mathbb{Z}[\sqrt{-5}] (n≤12n \le12); Q(−3)\mathbb{Q}(\sqrt{-3})
Lemma 3.1, Theorem 3.2Chu–Vandermonde; F2[[T]]\mathbb{F}_2[[T]] FrobeniusA392059_def (n≤15n \le15; x∈[−8,9]x \in[-8,9] for n≤8n \le8)
Lemma 4.5, Prop. 4.6Aut⁡(Hr)\operatorname{Aut}(H_r) double-counting & bijective cutsLabeled u0u_0 (k≤5k \le5); DP/MITM n≤7n \le7; bulk 2n+k≤162n+k \le16
Example 4.7, Theorem 4.8Cayley–Hamilton on QDk\mathbb{Q}^{D_k} (D9=193D_9=193)Exact Krylov annihilator 0≤m≤Dk+10 \le m \le D_k+1 (2≤k≤92 \le k \le9)

Table 4. Logical dependency and computational verification ledger.

Proof-Dependency Ledger, Archiving, and AI Provenance Statement

AI Provenance and Public Availability. In accordance with transparent disclosure standards for AI-generated mathematical research, we state explicitly that this work is a joint AI–human collaborative study orchestrated by Seon-Woo Hong using a confidential prompting architecture. Primary mathematical derivations, Dedekind domain extensions, transfer-operator constructions, verification code, and manuscript prose (Versions 1.0–2.6) were generated by Google Gemini (model: gemini-4-carbon); independent adversarial mathematical auditing, the explicit Q(−3)\mathbb{Q}(\sqrt{-3}) counterexample to 2y2y-periodicity, Chu–Vandermonde period-bound critiques, and Stage 1 prefix-graph completeness reviews across Versions 2.0–2.6 were contributed by OpenAI ChatGPT. No claim of unaided human mathematical derivation is made. Self-contained mathematical proofs and prompt-independent computational verification are provided in Sections 2–4 and Appendix A, archived publicly on CERN Zenodo.

References

Appendix A. Standalone Exact-Arithmetic Verification Script

Tested under Python 3.12.5, NumPy 2.1.3, and SymPy 1.13.3 (and cross-tested under Python 3.13.5, NumPy 2.3.5, SymPy 1.14.0; save as verify.py and run python3 verify.py). The script executes finite-range sufficiency and full-period CRT necessity checks for Theorems 2.4–3.2, pure-integer Stage 1 contraction cross-checked against raw labeled backtracking (build_u0_labeled, where dg[x] \in \{0, 1, 2\} records consumed slot capacity degC⁡(x)+1endpoint⁡(x)\operatorname{degC}(x) + 1_{\operatorname{endpoint}(x)}, so 2 marks a closed vertex) for 2≤k≤52 \le k \le5, direct path enumeration for 0≤n≤70 \le n \le7 (N≤23N \le23) of OEIS A179967 (in mitm_odd_vec, each path on odd N=2L−1N = 2L - 1 splits uniquely at midpoint u=p(L)u = p(L) into two LL-vertex half-paths with masks M1∩M2={u}M_1 \cap M_2 = \{u\} and M2=(full⊕M1)∣2uM_2 = (\mathrm{full} \mathbin{\mathsf{\oplus}} M_1) \mathbin{|} 2^u, using graph reflection v↦N−1−vv \mapsto N - 1 - v to halve the midpoint loop), subset-DP bulk checks (2≤k≤62 \le k \le6, 2n+k≤162n + k \le16), and exact Krylov annihilator verification over 0≤m≤Dk+10 \le m \le D_k + 1.

import math
from collections import defaultdict
from fractions import Fraction
import numpy as np
import sympy as sp

def binom_theta(x, y, d, n):
    c0, c1 = 1, 0
    kc = (d - 1) // 4 if (d % 4 == 1) else None
    for j in range(n):
        u = x - j
        if kc is None: c0, c1 = c0 * u + d * c1 * y, c0 * y + c1 * u
        else: c0, c1 = c0 * u + kc * c1 * y, c0 * y + c1 * u + c1 * y
    den = math.factorial(n)
    return Fraction(c0, den), Fraction(c1, den)

def vp_fact(n, p):
    s = 0
    while n >= p: n //= p; s += n
    return s

def is_y_feasible_crt(y, d, n):
    kc = (d - 1) // 4 if (d % 4 == 1) else None
    for p in sp.primerange(2, n + 1):
        pe = p ** vp_fact(n, p); ok_p = False
        for xp in range(pe):
            c0, c1 = 1, 0
            for j in range(n):
                u = (xp - j) % pe
                if kc is None: c0, c1 = (c0 * u + d * c1 * y) % pe, (c0 * y + c1 * u) % pe
                else: c0, c1 = (c0 * u + kc * c1 * y) % pe, (c0 * y + c1 * u + c1 * y) % pe
            if c0 == 0 and c1 == 0: ok_p = True; break
        if not ok_p: return False
    return True

def A387569_formula(n):
    req2, t2 = 2 * vp_fact(n, 2), 0
    while (2 * sum((n + (1 << s) - 1) >> s for s in range(1, t2 + 1))
          + ((n + (1 << (t2 + 1)) - 1) >> (t2 + 1)) < req2):
        t2 += 1
    res = 1 << t2
    for p in sp.primerange(3, n + 1):
        if p % 4 == 3:
reqp, acc, pk = vp_fact(n, p), 0, 1
while acc < reqp: pk *= p; acc += (n + pk - 1) // pk
res *= pk
return res

def A392059_def(n):
    res = 1
    for p in [2] + [q for q in sp.primerange(3, n + 1) if q % 4 == 3]:
        pk = 1
        while pk * p <= n: pk *= p
        res *= pk
    return res

def verify_number_theory():
    oeis_23 = [1, 2, 3, 12, 6, 6, 42, 168, 252, 84, 924, 2772, 924, 924,
               2772, 3696, 924, 5544, 52668, 105336, 52668, 105336, 1211364]
    assert [A387569_formula(n) for n in range(1, 24)] == oeis_23
    for n in range(1, 28):
        y = A387569_formula(n); r0, r1 = binom_theta(y, y, -1, n)
        assert r0.denominator == 1 and r1.denominator == 1
        if n <= 16:
            assert is_y_feasible_crt(y, -1, n)
        for q in sp.factorint(y): assert not is_y_feasible_crt(y // q, -1, n)
        if n <= 9: assert all(not is_y_feasible_crt(b, -1, n) for b in range(1, y))
    yk_d5 = [next(y for y in range(1, 500) if is_y_feasible_crt(y, -5, n))
             for n in range(1, 13)]
    assert yk_d5 == [1, 2, 1, 4, 10, 2, 2, 8, 4, 20, 220, 220]
    assert binom_theta(-10, 4, -3, 4) == (Fraction(931, 3), Fraction(-1463, 3))
    assert binom_theta(-2, 4, -3, 4) == (Fraction(-5, 1), Fraction(11, 1))
    for n in range(1, 16):
        k, sh = A392059_def(n), 1 << (n.bit_length() - 1)
        xs = n - sh; r0, r1 = binom_theta(xs, k, -1, n)
        assert r0.denominator == 1 and r1.denominator == 1
        assert (int(r0) - math.comb(xs, n) + int(r1)) % 2 == 1
        for m in range(1, n + 1):
            u0, u1 = binom_theta(0, 2 * k, -1, m)
            assert u0.denominator == 1 and u1.denominator == 1
            assert (int(u0) + int(u1)) % 2 == 0
        if n <= 8:
            for c in range(n + 1):
                for x in range(-8, 10):
                    rc, ic = binom_theta(x, k, -1, c)
                    assert rc.denominator == 1 and ic.denominator == 1
                    assert ((int(rc) + int(ic)) % 2) == (int(sp.binomial(x + sh, c)) % 2)
    print("[PASS] A387569 suff n<=27, prime-del n<=16, min-y n<=9; "
          "Z[sqrt(-5)] n<=12; A392059 n<=15.")

def verify_combinatorics():
    def held_karp(N, th):
        M = 1 << N; dp = np.zeros((M, N), dtype=np.int64)
        for u in range(N): dp[1 << u, u] = 1
        adj = [[v for v in range(N) if abs(u - v) > th] for u in range(N)]
        pop = np.array([bin(i).count("1") for i in range(M)], dtype=np.uint8)
        for s in range(1, N):
            masks = np.nonzero(pop == s)[0]
            for u in range(N):
                col = dp[masks, u]; nz = np.nonzero(col)[0]
                if not len(nz): continue
                ms, ws = masks[nz], col[nz]
                for v in adj[u]:
                    b = 1 << v; ok = (ms & b) == 0
                    if np.any(ok): dp[ms[ok] | b, v] += ws[ok]
        return int(dp[M - 1].sum())

    def mitm_odd_vec(N, th):
# Split odd N = 2L-1 at midpoint u = p(L); reflection v <-> N-1-v halves midpoint loop
L = N // 2 + 1
adj = [[v for v in range(N) if abs(u - v) > th] for u in range(N)]
cur_m = [np.array([1 << u], dtype=np.uint32) for u in range(N)]
cur_w = [np.array([1], dtype=np.int64) for u in range(N)]
for _ in range(2, L + 1):
    in_m, in_w = [[] for _ in range(N)], [[] for _ in range(N)]
    for u in range(N):
        ms = cur_m[u]
        if not len(ms): continue
        ws = cur_w[u]
        for v in adj[u]:
            bit = np.uint32(1 << v); ok = (ms & bit) == 0
            if np.any(ok):
                in_m[v].append(ms[ok] | bit); in_w[v].append(ws[ok])
    for v in range(N):
        if not in_m[v]:
            cur_m[v] = np.empty(0, dtype=np.uint32)
            cur_w[v] = np.empty(0, dtype=np.int64)
        else:
            am, aw = np.concatenate(in_m[v]), np.concatenate(in_w[v])
            od = np.argsort(am, kind='mergesort'); am, aw = am[od], aw[od]
            df = np.empty(len(am), dtype=bool); df[0] = True; df[1:] = am[1:] != am[:-1]
            ix = np.nonzero(df)[0]; cur_m[v] = am[ix]; cur_w[v] = np.add.reduceat(aw, ix)
full = np.uint32((1 << N) - 1); tot = 0
for u in range((N + 1) // 2):
    mult = 2 if u < N - 1 - u else 1; ms, ws = cur_m[u], cur_w[u]
    if not len(ms): continue
    cp = (full ^ ms) | np.uint32(1 << u)
    ps = np.clip(np.searchsorted(ms, cp), 0, len(ms) - 1); ht = (ms[ps] == cp)
    tot += mult * int(np.sum(ws[ht] * ws[ps[ht]]))
return tot

imap = {('U','U'):3, ('U','Va'):4, ('U','Vf'):5, ('E','U'):6,
        ('Va','Va'):7, ('Va','Vf'):8, ('E','Va'):9, ('Vf','Vf'):10, ('E','Vf'):11}
def add_c(a, t1, t2):
    p = (t1, t2) if t1 <= t2 else (t2, t1)
    if p == ('E', 'E'): return False
    a[imap[p]] += 1; return True

def build_u0(k):
    states = {(0, k - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0): 1}
    for r in range(1, k + 1):
        if r >= 2:
            nu = defaultdict(int)
            for st, w in states.items():
                nu[(st[0]+1,) + st[1:]] += w
                if st[12] < 2: a = list(st); a[6] += 1; a[12] += 1; nu[tuple(a)] += w
            states = nu
    nxt = defaultdict(int)
    for st, ways in states.items():
        qU, qVa, qVf, UU, UVa, UVf, UE, VaVa, VaVf, VaE, VfVf, VfE, et = st
        if et < 2:
            for mu, di, oe in [(qU,0,'U'),(qVa,1,'Va'),(2*UU,3,'U'),(UVa,4,'Va'),
                               (UVf,5,'Vf'),(UVa,4,'U'),(2*VaVa,7,'Va'),(VaVf,8,'Vf')]:
                if mu: a = list(st); a[di] -= 1; a[12] += 1; add_c(a,'E',oe); nxt[tuple(a)] += ways*mu
        cats = [(0,qU,0,'U'),(1,qVa,1,'Va'),(2,2*UU,3,'U'),(3,UVa,4,'Va'),(4,UVf,5,'Vf'),
                (5,UE,6,'E'),(6,UVa,4,'U'),(7,2*VaVa,7,'Va'),(8,VaVf,8,'Vf'),(9,VaE,9,'E')]
        for i in range(10):
            c1, n1, i1, o1 = cats[i]
            if not n1: continue
            if n1 >= 2 and o1 != 'E':
                w2 = 2*UU*(UU-1) if c1==2 else (2*VaVa*(VaVa-1) if c1==7 else n1*(n1-1)//2)
                if w2:
                    a = list(st); a[i1] -= 2
        if add_c(a, o1, o1): nxt[tuple(a)] += ways * w2
    for j in range(i + 1, 10):
        c2, n2, i2, o2 = cats[j]
        if not n2 or (o1 == 'E' and o2 == 'E'): continue
        w12 = UVa*(UVa-1) if (c1==3 and c2==6) else n1*n2
        if w12:
            a = list(st); a[i1] -= 1; a[i2] -= 1
            if add_c(a, o1, o2): nxt[tuple(a)] += ways * w12
    states = nxt
    NVa = k - r
    if NVa >= 1:
        ne = defaultdict(int)
        for st, ways in states.items():
            qU, qVa, qVf, UU, UVa, UVf, UE, VaVa, VaVf, VaE, VfVf, VfE, _ = st
            sVa = NVa - qVa - (UVa + 2*VaVa + VaVf + VaE)
            if sVa > 0:
                assert (ways * sVa) % NVa == 0
                ne[st] += (ways * sVa) // NVa
            for cnt, d1, d2 in [(qVa,1,2),(UVa,4,5),(2*VaVa,7,8),(VaVf,8,10),(VaE,9,11)]:
                if cnt > 0:
                    assert (ways * cnt) % NVa == 0
                    a = list(st); a[d1] -= 1; a[d2] += 1
                    ne[tuple(a)] += (ways * cnt) // NVa
        states = ne
    out = defaultdict(int)
    for st, ways in states.items():
        qU, qVa, qVf, UU, UVa, UVf, UE, VaVa, VaVf, VaE, VfVf, VfE, et = st
        assert qVa == 0 and UVa == 0 and VaVa == 0 and VaVf == 0 and VaE == 0
        cu = qU + UU; hd = (2*cu+UVf+UE) - (2*qVf+2*VfVf+UVf+VfE); re = 2 - et
        if abs(hd) <= re and (hd - re) % 2 == 0:
            out[(cu, UVf, UE, qVf, VfVf, VfE, et)] += ways * (1 << UU)
    return dict(out)

def build_u0_labeled(k):
    # dg[x] in {0,1,2}: consumed slot capacity deg_C(x) + is_endpoint(x); 2 = closed
    nb = 2 * k - 2
    st = {(tuple([0]*nb), tuple(range(nb)), 0): 1}
    for r in range(1, k + 1):
        nb_r = list(range(r - 1)) + list(range(k - 2 + r, nb))
        nx = defaultdict(int)
        for (dg, mt, ec), w in st.items():
            if ec < 2:
                for x in nb_r:
                    if dg[x] == 0:
                        d2, m2 = list(dg), list(mt); d2[x] = 1; m2[x] = -1
                        nx[(tuple(d2), tuple(m2), ec + 1)] += w
                    elif dg[x] == 1 and mt[x] != -1:
                        ox = mt[x]; d2, m2 = list(dg), list(mt)
                        d2[x] = 2; m2[x] = -2; m2[ox] = -1
                        nx[(tuple(d2), tuple(m2), ec + 1)] += w
                for i, x in enumerate(nb_r):
                    if dg[x] == 2: continue
                    for y in nb_r[i+1:]:
                        if dg[y] == 2 or (dg[x] == 1 and mt[x] == y): continue
                        ex = x if dg[x] == 0 else mt[x]
                        ey = y if dg[y] == 0 else mt[y]
                        if ex == -1 and ey == -1: continue
                        d2, m2 = list(dg), list(mt); d2[x] += 1; d2[y] += 1
                        if dg[x] == 1: m2[x] = -2
                        if dg[y] == 1: m2[y] = -2
                        if ex >= 0: m2[ex] = ey
                        if ey >= 0: m2[ey] = ex
                        nx[(tuple(d2), tuple(m2), ec)] += w
        st = nx
    out = defaultdict(int)
for (dg, mt, ec), w in st.items():
    cs = [i for i in range(k - 1) if dg[i] < 2]
    eps = [()] + ([(x,) for x in cs] if ec <= 1 else [])
    if ec == 0:
        eps += [(cs[a], cs[b]) for a in range(len(cs)) for b in range(a+1, len(cs))]
    for ep in eps:
        d2, m2, e2, ok = list(dg), list(mt), ec, True
        for x in ep:
            if d2[x] == 0: d2[x] = 1; m2[x] = -1; e2 += 1
            elif m2[x] == -1: ok = False; break
            else: ox = m2[x]; d2[x] = 2; m2[x] = -2; m2[ox] = -1; e2 += 1
        if not ok: continue
        qU = sum(1 for i in range(k - 1) if d2[i] == 0)
        qV = sum(1 for j in range(k - 1, nb) if d2[j] == 0)
        uu = sum(1 for i in range(k - 1) if d2[i] == 1 and 0 <= m2[i] < k - 1) // 2
        vv = sum(1 for j in range(k - 1, nb) if d2[j] == 1 and m2[j] >= k - 1) // 2
        uv = sum(1 for i in range(k - 1) if d2[i] == 1 and m2[i] >= k - 1)
        eu = sum(1 for i in range(k - 1) if d2[i] == 1 and m2[i] == -1)
        ev = sum(1 for j in range(k - 1, nb) if d2[j] == 1 and m2[j] == -1)
        cu = qU + uu; hd = (2*cu + uv + eu) - (2*qV + 2*vv + uv + ev); re = 2 - e2
        if abs(hd) <= re and (hd - re) % 2 == 0:
            out[(cu, uv, eu, qV, vv, ev, e2)] += w * (1 << uu)
return dict(out)

def v_sat(cu, uvf, ue, qvf, vfvf, vfe, et, w, nxt, dec_q, can_cl):
    cl = 0; qn = qvf - (1 if dec_q else 0)
    if et < 2:
        if cu > 0: nxt[(cu-1, uvf, ue+1, qn, vfvf, vfe, et+1)] += w * cu
        if uvf > 0: nxt[(cu, uvf-1, ue, qn, vfvf, vfe+1, et+1)] += w * uvf
        if can_cl and ue == 1 and cu == 0 and uvf == 0 and et == 1: cl += w
        if cu >= 2: nxt[(cu-1, uvf, ue, qn, vfvf, vfe, et)] += w * cu * (cu - 1)
        if uvf >= 2: nxt[(cu, uvf-2, ue, qn, vfvf+1, vfe, et)] += w * (uvf*(uvf-1)//2)
        if cu >= 1 and uvf >= 1: nxt[(cu-1, uvf, ue, qn, vfvf, vfe, et)] += w * cu * uvf
        if cu >= 1 and ue >= 1: nxt[(cu-1, uvf, ue, qn, vfvf, vfe, et)] += w * cu * ue
        if uvf >= 1 and ue >= 1: nxt[(cu, uvf-1, ue-1, qn, vfvf, vfe+1, et)] += w * uvf * ue
        if can_cl and ue == 2 and cu == 0 and uvf == 0 and et == 2: cl += w
    return cl

def close_vr(work):
    tot = 0
    while work:
        nxt = defaultdict(int)
        for (cu, uvf, ue, qvf, vfvf, vfe, et), w in work.items():
            rem = qvf + 2*vfvf + uvf + vfe
            if not rem: continue
            last = (rem == 1)
            if qvf > 0: tot += v_sat(cu, uvf, ue, qvf, vfvf, vfe, et, w, nxt, True, last)
            elif vfe > 0:
                if last and et == 1 and cu == 0 and uvf == 0 and ue == 0: tot += w
                if cu > 0: nxt[(cu-1, uvf, ue+1, 0, vfvf, vfe-1, et)] += w * cu
                if uvf > 0: nxt[(cu, uvf-1, ue, 0, vfvf, vfe, et)] += w * uvf
                if last and ue == 1 and cu == 0 and uvf == 0 and et == 2: tot += w
            elif vfvf > 0:
                if et < 2: nxt[(cu, uvf, ue, 0, vfvf-1, vfe+1, et+1)] += w
                if cu > 0: nxt[(cu, uvf+1, ue, 0, vfvf-1, vfe, et)] += w * cu
                if uvf > 0: nxt[(cu, uvf-1, ue, 0, vfvf, vfe, et)] += w * uvf
                if ue > 0: nxt[(cu, uvf, ue-1, 0, vfvf-1, vfe+1, et)] += w * ue
            else:
                if et < 2: nxt[(cu, uvf-1, ue+1, 0, 0, 0, et+1)] += w
                if cu > 0: nxt[(cu-1, uvf, ue, 0, 0, 0, et)] += w * cu * 2
                if uvf >= 2: nxt[(cu, uvf-1, ue, 0, 0, 0, et)] += w * (uvf - 1)
                if ue > 0: nxt[(cu, uvf-1, ue, 0, 0, 0, et)] += w * ue
        work = nxt
    return 2 * tot
def trans(st):
    if st == ('CLOSED',): return {}
    cu0, uvf0, ue0, qvf0, vfvf0, vfe0, et0 = st
    au = [(cu0+1, uvf0, ue0, qvf0, vfvf0, vfe0, et0, 1)]
    if et0 < 2: au.append((cu0, uvf0, ue0+1, qvf0, vfvf0, vfe0, et0+1, 1))
    out = defaultdict(int)
    for cu, uvf, ue, qvf, vfvf, vfe, et, wu in au:
        vr = qvf + 2*vfvf + uvf + vfe
        cl = v_sat(cu, uvf, ue, qvf, vfvf, vfe, et, wu, out, False, vr == 0)
        if cl: out[('CLOSED',)] += cl
    return {ns: w for ns, w in out.items() if w and (ns == ('CLOSED',) or
        (abs((2*ns[0]+ns[1]+ns[2]) - (2*ns[3]+2*ns[4]+ns[1]+ns[5])) <= 2-ns[6]
         and ((2*ns[0]+ns[1]+ns[2]) - (2*ns[3]+2*ns[4]+ns[1]+ns[5]) - (2-ns[6])) % 2 == 0))}

dims_exp = {2:1, 3:12, 4:31, 5:55, 6:79, 7:114, 8:147, 9:193}
for k in range(2, 10):
    u0 = build_u0(k)
    if k <= 5: assert u0 == build_u0_labeled(k)
    vis, q, adj = set(u0.keys()), list(u0.keys()), {}
    while q:
        s = q.pop(); tr = trans(s); adj[s] = tr
        for ns in tr:
            if ns not in vis: vis.add(ns); q.append(ns)
    sl = sorted(vis, key=str); idx = {s: i for i, s in enumerate(sl)}; D = len(sl)
    assert D == dims_exp[k]
    wv = [2 if s == ('CLOSED',) else close_vr({s: 1}) for s in sl]
    uv = [u0.get(s, 0) for s in sl]
    spT = [[(idx[ns], wt) for ns, wt in adj[s].items()] for s in sl]
    roots = [(C + 1) * (k - 1 - C) for C in range((k - 1) // 2 + 1)]
    z = list(wv)
    for lam in roots:
        Tz = [sum(wt * z[j] for j, wt in spT[i]) for i in range(D)]
        z = [Tz[i] - lam * z[i] for i in range(D)]
    cu_v = list(uv); seq_k = []
    for m_s in range(max(D + 2, 13)):
        assert sum(z[i] * cu_v[i] for i in range(D)) == 0
        if m_s <= 12: seq_k.append(sum(wv[i] * cu_v[i] for i in range(D)))
        nx = [0] * D
        for i, val in enumerate(cu_v):
            if val:
                for j, wt in spT[i]: nx[j] += wt * val
        cu_v = nx
    if k <= 6:
        for m_s in range(len(seq_k)):
            nv = k - 1 + m_s
            if 2 * nv + k <= 16:
                assert seq_k[m_s] == held_karp(2 * nv + k, nv)
    for di in range(len(roots)):
        zs = list(wv)
        for lam in (roots[:di] + roots[di+1:]):
            Tz = [sum(wt * zs[j] for j, wt in spT[i]) for i in range(D)]
            zs = [Tz[i] - lam * zs[i] for i in range(D)]
        ct = list(uv); van = True
        for _ in range(10):
            if sum(zs[i] * ct[i] for i in range(D)) != 0: van = False; break
            nx = [0] * D
            for i, val in enumerate(ct):
                if val:
                    for j, wt in spT[i]: nx[j] += wt * val
            ct = nx
        assert not van
    if k == 9:
        a_seq = ([held_karp(2*n+9, n) for n in range(5)]
                 + [mitm_odd_vec(2*n+9, n) for n in (5, 6, 7)])
        a_seq.extend(seq_k)
den = [1, -80, 2508, -38336, 283840, -806400]
num_exp = [362880, -23733610, 574782136, -6066574082, 23063767496, 1306804904,
           19195078240, 99691196928, 5798373293056, 140546260769280,
           -1838864889858048, 0, 0]
assert [sum(a_seq[n-j]*den[j] for j in range(min(n+1, 6))) for n in range(13)] == num_exp
print("[PASS] Stage-1 labeled check k<=5, DP/MITM n<=7, bulk DP 2n+k<=16, & Krylov D_k<=193.")

if __name__ == "__main__":
    verify_number_theory()
    verify_combinatorics()

References

  1. [1]M. Bhargava, The factorial function and generalizations, Amer. Math. Monthly 107 (2000), no. 9, 783–799.
  2. [2]P.-J. Cahen and J.-L. Chabert, Inter-Valued Polynomials, Math. Surveys Monogr., vol. 48, Amer. Math. Soc., Providence, RI, 1997.
  3. [3]A. Chand, Universal matrices for counting Fibonacci and C-nomial coefficients by their p-adic valuations, preprint (2025), arXiv:2508.18461.arxiv.org/abs/2508.18461
  4. [4]W. K. Hale, Frequency assignment: theory and applications, Proc. IEEE 68 (1980), no. 12, 1497–1514.DOI
  5. [5]J. Y.-T. Leung, O. Vornberger, and J. D. Witthoff, On some variants of the bandwidth minimization problem, SIAM J. Comput. 13 (1984), no. 3, 650–667.DOI
  6. [6]K. Mahler, An interpolation series for continuous functions of a p-adic variable, J. Reine Angew. Math. 199 (1958), 23–34.DOI
  7. [7]Z. Miller and D. Pritikin, On the separation number of a graph, Networks 19 (1989), no. 6, 651–666.DOI
  8. [8]OEIS Foundation Inc., Entry A179967 (conjectures and table for 0 ≤ n ≤ 763 by S. Manyama, August 2026), https://oeis.org/A179967.
  9. [9]OEIS Foundation Inc., Entry A322255 (and diagonals A129534, A179962–A179967), https://oeis.org/A322255.
  10. [10]OEIS Foundation Inc., Entry A387569 (R. Zhou and M. Marcus, 2025–2026), https://oeis.org/A387569.
  11. [11]OEIS Foundation Inc., Entry A392059 (R. Zhou, 2025–2026), https://oeis.org/A392059.
  12. [12]E. Rowland, A matrix generalization of a theorem of Fine, Integers 18A (2018), Article A18, arXiv:1704.05872.arxiv.org/abs/1704.05872

Paper details

vlnc:W_q3wfm22a
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Google Gemini 4-carbon, OpenAI ChatGPT

View statement
Looking for related papers…
Contents