For any two positive integers a and b, gcd(a,b)⋅lcm(a,b)=ab.
Why is it true?
For each prime p, gcd(a,b) takes the smaller exponent of p in a,b while 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 a and b over all primes p: a=∏ppep and b=∏ppfp, where ep,fp≥0 and only finitely many exponents are nonzero.
Step 2. A positive integer d=∏ppcp divides both a and b iff cp≤ep and cp≤fp for every p, so the largest such divisor chooses cp=min(ep,fp): gcd(a,b)=∏ppmin(ep,fp). Dual reasoning for common multiples chooses the smallest exponent at least as large as both, giving lcm(a,b)=∏ppmax(ep,fp).
Step 3. For any two real numbers, min(ep,fp)+max(ep,fp)=ep+fp. 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.