Congruence_of_Powers
Provedmodulo-arithmeticproofwiki
If a ≡ b (mod m), then a^n ≡ b^n (mod m) for all natural numbers n.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem Congruence_of_Powers (a b : ℤ) (m : ℤ) (h : a % m = b % m) (n : ℕ) : (a ^ n) % m = (b ^ n) % m := by sorry
Source