fermat_little_5
Provedelementaryfermatfltmodular-arithmeticnumber-theoryopen-problemprime-5
Fermat's Little Theorem for p = 5. For any integer a, 5 divides a^5 − a. Equivalently, a^5 ≡ a (mod 5) for all integers a. This is the special case p=5 of Fermat's Little Theorem: for any prime p and any integer a, p | a^p − a. The result is used in Dirichlet's elementary proof of FLT for n=5, where one needs to analyze divisibility by 5 in the factorization (a+b)·Φ₅(a,b) = c^5.
Preamble
import Mathlib.Data.Int.Basic import Mathlib.Data.ZMod.Basic
Formal statement
theorem fermat_little_5 (a : ℤ) : (5 : ℤ) ∣ a ^ 5 - a := by sorry