365 Fall07 Final Solns
365 Fall07 Final Solns
365 Fall07 Final Solns
MATH 365
Elementary Number Theory I
FALL 2007
Final
SOLUTIONS
January 18, 2008
15:00-16:50
Surname :
Name :
ID # :
Department :
Section :
Instructor :
Signature :
GOOD LUCK!
Please do not write below this line.
Q1 Q2 Q3 Q4 Q5 Q6 TOTAL
20 20 20 20 20 10 110
1. Find all integer solutions to the congruence 42x ≡ 90 (mod 156).
Solutions:
By applying the Euclidean algorithm, we have
156 = 3 · 42 + 30
42 = 30 + 12
30 = 2 · 12 + 6
12 = 2·6
So gcd (42, 156) = 6, and we are expecting 6 incongruent solutions this congruence.
Now
6 = 30 − 2 · 12
= 30 − 2 (42 − 30)
= 3 · 30 − 2 · 42
= 3 (156 − 3 · 42) − 2 · 42
= (3) (156) − (11) (42) .
Multiplying both sides by 15, we get 90 = (45) (156) − (165) (42). So 90 ≡ −165 · 42 (mod 156),
which means −165 ≡ −9 (mod 156) is a solution. Therefore, the six solutions are given by
156
x = −9 + t, where t = 0, 1, · · · , 5, i.e., x ≡ −9, 17, 43, 69, 95, 121 (mod 156).
6
2. Find the 2 smallest positive integers x such that
x ≡ 2 (mod 7)
x ≡ 3 (mod 11)
x ≡ 4 (mod 13) .
Solution:
Obviously 7, 11, 13 are pairwise relatively prime, so by the Chinese Remainder Theorem (CRT)
this system has a unique solution mod 7 × 11 × 13 = 1001.
(11 × 13) b1 ≡ 1 (mod 7) ⇐⇒ 3b1 ≡ 1 (mod 7) ⇐⇒ b1 ≡ 5 (mod 7)
(7 × 13) b2 ≡ 1 (mod 11) ⇐⇒ 3b2 ≡ 1 (mod 11) ⇐⇒ b2 ≡ 4 (mod 11)
(7 × 11) b3 ≡ 1 (mod 13) ⇐⇒ −b3 ≡ 1 (mod 13) ⇐⇒ b3 ≡ −1 (mod 13)
and x ≡ (143) (5) (2) + (91) (4) (3) + (77) (−1) (4) ≡ 212 (mod 1001).
Thus the two solutions are 212 and 1213.
3.
a) Give a careful statement of Wilson’s Theorem.
b) Is 4 (29!) + 5! divisible by 31?
Solution:
(a) Wilson’s theorem: If p is prime, then
(p − 1)! ≡ −1 (mod p) .