Number Theory
    20 min read
    August 2026

    GCD and LCM: the Fundamental Relationship and Its Generalization to N Numbers

    From the classic relationship between Greatest Common Divisor and Least Common Multiple of two numbers to its surprising generalization to a set of N natural numbers, through canonical factorization.

    1. The Two-Number Case

    Theorem 1

    Given two nonzero natural numbers n, m, we have

    n⋅m=GCD(n,m)⋅LCM(n,m).n\cdot m = GCD(n,m)\cdot LCM(n,m).

    with the two immediate corollaries

    LCM(n,m)=nmGCD(n,m),GCD(n,m)=nmLCM(n,m).LCM(n,m) = \frac{nm}{GCD(n,m)}, \qquad GCD(n,m) = \frac{nm}{LCM(n,m)}.

    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 3⋅4=12⋅1=LCM(3,4)⋅GCD(3,4).3\cdot 4 = 12\cdot 1 = LCM(3,4)\cdot GCD(3,4).

    Example 2

    Let n=12, m=90. We have LCM(12,90)=180, GCD(12,90)=6, so 12⋅90=180⋅6=LCM(12,90)⋅GCD(12,90).12\cdot 90 = 180\cdot 6 = LCM(12,90)\cdot GCD(12,90).

    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:

    120⋅6=720=24⋅30.120\cdot 6 = 720 = 24\cdot 30.

    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.

    ∎

    Comments

    Loading comments...

    Won't be published: only used for contact and moderation.

    0/3000 characters

    Anti-spam check in progress…

    © 2026 keenonmaths.org. Empowering mathematical minds worldwide.

    Educational articles are distributed under a Creative Commons BY-NC-ND 4.0 license.