Tutorial 8: Number Theory I
Tutorial 8: Number Theory I
Solution:
(a) Let x mod n = r1 . Then x = q1 n + r1 for some integer q1 .
Further let r1 mod m = r2 . Then r1 = q2 m + r2 for some
integer q2 . Hence,
x = q1 n + q2 m + r2 = q1 sm + q2 m + r2 = (q1 s + q2 )m + r2
a = q1 mn + r1 , 0 ≤ r1 < mn,
r1 = q2 n + r2 , 0 ≤ r2 < n,
a = (q1 m + q2 )n + r2 , 0 ≤ r2 < n.
(c) This is true. a mod n = 1 implies that there exist q such that
a = qn + 1, or a − qn = 1. The latter equation implies that
any common divisor of a and n must divide 1, hence must be
1. Therefore, gcd(a, n) = 1.
(d) This is false. For example, gcd(5, 3) = 1, but 5 mod 3 = 2.
(a − b) = qm
→ (a − b) = qtn.
a2 − b 2 = (a + b)(a − b) = (a + b)qm.
21 ·154 x = 5?
if yes, give the value of x (it is not necessary to show your work).
If no, prove that such an x does not exist.
21 ·154 x = b
21 ·154 x = 42