imo_1977_p5
open: first valid proof sets the record
miniF2F · imo · MIT
Copyright (c) Meta Platforms, Inc. and affiliates.
Statement
import Mathlib
theorem LeanGolf.minif2f.imo_1977_p5 (a b q r : ℕ) (h₀ : r < a + b) (h₁ : a ^ 2 + b ^ 2 = (a + b) * q + r)
(h₂ : q ^ 2 + r = 1977) :
abs ((a : ℤ) - 22) = 15 ∧ abs ((b : ℤ) - 22) = 28 ∨
abs ((a : ℤ) - 22) = 28 ∧ abs ((b : ℤ) - 22) = 15Trusted statement context
open BigOperators Real Nat Topology Rat