Little.Basic #
This file provides Fermat's little theorem.
Results #
mod_add_pow: ifpis prime then(m + n)ᵖ ≡ mᵖ + nᵖ [MOD p]mod_pow_Fermat: ifpis prime thennᵖ ≡ n [MOD p]
Notes #
You should use Nat.ModEq.pow_totient instead of mod_pow_Fermat.