Title:A self-compositional exponential generating function
Statement:For every , "a(n) == 1 (mod 3)".
- Paul D. Hanna, Jan 02 2024.
Proved by Wentao Li with OpenAI Codex assistance; see [Li26].
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.06357 [math.NT] · NS.06357v1 for this version |
| Declaration: | OeisA368630.conjecture_mod_three |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 03bf4d21e5cfdd74e8fe20489f207e4a3ab294598272bd633f104437115ffa42 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/368630.lean |
Formal statement
theorem conjecture_mod_three (n : ℕ) : a n % 3 = 1Show the full Challenge.lean (115 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# A self-compositional exponential generating function
The normalized exponential generating function of OEIS A368630 satisfies
$A(x/A(x)^2)=\exp(xA(x))$, with $A(0)=1$.
*References:*
- [A368630](https://oeis.org/A368630), Paul D. Hanna, 2024.
- [Li26] Wentao Li, [Congruences of the exponential generating sequence](https://github.com/VictorLiwentao/lean-oeis-proofs/blob/e0e499973c3398f08ed91b39618f1948fe1804a5/proofs/new-proofs/A368630/PROOF.md), 2026.
-/
@[expose] public section
namespace OeisA368630
open PowerSeries
/-- The rational exponential generating series of an integer sequence. -/
noncomputable def egf (a : ℕ → ℤ) : ℚ⟦X⟧ :=
PowerSeries.mk fun n => (a n : ℚ) / n.factorial
/-- The defining equation for the integer EGF coefficients of OEIS A368630. -/
def IsGeneratingSequence (c : ℕ → ℤ) : Prop :=
(egf c).constantCoeff = 1 ∧
(egf c).subst (X * ((egf c)⁻¹) ^ 2) = (exp ℚ).subst (X * egf c)
/-- The integer coefficients of the normalized exponential generating function. -/
noncomputable def a : ℕ → ℤ := Classical.epsilon IsGeneratingSequence
/-- The original equation defines a unique integer coefficient sequence; see [Li26]. -/
@[category API, AMS 11 13,
formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000013"]
theorem exists_unique_sequence : ∃! c : ℕ → ℤ, IsGeneratingSequence c := by
sorry
/-- The selected sequence satisfies the defining equation. -/
@[category API, AMS 11 13]
theorem a_spec : IsGeneratingSequence a :=
Classical.epsilon_spec exists_unique_sequence.exists
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by
have h := a_spec.1
norm_num [egf] at h
exact_mod_cast h
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
sorry
@[category test, AMS 11]
theorem a_2 : a 2 = 7 := by
sorry
@[category test, AMS 11]
theorem a_3 : a 3 = 136 := by
sorry
@[category test, AMS 11]
theorem a_4 : a 4 = 4933 := by
sorry
/--
For every $n \ge 0$, "a(n) == 1 (mod 3)".
- Paul D. Hanna, Jan 02 2024.
Proved by Wentao Li with OpenAI Codex assistance; see [Li26].
-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000013"]
theorem conjecture_mod_three (n : ℕ) : a n % 3 = 1 := by
sorry
/--
For every $n \ge 0$, "a(2*n) == 1 (mod 2)".
- Paul D. Hanna, Jan 02 2024.
Proved by Wentao Li with OpenAI Codex assistance; see [Li26].
-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000013"]
theorem conjecture_even (n : ℕ) : a (2 * n) % 2 = 1 := by
sorry
/--
For every $n \ge 1$, "a(2*n+1) == 0 (mod 2)". The term $a(1)=1$ is excluded.
- Paul D. Hanna, Jan 02 2024.
Proved by Wentao Li with OpenAI Codex assistance; see [Li26].
-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000013"]
theorem conjecture_odd (n : ℕ) (hn : 1 ≤ n) : a (2 * n + 1) % 2 = 0 := by
sorry
end OeisA368630
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA368630.conjecture_mod_three with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_mod_three : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-368630 nosorry submit oeis-368630 nosorry/oeis-368630/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture-even — known result
- conjecture-odd — known result
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.