lean_workbook_plus_15826
DisprovedWe can solve this by recursion. \nLet f(n) be the number of ways to arrange the coins after n flips. \nIf the previous one was a tail, then there are f(n-1) ways to do it. \nIf the previous one was a head, then the next one has to be a head, so there are f(n-2) ways to do it. \nf(n)=f(n-1)+f(n-2). We can easily see f(0)=1 and f(1)=1, so we can solve from there for f(9) to get the answer is
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_15826 (f : ℕ → ℕ) (h₀ : f 0 = 1) (h₁ : f 1 = 1) (h₂ : ∀ n, f (n + 2) = f (n + 1) + f n) : f 9 = 89 := by sorry
Source