Least Common Multiple
Least Common Multiple (LCM): the smallest positive integer that is a multiple of two or more given integers. For example, . It is central to adding fractions, scheduling problems, and modular arithmetic. Known since antiquity and formalized through Euclid's number theory (~300 BCE).
Every common multiple of and is itself a multiple of the least common multiple. The LCM is not just the smallest — it generates all the others. So once you know , the complete set of common multiples is exactly .
Formal Statement
An integer is a multiple of an integer if for some integer ; equivalently, (" divides "). A common multiple of and is an integer divisible by both. The least common multiple is the smallest positive common multiple.
For nonzero integers and , the least common multiple is
Derivation hint: The set of positive common multiples is nonempty (it contains ), so by the well-ordering principle it has a least element. Here denotes the positive integers, and means " divides ." By convention .
For any two positive integers and ,
Derivation hint: Compare exponents of each prime on both sides; . where is the greatest common divisor. This gives a fast computational route:
Derivation hint: Divide both sides of equation [2] by , valid since the GCD is a positive divisor of .
If and have prime factorizations and (over all primes , with finitely many nonzero exponents), then
Derivation hint: A common multiple must contain each prime to at least the larger of the two exponents; the smallest such number takes exactly the maximum.
Why It Holds
We prove via prime exponents. 1. Setup. Write and using equation [4]'s notation. 2. Express both quantities. By the prime formulas,
3. Multiply. Their product collects exponents prime-by-prime:
4. Key arithmetic fact. For any two numbers, , because one of them is the max and the other is the min. Thus the exponent of each prime becomes . 5. Conclude. Therefore
Let and let be any common multiple of and . 1. Apply division with remainder. Divide by : there exist integers and with and . 2. Show is a common multiple. Since and (so ), we get . Identically . Hence is a common multiple of and . 3. Force . If , then would be a positive common multiple smaller than , contradicting minimality. So . 4. Conclude. Then , i.e. . Every common multiple is a multiple of the LCM.
∎Although Euclid never wrote "LCM" as we do, Books VII–IX of his Elements contain the foundational machinery: the Euclidean algorithm for the GCD (Propositions VII.1–2) and results on common multiples (VII.34–36). Proposition VII.35 essentially states that any common multiple of two numbers is a multiple of the least common multiple — exactly the generating property proved above. Euclid worked geometrically, treating numbers as line segments, yet his logic of divisibility is identical to the modern integer arguments. His insistence on rigorous proof made number theory a deductive science rather than a collection of computational recipes.
Building Intuition
Imagine two gears (or two blinking lights, or two runners on a circular track). Gear returns to its starting position every seconds; gear every seconds. They are both back at the start exactly when an integer number of -cycles equals an integer number of -cycles — that is, at every common multiple of and . The first time they synchronize is . After that, synchronization repeats at every multiple of the LCM, which is why the pattern of "everyone back home together" is itself perfectly periodic. Sharing common factors lets the gears resync sooner; being coprime (no shared factors) forces the longest possible wait, .
Worked Examples
Given: Compute .
Step 1 — Factor the denominators. , and .
Step 2 — Apply the prime formula, equation [4]. Take the maximum exponent of each prime:
Step 3 — Rewrite each fraction over 36.
Step 4 — Add.
Since , this is already in lowest terms.
Given: A train on Line 1 departs every minutes and a train on Line 2 every minutes. Both leave together at 8:00 AM. When do they next depart simultaneously?
Step 1 — Find the GCD by the Euclidean algorithm. , then , so .
Step 2 — Apply equation [3].
Step 3 — Convert to clock time. minutes hours minutes after 8:00 AM.
Common Misconceptions
The LCM is not the product unless the numbers are coprime. Beginners often "multiply the two numbers" — but , not . The product overcounts shared factors. The product equals the LCM only when . Equation [3], , makes this precise: dividing by the GCD removes the double-counted common part. A second pitfall: the LCM is always at least as large as the larger input (), whereas the GCD is at most the smaller input. Confusing which is "bigger" leads to wrong setups when adding fractions.
One might guess that scales linearly — e.g. that doubling both inputs doubles the LCM. Indeed is true. But changing only one input is unpredictable: , yet and . Increasing moves the LCM up, then down, because what matters is the prime-factor overlap, not the raw magnitude. The LCM is sensitive to structure, not size.
Connections
The LCM is inseparable from the Greatest Common Divisor via the product identity [2]; computing one instantly gives the other. Both rest on the Fundamental Theorem of Arithmetic, which guarantees the unique prime factorizations used in equation [4]. The LCM appears whenever one solves systems of congruences in Modular Arithmetic — the Chinese Remainder Theorem uses LCMs of the moduli to describe the periodicity of solutions. It is also the cornerstone of Operations with Fractions, where the least common denominator is precisely the LCM of the denominators. More abstractly, in lattice theory the LCM is the "join" and the GCD the "meet" of the divisibility partial order on the positive integers.
Real-World Applications
Historical Development
Subtleties & Limits
The LCM is elementary, yet its growth hides deep questions. Define . A remarkable theorem connects it to the Prime Number Theorem: is asymptotically equal to , i.e. — proving good explicit bounds on is essentially equivalent to estimating the distribution of primes, a topic that touches the (still unproven) Riemann Hypothesis. More elementary but genuinely open: precise understanding of the distribution of as range over intervals, and behavior of LCMs of random subsets, remain active research areas. So a concept introduced in grade school sits at the doorstep of the deepest unsolved problems in number theory.
See Also
Greatest Common Divisor · Euclidean Algorithm · Prime Factorization · Fundamental Theorem of Arithmetic · Modular Arithmetic · Chinese Remainder Theorem · Operations with Fractions · Divisibility