Title:Pronic indices for odd coefficients of
Statement:Conjecture: Odd terms occur only at positions for .
A formal proof has been found with the methods described in arxiv/2605.22763.
This statement is equivalent to
OeisA323557.odd_a_implies_pronic. The two sequences differ only by the sign on each summand, so they agree modulo and have the same odd indices.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.06229 [math.NT] · NS.06229v1 for this version |
| Declaration: | OeisA325046.odd_a_implies_pronic |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 67dda7bf36133666b6e2d2340e9fc8e22b4f6ec057b5e6f54b2aedd2cf1a74d5 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/325046.lean |
Formal statement
theorem odd_a_implies_pronic (N : ℕ) : a N % 2 = 1 → ∃ k : ℕ, N = k * (k + 1)Show the full Challenge.lean (104 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Pronic indices for odd coefficients of $\sum_{n \ge 0} x^n \frac{(1+x^n)^n}{(1-x^{n+1})^{n+1}}$
Coefficients of G.f. $\sum_{n \ge 0} x^n \cdot \frac{(1 + x^n)^n}{(1 - x^{n+1})^{n+1}}$.
The term $a(N)$ is the coefficient of $x^N$ in the generating function.
Expanding the terms, we get a formula for $a(N)$:
$$a(N) = \sum_{n=0}^N \sum_{k=0}^n \mathbf{1}_{n + nk + (n+1)j = N} \binom{n}{k} \binom{n+j}{j}$$
where $j = \frac{N - n(k+1)}{n+1}$.
*References:*
- [A325046](https://oeis.org/A325046)
- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.
-/
@[expose] public section
namespace OeisA325046
open Nat
open Finset
/--
Coefficients of G.f. $\sum_{n \ge 0} x^n \cdot \frac{(1 + x^n)^n}{(1 - x^{n+1})^{n+1}}$.
The term $a(N)$ is the coefficient of $x^N$ in the generating function.
Expanding the terms, we get a formula for $a(N)$:
$$a(N) = \sum_{n=0}^N \sum_{k=0}^n \mathbf{1}_{n + nk + (n+1)j = N} \binom{n}{k} \binom{n+j}{j}$$
where $j = \frac{N - n(k+1)}{n+1}$.
-/
def a (N : ℕ) : ℕ :=
-- The outer sum runs over $n$ from $0$ to $N$.
(range (N + 1)).sum (fun n =>
-- The inner sum runs over $k$ from $0$ to $n$.
(range (n + 1)).sum (fun k =>
let R : ℕ := N - n * (k + 1)
let m : ℕ := n + 1
-- We require $R = N - n(k+1) \ge 0$ and $m = n+1$ must divide $R$.
if n * (k + 1) ≤ N ∧ R % m = 0 then
-- $j = R / m$.
let j : ℕ := R / m
-- The summand is $\binom{n}{k} \binom{n+j}{j}$.
n.choose k * (n + j).choose j
else
0
)
)
@[category test, AMS 11]
lemma a_0 : a 0 = 1 := by rfl
@[category test, AMS 11]
lemma a_1 : a 1 = 2 := by rfl
@[category test, AMS 11]
lemma a_2 : a 2 = 3 := by rfl
@[category test, AMS 11]
lemma a_3 : a 3 = 4 := by rfl
@[category test, AMS 11]
lemma a_4 : a 4 = 6 := by rfl
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: Odd terms occur only at positions $n(n+1)$ for $n \ge 0$.
A formal proof has been found with the methods described in
[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).
This statement is equivalent to `OeisA323557.odd_a_implies_pronic`. The two sequences differ
only by the sign $(-1)^j$ on each summand, so they agree modulo $2$ and have the same odd
indices.
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/325046.wip.lean#L166"]
theorem odd_a_implies_pronic (N : ℕ) : a N % 2 = 1 → ∃ k : ℕ, N = k * (k + 1) := by
sorry
end OeisA325046
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA325046.odd_a_implies_pronic with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_odd_a_implies_pronic : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-325046 nosorry submit oeis-325046 nosorry/oeis-325046/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.