USA1989 P1
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2025 David Renshaw. All rights reserved. Authors: Shalev Wengrowsky
Statement
import Mathlib.Tactic
import Mathlib.Tactic.NthRewrite
import Mathlib.Data.Rat.Defs
import Mathlib.Data.Fin.Basic
theorem _root_.LeanGolf.compfiles.usa1989_p1 :
t 1988 = solutions.1 * s 1989 - solutions.2.1 ∧
u 1988 = solutions.2.2.1 * s 1989 - solutions.2.2.2Trusted statement context
noncomputable section
namespace Usa1989P1
def s (n : ℕ) : ℚ := ∑i ∈ Finset.Icc 1 n, 1 / i
def t (n : ℕ) : ℚ := ∑i ∈ Finset.Icc 1 n, s i
def u (n : ℕ) : ℚ := ∑i ∈ Finset.Icc 1 n, t i / (i + 1)
abbrev solutions : (ℕ × ℕ × ℕ × ℕ) := (1989, 1989, 1990, 2*1989)