/-
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.
-/
import FormalConjecturesUtilConjectures associated with A113252
Corresponds to m = 6 in a family of 4th order linear recurrence sequences
This sequence is defined by the linear recurrence relation a(n) = -4 a(n-1) + 144 a(n-3) + 1296 a(n-4) for n > 3. Initial values are a(0) = -1, a(1) = 4, a(2) = 92, a(3) = 784.
References:
namespace OeisA113252a n is the sequence defined by the linear recurrence $a(n) = -4 a(n-1) + 144 a(n-3) + 1296 a(n-4)$ with initial values $-1, 4, 92, 784$.
def a : ℕ → ℤ
| 0 => -1
| 1 => 4
| 2 => 92
| 3 => 784
| n + 4 => -4 * a (n + 3) + 144 * a (n + 1) + 1296 * a n@[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 = 4 := ⊢ a 1 = 4 All goals completed! 🐙@[category test, AMS 11]
theorem a_2 : a 2 = 92 := ⊢ a 2 = 92 All goals completed! 🐙@[category test, AMS 11]
theorem a_3 : a 3 = 784 := ⊢ a 3 = 784 All goals completed! 🐙@[category test, AMS 11]
theorem a_4 : a 4 = -3856 := ⊢ a 4 = -3856 All goals completed! 🐙Conjecture: $a(m, 2n+1)$ is a perfect square for all $m, n$ (see A113249). Specialized for $m=6$, which is A113252.
@[category research solved, AMS 11,
formal_proof using lean4 at
"https://github.com/KitaKen1/oeis-a113249-family-square-terms-lean/blob/9b999db08344184285e8050c2722c845fd5f5309/lean/OeisA113249FamilyFC.lean#L116-L124"]
theorem conjecture : ∀ n : ℕ, IsSquare (a (2 * n + 1)) := ⊢ ∀ (n : ℕ), IsSquare (a (2 * n + 1))
All goals completed! 🐙end OeisA113252