Putnam 2024 A4
open: first valid proof sets the record
PutnamBench · 2024 A4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2024_a4 :
{p : ℕ | p.Prime ∧ 5 < p ∧ ∃ a r : ℤ, 1 ≤ r ∧ r ≤ p - 1 ∧
∃ e : ℕ → ℕ, Set.BijOn e (Set.Icc 0 (p - 5 : ℕ)) (Set.Icc 0 (p - 5 : ℕ)) ∧
∀ n, 1 ≤ n ∧ n ≤ (p - 5 : ℕ) →
(p : ℤ) ∣ a ^ (e n : ℕ) - a ^ (e (n - 1) : ℕ) - r} =
putnam_2024_a4_solutionTrusted statement context
noncomputable section
noncomputable abbrev putnam_2024_a4_solution : Set ℕ :=
{7}