The fifteenth term of an integer recurrence
ProvedWorkbookSource.problem_29548lean-workbooksource-checked
Let , , and Compute .
Source: InternLM Lean-Workbook, record lean_workbook_29548 (Apache-2.0). The complete source proposition and its explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_29548 (a : ℕ → ℤ) (a0 : a 0 = 2) (a1 : a 1 = 9) (a_rec : ∀ n, n ≥ 2 → a n = 2 * a (n - 1) - 4 * a (n - 2)) : a 15 = -2^16 := by sorry
Source