Putnam 2006 A5
open: first valid proof sets the record
PutnamBench · 2006 A5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2006_a5
(n : ℕ)
(theta : ℝ)
(a : Set.Icc 1 n → ℝ)
(nodd : Odd n)
(thetairr : Irrational (theta / Real.pi))
(ha : ∀ k : Set.Icc 1 n, a k = Real.tan (theta + (k * Real.pi) / n))
: (∑ k : Set.Icc 1 n, a k) / (∏ k : Set.Icc 1 n, a k) = putnam_2006_a5_solution nTrusted statement context
noncomputable section
abbrev putnam_2006_a5_solution : ℕ → ℤ :=
(fun n : ℕ => if (n ≡ 1 [MOD 4]) then n else -n)