USA2025 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.Algebra.Field.ZMod
import Mathlib.Data.Nat.Factorial.BigOperators
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Data.Nat.GCD.BigOperators
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.LinearCombination.Lemmas
theorem _root_.LeanGolf.compfiles.usa2025_p5 (k : ℕ) (_hk : 0 < k) :
k ∈ solution_set ↔ ∀ n : ℕ, 0 < n → (n + 1) ∣ ∑ i ∈ range (n + 1), (n.choose i) ^ kTrusted statement context
noncomputable section
namespace Usa2025P5
open Finset
open scoped Nat
abbrev solution_set : Set ℕ := { k | Even k }