lean_workbook_plus_73551
ProvedSolutionWe try to find a recursive sequence, \n\n \begin{tabular}{|l|c|l|c|l|} \hline Stairs Walked & Distinct Ways to make the step \ \hline 1 & 1 \ \hline 2 & 2 \ \hline 3 & 4 \ \hline 4 & 7 \ \hline \end{tabular} From here, we can easily see the recursive sequence \n\n
Thus, we have and .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_73551 (a : ℕ → ℕ) (h₀ : a 1 = 1) (h₁ : a 2 = 2) (h₂ : a 3 = 4) (h₃ : a 4 = 7) (h₄ : ∀ n ≥ 5, a n = a (n - 1) + a (n - 2) + a (n - 3)) : a 6 = 24 := by sorry
Source