Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. If \(a ≡ b \bmod m\) and \(c ≡ d \bmod m\):
If we add them:
This proves that \(ac ≡ bd \bmod m\). As a corollary, we can also claim \(a^k ≡ b^k \bmod m\).