lean_workbook_plus_25852
ProvedWe can use recursion. Define to be the amount of digit numbers that end with , and be the amount that don't end with . Then , and . We can then solve for using , to get our answer of
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_25852 (a b : ℕ → ℕ) (h₀ : a 1 = 1) (h₁ : b 1 = 2) (h₂ : ∀ i, b (i + 1) = 2 * b i + 2 * a i) (h₃ : ∀ i, a (i + 1) = b i) : a 7 + b 7 = 1224 := by sorry
Source