Proof
The second statement of the theorem is a straightforward consequence of the first. So, we only prove the first. There are two parts to the proof:
In particular,
If (a (mod n)) · (b (mod n)) = 1 (mod n), then there is an integer x with
So, by Section 1.2, we find gcd(a,n) = 1.