1. The Two-Number Case
Theorem 1
Given two nonzero natural numbers n, m, we have
with the two immediate corollaries
Let's look at three numerical examples of increasing complexity.
Example 1
Let n=3, m=4 (coprime). We have LCM(3,4)=12, GCD(3,4)=1, so
Example 2
Let n=12, m=90. We have LCM(12,90)=180, GCD(12,90)=6, so
Example 3
Let n=24, m=30. The factorizations are 24=23·3 and 30=2·3·5. So LCM(24,30)=2max(3,1)·3·5=120 and GCD(24,30)=2min(3,1)·3=6. Check:
This example is useful because it anticipates concretely the maximum-exponent / minimum-exponent mechanism that will be formalized in Section 2.
We now give a direct proof of Theorem 1, by double inequality (a second, purely algebraic proof will follow in Section 2 once canonical factorization has been introduced).
Direct proof. Let D=GCD(n,m) and G=LCM(n,m). Rewrite the claim n·m=G·D as G=nm/D, and show that the number G so defined satisfies the definition of LCM, i.e.: (a) it is a multiple of n and of m; (b) no smaller common multiple exists.
For (a): since D divides both n and m, there exist natural numbers k,h with n=kD and m=hD. Then G=nm/D=km (a multiple of m) and G=nm/D=hn (a multiple of n).
For (b): suppose for contradiction that a common multiple G'<G exists, i.e. G'=h'n=k'm for some natural numbers h',k'. Setting D'=nm/G', one checks that D'=n/h'=m/k', so D' divides both n and m: D' is a common divisor of n and m. But G'<G implies D'=nm/G'>nm/G=D, i.e. D'>D, contradicting the maximality of D as the GCD.
This contradiction proves that no common multiple smaller than G exists: G is therefore LCM(n,m), and the claim is proved.
∎