The exact modular pre-period of Bala’s row polynomials

Wentao Li

For q∈Zq\in\mathbb Z, set x=1+qx=1+q and R(n,q)=∑k=0n−1xk2∏j=k+1n−1(x2j−1)R(n,q)=\sum_{k=0}^{n-1} x^{k^2}\prod_{j=k+1}^{n-1}(x^{2j}-1) for n≥1n\ge1. For every modulus N≥1N\ge1, the exact pre-period is the maximum of the local lengths over primes pp dividing both NN and xx. For x≠0x\ne0, write e=vp(N)e=v_p(N) and v=vp(x)v=v_p(x), where vpv_p is the exponent of pp in an integer. The local length is 00 if e≤ve\le v, 11 if v<e≤5vv<e\le5v, and ⌊(e−1)/(2v)⌋\lfloor(e-1)/(2v)\rfloor if e>5ve>5v. The pre-period is zero when the maximum is empty or x=0x=0. Thus the pre-period is at most one exactly when x=0x=0 or vp(N)≤5vp(x)v_p(N)\le5v_p(x) at every shared prime. This holds for every NN exactly when q∈{−2,−1,0}q\in\{-2,-1,0\}. For the row sums a(n)=R(n,1)a(n)=R(n,1), the pre-period is at most one exactly when 64∤N64\nmid N. Modulo 6464 the first two terms are 1,51,5, followed by 27,3727,37 repeating. For every NN, Euler’s totient φ(N)\varphi(N) is a period after the pre-period.

What was already known

Peter Bala defined the row polynomials and their row sums in 2021 and conjectured that their residues repeat after at most one initial term. For the row sums he also predicted that the least period divides Euler’s totient of the modulus. Ahaan Kallat proved eventual periodicity for the related sequence A158690 and gave a pre-period bound for that sequence.

How the result developed

  1. 17 Nov 2026 · Manuscript date [1]

    Wentao Li reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-centered
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew

AI involvement

The disclosure covers the valuation argument for the exact pre-period of Bala’s row polynomials. Claude Code (Anthropic) developed the proof, wrote the Lean formalization and prepared this package under the direction of Wentao Li. Li is the human author and maintainer. Peter Bala supplied the sequences and conjectures.

Importance

The exact pre-period settles both conjectures about when the repeating part starts. It also shows how prime-power divisors of the modulus determine that start.

Technical verification

The project reports a strict Lean 4.35.0 build with Mathlib and an axiom audit for the selected pre-period and totient statements.

Possible mismatch: The description of OEIS A340882 uses the exponent nk+n2nk+n^2. Wentao Li’s Lean definition follows the entry’s finite formula and listed coefficients, which correspond to 2nk+n22nk+n^2 in the series.

Formal checking

The project reports a strict Lean 4.35.0 build with Mathlib and an axiom audit for the selected pre-period and totient statements. Possible mismatch. Wentao Li’s pinned project notes that the descriptive series in OEIS A340882 uses nk+n2nk+n^2 where the Formula and Maple sections require 2nk+n22nk+n^2. The Lean definition follows those sections and matches the listed coefficients.

Checker
Lean kernel
Scope
For q∈Zq\in\mathbb Z, set x=1+qx=1+q and R(n,q)=∑k=0n−1xk2∏j=k+1n−1(x2j−1)R(n,q)=\sum_{k=0}^{n-1} x^{k^2}\prod_{j=k+1}^{n-1}(x^{2j}-1) for n≥1n\ge1. For every modulus N≥1N\ge1, the exact pre-period is the maximum of the local lengths over primes pp dividing both NN and xx. For x≠0x\ne0, write e=vp(N)e=v_p(N) and v=vp(x)v=v_p(x), where vpv_p is the exponent of pp in an integer. The local length is 00 if e≤ve\le v, 11 if v<e≤5vv<e\le5v, and ⌊(e−1)/(2v)⌋\lfloor(e-1)/(2v)\rfloor if e>5ve>5v. The pre-period is zero when the maximum is empty or x=0x=0. Thus the pre-period is at most one exactly when x=0x=0 or vp(N)≤5vp(x)v_p(N)\le5v_p(x) at every shared prime. This holds for every NN exactly when q∈{−2,−1,0}q\in\{-2,-1,0\}. For the row sums a(n)=R(n,1)a(n)=R(n,1), the pre-period is at most one exactly when 64∤N64\nmid N. Modulo 6464 the first two terms are 1,51,5, followed by 27,3727,37 repeating. For every NN, Euler’s totient φ(N)\varphi(N) is a period after the pre-period.
Basis
Reported by the linked checker

Human understanding

The project describes the proof and attributes its development to Claude. It gives no separately attributed human explanation of the selected new argument.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Historical omission audit: the pinned source attributes central mathematical proof work to Claude.