tonit
- 55
- 1
Homework Statement
Show that m and n are relatively prime if and only if no prime divides both.
The Attempt at a Solution
Now, if m and n are relatively prime, we have gcd(m,n) = 1. All the common divisors of m and n must divide gcd(m,n), but the only divisors of 1 are 1 and -1. Thus they have no common prime divisor.
The converse:
Suppose we have the integers m and n with the following prime factorization:
m = p_1^{a_1}p_2^{a_2}...p_r^{a_r}
n = p_1^{b_1}p_2^{b_2}...p_r^{b_r}
where p_i are primes that divide at least one of m and n, and an exponent is zero if the prime in question doesn't occur in that number.
Now the gcd(m,n) = p_1^{k_1}p_2^{k_2}...p_r^{k_r} where k_i = min(a_i,b_i) for 1≤i≤r.
So, if m and n don't have any common primes, min(a_i,b_i) = 0 for 1≤i≤r thus having gcd(m,n) = 1. If not, then there would be at least one prime dividing both, thus leading m and n not be relatively prime.
I believe the first part is OK, but I'm not quite sure about the converse proof.