USA2021 P5
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Analysis.Normed.Field.Basic
import Mathlib.Data.ZMod.Defs
theorem _root_.LeanGolf.compfiles.usa2021_p5 (n : ℕ) (hn : 4 ≤ n) (a b : ZMod n → ℝ)
(ha : ∀ k, 0 < a k) (_hb : ∀ k, 0 < b k) :
((∀ k, a k = b k + b (k + 1)) ∧
(∀ k, b k = 1 / a (k - 1) + 1 / a k)) ↔ (a, b) = solution nTrusted statement context
noncomputable section
namespace Usa2021P5
abbrev solution (n : ℕ) : (ZMod n → ℝ) × (ZMod n → ℝ) :=
(fun _ => 2, fun _ => 1)