lean_workbook_plus_47587
ProvedWe will find the number of ways to climb stairs with jumps of size . Denote this number as . If our first jump is , we have stairs left to climb, in ways. Similarly, for jumps, we find another ways, and after a jump. Our recursion is (the ) Our initial terms are , , and . The value of .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_47587 (a : ℕ → ℕ) (h₀ : a 0 = 1) (h₁ : a 1 = 1) (h₂ : a 2 = 2) (h₃ : ∀ n, a (n + 3) = a (n + 2) + a (n + 1) + a n) : a 6 = 24 := by sorry
Source