numbertheory_prmdvsneqnsqmodpeq0
open: first valid proof sets the record
miniF2F · numbertheory · MIT
Copyright (c) Meta Platforms, Inc. and affiliates.
Statement
import Mathlib
theorem LeanGolf.minif2f.numbertheory_prmdvsneqnsqmodpeq0 (n : ℤ) (p : ℕ) (h₀ : Nat.Prime p) :
↑p ∣ n ↔ n ^ 2 % p = 0Trusted statement context
open BigOperators Real Nat Topology Rat