import Mathlib.Data.Real.Basic
import Mathlib.Data.Real.Pi.Bounds
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic
/-!
# USA Mathematical Olympiad 1996, Problem 1
Prove that the average of the numbers n⬝sin(n π / 180)
for n ∈ {2,4,6,…,180} is 1/tan(π/180).
-/
namespace Usa1996P1
theorem usa1996_p1 :
(1 / (90:ℝ)) * ∑ n ∈ Finset.range 90, (2 * (n+1)) * Real.sin ((2 * (n+1)) * Real.pi / 180)
= 1 / Real.tan (Real.pi / 180) := sorry
end Usa1996P1
This problem has a complete formalized solution.