IMO1981 P4
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2026 Constantin Seebach. All rights reserved. Authors: Constantin Seebach
Statement
import Mathlib
theorem _root_.LeanGolf.compfiles.imo1981_p4 (n : ℕ) :
(n ∈ values_a ↔ 2 < n ∧ ∃ k, last_divides_lcm_remaining n k)
∧ (n ∈ values_b ↔ 2 < n ∧ ∃! k, last_divides_lcm_remaining n k)Trusted statement context
noncomputable section
namespace Imo1981P4
open Finset
def last_divides_lcm_remaining (n k : ℕ) : Prop := k+n ∣ lcm (Icc (k+1) (k+n-1)) id
abbrev values_a : Set ℕ := Set.Ici 4
abbrev values_b : Set ℕ := {4}