Putnam 1997 B1
open: first valid proof sets the record
PutnamBench · 1997 B1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_1997_b1
(F : ℕ → ℝ)
(hF : F = fun (n : ℕ) => ∑ m ∈ Finset.Icc 1 (6 * n - 1), min (dist_to_int (m/(6*n)) ) (dist_to_int (m/(3*n))))
: ∀ n, n > 0 → F n = putnam_1997_b1_solution nTrusted statement context
noncomputable section
open Filter Topology
abbrev putnam_1997_b1_solution : ℕ → ℝ :=
fun n => n
noncomputable def dist_to_int : ℝ → ℝ := fun r => |r - round r|