amc12a_2009_p7
open: first valid proof sets the record
miniF2F · amc12a · MIT
Copyright (c) Meta Platforms, Inc. and affiliates.
Statement
import Mathlib
theorem LeanGolf.minif2f.amc12a_2009_p7
(x : ℝ)
(n : ℕ)
(a : ℕ → ℝ)
(h₁ : ∀ m, a (m + 1) - a m = a (m + 2) - a (m + 1))
(h₂ : a 1 = 2 * x - 3)
(h₃ : a 2 = 5 * x - 11)
(h₄ : a 3 = 3 * x + 1)
(h₅ : a n = 2009) :
n = 502Trusted statement context
open BigOperators Real Nat Topology Rat