SOLUTION: I can see that it's true but how can I prove that ab=gcd(a,b)lcm(a,b) for any postive integer a and b??

Algebra ->  Divisibility and Prime Numbers -> SOLUTION: I can see that it's true but how can I prove that ab=gcd(a,b)lcm(a,b) for any postive integer a and b??       Log On


   



Question 424289: I can see that it's true but how can I prove that ab=gcd(a,b)lcm(a,b) for any postive integer a and b??
Answer by AnlytcPhil(1806) About Me  (Show Source):
You can put this solution on YOUR website!


To prove:
ab=gcd(a,b)*lcm(a,b)

We will show that they have the same set of divisors. 
That is, we will show that the largest non-negative power
of any prime which is a factor of ab is also the largest 
non-negative power of that prime which is a factor of 
gcd(a,b)lcm(a,b).
 
let p be any prime.  Then c and d exist so that  

c*p^n = a  and d*p^m = b  where n and m are maximum
so that neither c nor d is divisible by p. 
(Remark:  either n or m or both could be zero) 
 
Then ab = c*p^n*d*p^m = c*d*p^(n+m)

Without loss of generality, let us assume m < n

Then gcd(a,b) = e*p^m, and lcm(a,b) = f*p^n, where
neither e nor f is divisible by p. Therefore

gcd(a,b)lcm(a,b) = (e*p^m)(f*p^n) = ef*p^(m+n) 

Therefore the largest power of p which is a factor of 
gcd(a,b)lcm(a,b) is p^(m+n).

Also the largest power of p which is a factor of 
ab is p^(m+n).

Since this is true for any prime p, there can be no 
power of a prime which one contains as a factor that 
the other doesn't also contain as a factor. And, let's
face it, every factor is a power of a prime or the 
product of powers of primes, if we count the 0 power of 
a prime, which is 1. 

Edwin