Congruence
For a positive integer π, the integers π and π are congruent πππ π if their remainders when divided by π are the same.
Info
52 β‘ 24 (πππ 7)
As we can see above, 52 and 24 are congruent (πππ 7) because:
- 52 (πππ 7) = 3
- 24 (πππ 7) = 3
Note thatΒ =Β is different fromΒ β‘
Properties of Addition in Modular Arithmetic
- If π + π = π, then π (πππ π) + π (πππ π) β‘ π (πππ π)
- If π β‘ π (πππ π), then π + π β‘ π + π (πππ π) for any integer π
- If π β‘ π (πππ π) and π β‘ π (πππ π), then π + π β‘ π + π (πππ π)
- If π β‘ π (πππ π), then -π β‘ βπ (πππ π)
Properties of Multiplication in Modular Arithmetic
- If πβ π = π, thenΒ π(πππ π) β π(πππ π) β‘ π(πππ π).
- If π β‘ π (πππ π), then ππ β‘ ππ (πππ π)Β for any integer π
- If π β‘ π (πππ π)Β andΒ π β‘ π (πππ π), then ππ β‘ ππ (πππ π)
Properties of Exponentiation in Modular Arithmetic
- If π β‘ π (πππ π), then ππ β‘ ππ (πππ π)Β for any positive integer π
Properties of Division in Modular Arithmetic
- IfΒ πππ(π,π) = 1 and ππ β‘ ππ (πππ π), thenΒ πΒ β‘ π (πππ π)