Professional Documents
Culture Documents
NQU Mod
NQU Mod
NQU Mod
1 Modular Operations
You can add, subtract, multiply, and exponentiate modulos. You can also divide, but care must be taken.
Fact 4 (Exponentiating) For integer a, b and positive integers n, k, if a ≡ b (mod n), then ak ≡ bk
(mod n).
As an exercise for the operations we’ve defined so far, pick your favorite ordered triple of positive integers
(a, b, n), and compute the remainder of a + b, a − b, ab, and ab1 when divided by n.
Fact 5 (Dividing) Let a, b, c be positive integers such that c | a and c | b. If a ≡ b (mod n) and gcd(a, n) =
1, then ac ≡ bc (mod n).
Example 2 (11 Divisibility Rule) If n = dk dk−1 ...d1 d0 , prove that n ≡ d0 − d1 + · · · + dk (−1)k (mod 11).