/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtilHanna's exponential series for $\binom{n}{k}^{n+k}$
The sequence lists the coefficients of $$\exp\Bigl(\sum_{n \ge 1} \Bigl[\sum_{k=0}^{n} \binom{n}{k}^{n+k} x^k\Bigr] \frac{x^n}{n}\Bigr).$$
References:
A181082, Paul D. Hanna, 2010.
@[expose] public sectionnamespace OeisA181082open PowerSeriesThe series $\sum_{n \ge 1} \bigl[\sum_{k \ge 0} f(n,k),x^k\bigr] \frac{x^n}{n}$ over $\mathbb{Q}$. Its coefficient of $x^m$ is $\sum_{n=1}^{m} f(n, m-n)/n$.
noncomputable def hannaLog (f : ℕ → ℕ → ℤ) : ℚ⟦X⟧ :=
mk fun m => ∑ n ∈ Finset.Icc 1 m, (f n (m - n) : ℚ) / nThe series $\exp\Bigl(\sum_{n \ge 1} \bigl[\sum_{k \ge 0} f(n,k),x^k\bigr] \frac{x^n}{n}\Bigr)$ over $\mathbb{Q}$.
noncomputable def hannaExp (f : ℕ → ℕ → ℤ) : ℚ⟦X⟧ := subst (hannaLog f) (exp ℚ)The coefficients of $\exp\bigl(\sum_{n \ge 1} [\sum_{k=0}^{n} \binom{n}{k}^{n+k} x^k] x^n/n\bigr)$.
noncomputable def a (m : ℕ) : ℚ :=
coeff m (hannaExp fun n k => if k ≤ n then (n.choose k : ℤ) ^ (n + k) else 0)@[category test, AMS 11]
theorem a_0 : a 0 = 1 := ⊢ a 0 = 1
All goals completed! 🐙@[category test, AMS 11]
theorem a_1 : a 1 = 1 := ⊢ a 1 = 1
All goals completed! 🐙@[category test, AMS 11]
theorem a_2 : a 2 = 2 := ⊢ a 2 = 2
All goals completed! 🐙@[category test, AMS 11]
theorem a_3 : a 3 = 6 := ⊢ a 3 = 6
All goals completed! 🐙@[category test, AMS 11]
theorem a_4 : a 4 = 34 := ⊢ a 4 = 34
All goals completed! 🐙"Conjecture: this sequence consists entirely of integers."
Paul D. Hanna, Oct 02 2010.
Proved in Lean in the-omega-institute/trureturing on November 13, 2026. The linked formal proof is an independent proof by Wentao Li, with AI assistance.
@[category research solved, AMS 5 11 13, formal_proof using lean4 at
"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-17-000018"]
theorem conjecture (m : ℕ) : ∃ z : ℤ, a m = z := m:ℕ⊢ ∃ z, a m = ↑z
All goals completed! 🐙end OeisA181082end