MathLabs
TheoremProved

Product identity connecting gcd and lcm

Statement

For any two positive integers aa and bb, gcd⁡(a,b)⋅lcm⁡(a,b)=ab\gcd(a,b)\cdot\operatorname{lcm}(a,b)=ab.

Why is it true?

For each prime pp, gcd⁡(a,b)\gcd(a,b) takes the smaller exponent of pp in a,ba,b while lcm⁡(a,b)\operatorname{lcm}(a,b) takes the larger exponent; adding the smaller and larger of two numbers always gives their sum.

Proof sketch

Step 1. Write the prime factorizations of aa and bb over all primes pp: a=∏ppepa=\prod_p p^{e_p} and b=∏ppfpb=\prod_p p^{f_p}, where ep,fp≥0e_p,f_p\ge0 and only finitely many exponents are nonzero.

Step 2. A positive integer d=∏ppcpd=\prod_p p^{c_p} divides both aa and bb iff cp≤epc_p\le e_p and cp≤fpc_p\le f_p for every pp, so the largest such divisor chooses cp=min⁡(ep,fp)c_p=\min(e_p,f_p): gcd⁡(a,b)=∏ppmin⁡(ep,fp)\gcd(a,b)=\prod_p p^{\min(e_p,f_p)}. Dual reasoning for common multiples chooses the smallest exponent at least as large as both, giving lcm⁡(a,b)=∏ppmax⁡(ep,fp)\operatorname{lcm}(a,b)=\prod_p p^{\max(e_p,f_p)}.

Step 3. For any two real numbers, min⁡(ep,fp)+max⁡(ep,fp)=ep+fp\min(e_p,f_p)+\max(e_p,f_p)=e_p+f_p. Multiplying the two productsprime-by-prime therefore gives gcd⁡(a,b)⋅lcm⁡(a,b)=∏ppmin⁡(ep,fp)+max⁡(ep,fp)=∏ppep+fp=(∏ppep)(∏ppfp)=ab\gcd(a,b)\cdot\operatorname{lcm}(a,b)=\prod_p p^{\min(e_p,f_p)+\max(e_p,f_p)}=\prod_p p^{e_p+f_p}=\left(\prod_p p^{e_p}\right)\left(\prod_p p^{f_p}\right)=ab.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. David M. Burton (2010). Elementary Number Theory
  2. John H. Conway, Richard K. Guy (1996). The Book of Numbers · DOI:10.1007/978-1-4612-4072-3