OEIS A339946 and A361717: Bala's prime-level supercongruences

Wentao Li

For the Legendre polynomial PnP_n, set am(n)=[xmn] 1/Pn((1−x)/(1+x))a_m(n)=[x^{mn}]\,1/P_n((1-x)/(1+x)). For every prime p≥7p\ge7 and integer m≥1m\ge1, am(p)≡am(1)=2(modp5)a_m(p)\equiv a_m(1)=2\pmod{p^5}. A339946 is the case m=1m=1. Also am(5)≡2+625m2(mod55)a_m(5)\equiv2+625m^2\pmod{5^5}, so the original congruence at 5 holds exactly when 5∣m5\mid m. For A361717, the package proves that Conjecture 2 holds. The congruence is ∑j=0p−2(p−2j)2(p−1+jj)≡1−2p−p2(modp3)\sum_{j=0}^{p-2}\binom{p-2}{j}^2\binom{p-1+j}{j}\equiv1-2p-p^2\pmod{p^3} for every prime p≠3p\ne3.

What was already known

Bala proposed the fifth-power congruence for A339946 in 2020 and extended it to all positive mm in 2022. Robert Israel tested m=1m=1 for the primes from 7 through 401. Bala proposed the third-power congruence for A361717 separately in 2023.

  • OEIS A339946
    Prior statement or proof identified in the research comparison
  • OEIS A361717
    Prior statement or proof identified in the research comparison

How the result developed

  1. 16 Nov 2026 · Manuscript date [1]

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

  2. 17 Nov 2026 · Follow-up work [2]

    GitHub reviewer bocowgill · The reviewer confirms the prime ranges, including the case p=2p=2, and compares five theorem statements with the pinned source. Renaming the namespace leaves the formulas unchanged.

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 proofs of the prime-level supercongruences for the two sequences. 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. The conjectures are due to Peter Bala.

Importance

The package proves the conjectured congruence for all positive multipliers and determines the exceptional behavior at 5. It also settles the separate third-power congruence for A361717.

Technical verification

The project reports a warning-free Lean 4.35.0 build, an axiom audit and a statement comparison for the selected declarations. The checks cover the reciprocal-coefficient congruences, the behavior at 5 and A361717 Conjecture 2. In Formal Conjectures, reviewer bocowgill compared the statements with the pinned Palomar package. The review concerned statement alignment and the previously recorded Lean check.

Formal checking

The project reports a warning-free Lean 4.35.0 build, an axiom audit and a statement comparison for the selected declarations. The checks cover the reciprocal-coefficient congruences, the behavior at 5 and A361717 Conjecture 2. In Formal Conjectures, reviewer bocowgill compared the statements with the pinned Palomar package. The review concerned statement alignment and the previously recorded Lean check.

Checker
Lean 4.35.0
Scope
Five targets for A339946, its multiplier family, and A361717 Conjecture 2.
Basis
Reported by the linked checker

Human understanding

The project documents Li’s direction of the work and a review by another AI agent. A human explanation of the new argument is undocumented.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Historical backfill after source and scope review.