by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
Note that an=4(2+3)2n+1+(2−3)2n+1 . Define bn:=21((23+1)2n+1−(23−1)2n+1) . We see that {bn} satisfies b0=1 , b1=5 , and bn=4bn−1−bn−2 for all n≥2 . Note that bn is odd for each n . Now, we may write an=(2bn+1)2+(2bn−1)2 .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_28337 (a : ℕ → ℕ)
(b : ℕ → ℕ)
(h₀ : b 0 = 1)
(h₁ : b 1 = 5)
(h₂ : ∀ n ≥ 2, b n = 4 * b (n - 1) - b (n - 2))
(h₃ : ∀ n, Odd (b n))
(h₄ : ∀ n, a n = (b n + 1)^2 / 2^2 + (b n - 1)^2 / 2^2) :
∀ n, ∃ x y : ℕ, a n = x^2 + y^2 := by sorry