/- 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 FormalConjecturesUtil /-! # Eighth root of the generating function of an Apéry-like sequence The auxiliary sequence used for the Hankel matrix, defined as $$\sum_{k=0}^n \binom{n}{k}^2 \binom{n+k}{k}^2$$ Determinant of the $(n+1) \times (n+1)$ Hankel-type matrix with $(i,j)$-entry equal to A005259$(i+j)$ for all $i,j = 0,\dots,n$. The entry function A005259 is taken to be $\sum_{k=0}^n \binom{n}{k}^2 \binom{n+k}{k}^2$. *References:* - [A228143](https://oeis.org/A228143) - [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al. - [A005259](https://oeis.org/A005259) -/ @[expose] public section namespace OeisA228143 open Polynomial open BigOperators Matrix Nat /-- The auxiliary sequence used for the Hankel matrix, defined as $$\sum_{k=0}^n \binom{n}{k}^2 \binom{n+k}{k}^2$$ -/ def aperyLike (n : ℕ) : ℕ := Finset.sum (Finset.range (n + 1)) fun k => (n.choose k)^2 * ((Nat.choose (n + k) k))^2 /-- Determinant of the $(n+1) \times (n+1)$ Hankel-type matrix with $(i,j)$-entry equal to A005259$(i+j)$ for all $i,j = 0,\dots,n$. The entry function A005259 is taken to be $\sum_{k=0}^n \binom{n}{k}^2 \binom{n+k}{k}^2$. -/ def a (n : ℕ) : ℕ := let dim : Type := Fin (n + 1) -- Matrix entries are lifted to ℤ for determinant calculation let M : Matrix dim dim ℤ := Matrix.of fun i j => (aperyLike (i.val + j.val) : ℤ) -- The sequence is known to be non-negative integers (nonn). M.det.natAbs open PowerSeries /-- The power series $A(x/3) = \sum_{n=0}^\infty \frac{a(n)}{3^n} x^n$ over ℚ. -/ def ogfAScaled : PowerSeries ℚ := PowerSeries.mk fun n => (a n : ℚ) / (3 ^ n : ℚ) @[category test, AMS 11] lemma a_0 : a 0 = 1 := by decide +kernel @[category test, AMS 11] lemma a_1 : a 1 = 48 := by decide +kernel @[category test, AMS 11] lemma a_2 : a 2 = 161856 := by decide +kernel @[category test, AMS 11] lemma a_3 : a 3 = 39002646528 := by decide +kernel @[category test, AMS 11] lemma a_4 : a 4 = 674708032182398976 := by decide +kernel set_option linter.style.formal_proof_palomar false in /-- Conjecture: if $A(x) = 1 + 48x + 161856 x^2 + \cdots$ denotes the o.g.f. then $A(x/3)^{1/8}$ has integer coefficients. - _Peter Bala_, Apr 22 2018 A formal proof has been found with the methods described in [arxiv/2605.22763](https://arxiv.org/abs/2605.22763). -/ @[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/228143.wip.lean#L698"] theorem exists_power_series_eighth_pow_eq : ∃ C : PowerSeries ℤ, (PowerSeries.map (Int.castRingHom ℚ)) (C ^ 8) = ogfAScaled := by sorry end OeisA228143