lean_workbook_plus_8360
ProvedNote that, for , we can construct it by adding on three different types of steps to , , and . Thus, we have the recursion . We can easily find that , and . Adding several times, we have .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_8360 (a : ℕ → ℕ) (h₀ : a 1 = 1) (h₁ : a 2 = 2) (h₂ : a 3 = 4) (h₃ : ∀ n, a (n + 3) = a (n + 2) + a (n + 1) + a n) : a 6 = 24 := by sorry
Source