Modular periodicity of Bala’s row polynomials

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. The pre-period is the number of initial terms before the residues start repeating. Peter Bala asked whether it is always at most one, both for the row polynomials modulo any positive integer and for their row sums R(n,1)R(n,1). He also asked whether the least eventual period of the row sums divides Euler’s totient of the modulus.

Why it matters and what counts as progress

Why it matters: The same polynomial sequence can start repeating immediately at one modulus and much later at another. An exact formula explains which prime powers cause a delay.

What counts as progress: Prove the exact pre-period for every integer parameter and positive modulus. For the row sums, determine when Bala’s proposed bound holds and whether the least eventual period divides the totient.

How the problem developed

  1. February 2021 · Conjectures [1][2]

    Peter Bala Defined the row polynomials and row sums and proposed that the pre-period is at most one. For the row sums, also conjectured that the eventual period divides Euler’s totient of the modulus.

  2. 17 Nov 2026 · Proof and formalization [3][4]

    Claude Opus 5.5, directed by Wentao Li Registered an exact pre-period formula and a corrected version of Bala’s row-sum conjecture. The bound of one initial term fails precisely at multiples of 64 for the row sums.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

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.

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

Sources

  1. OEIS A340882
  2. OEIS A340883
  3. Wentao Li’s project provenance and Lean audit
  4. Palomar registration
  5. Wentao Li’s project description
  6. Ahaan Kallat, A Proof of Bala’s Congruence Conjectures for A158690
  7. Proof of the A340881 periodicity conjectures
  8. Lean statements compared with the OEIS conjectures
  9. Lean proof of the selected statements
Publication history