Visual walkthrough — LCM — prime factorization method, relationship HCF × LCM = product
Before we begin, three plain-word promises about the symbols:
- and are just the two numbers we start with (e.g. and ).
- A prime is a number with no divisors except and itself: (see Prime Numbers and Factorization).
- HCF = biggest number dividing both; LCM = smallest number both divide into. That's it.
Step 1 — Every number is a tower of prime blocks
WHAT. Take one number, say , and keep splitting it until only primes remain: .
WHY. The Fundamental Theorem of Arithmetic promises this splitting is unique — there is one and only one recipe of primes for each number. Because the recipe is unique, we can compare two numbers ingredient by ingredient with no ambiguity. That comparison is the whole engine of this page.
PICTURE. Read the number as towers, one tower per prime. The height of a tower = the exponent (how many copies of that prime).

Step 2 — Line up the two numbers, prime by prime
WHAT. Put and side by side and write every prime that appears in either, even if one has height .
WHY. Writing the missing prime as (a tower of height — an empty spot) lets both numbers use the same list of primes. Now a comparison of heights is a fair, column-by-column game.
PICTURE. Two rows of towers over the same three columns (, , ). Notice has an empty column at .

Step 3 — What does "divides both" demand? (the HCF rule)
WHAT. A number divides if 's recipe fits inside 's recipe — every one of 's towers must be no taller than 's tower for that prime.
WHY. You cannot pull out of a number that only has inside it — there simply aren't enough copies of . So to divide both and , each of 's towers must fit under and under . The tallest tower that fits under both is the shorter of the two — the .
PICTURE. For each column, the HCF slices off at the height of the shorter tower (highlighted).

Step 4 — What does "multiple of both" demand? (the LCM rule)
WHAT. A number is a multiple of if fits inside — now 's towers must be at least as tall as 's. To be a multiple of both, each tower must clear and , so it must reach the taller one — the . Taking exactly the max (not more) keeps smallest.
WHY , not ? "Least" in Least Common Multiple describes the finished number being smallest — but to be divisible by both you still need enough of each prime, so you must reach the taller requirement. Choosing here would leave one number unable to divide in.
PICTURE. For each column, the LCM rises to the taller tower (highlighted).

Step 5 — The magic identity: min + max = the two heights
WHAT. For any two heights and :
WHY. Whichever tower is shorter is picked by ; the other one is picked by . Between them the two picks use up both towers exactly once — nothing double-counted, nothing dropped. This is the hinge of the whole proof.
PICTURE. Stack the "short pick" on top of the "tall pick": their combined height equals the two original towers stacked. Compare against — same total.

Step 6 — Multiply HCF by LCM, one column at a time
WHAT. When you multiply HCF and LCM, the tower heights add column by column (because ). So at each prime the combined height is — which Step 5 says equals .
WHY. And splits back into "the part" times "the part":
PICTURE. Column by column, HCF-tower + LCM-tower rebuilds -tower + -tower. Summed over all columns, HCF × LCM reassembles exactly .

Step 7 — The edge cases (never leave a scenario unshown)
WHAT & WHY. We must confirm the tower argument survives every boundary.
Case A — a prime missing from one number (). Empty tower. picks (not shared), picks (LCM must still carry it). Still . ✓ (This was the column above.)
Case B — one number divides the other, e.g. . , . Every -tower is its -tower, so (the smaller), (the larger). Check . ✓ The identity is trivially true here.
Case C — coprime numbers, e.g. . No column is shared: every , so . Then , and . ✓ (More on coprimes: HCF — prime factorization and Euclid's algorithm.)
Case D — the "three numbers" trap. The min+max pairing works for two heights only. With three towers there is a middle one that neither min nor max touches, so the identity breaks. Example : , , but .
PICTURE. Four mini-panels, one per case, each with its towers.

The one-picture summary
WHAT. One figure holds the whole story: two towers per prime → builds HCF, builds LCM → stacking them equals the two originals stacked → HCF × LCM .

Recall Feynman retelling — say it to a friend
Break each number into piles of prime blocks — one pile per prime. Line up the two numbers so their piles sit in the same columns; if a prime is missing, its pile is empty. Now play two games in every column. In the shared game you keep only the shorter pile — that's what both numbers truly have in common, and stacking all the shorter piles gives you the HCF. In the covering game you keep the taller pile — just enough for both numbers to fit inside — and stacking all the taller piles gives the LCM. Here's the punchline: in any column, the shorter plus the taller pile is just the two piles put together — you used up both, exactly once. So when you multiply HCF by LCM (which stacks all their piles together), you've secretly stacked every original pile of and every original pile of — that's . Shared part plus leftover part = the whole thing, no block wasted. That's why .
Recall Predict then check
If , , and , find . . ✓
Connections
- Parent: LCM & HCF × LCM = product
- Fundamental Theorem of Arithmetic
- Prime Numbers and Factorization
- HCF — prime factorization and Euclid's algorithm
- Divisibility Rules
- Applications — bells ringing, tiling, syncing cycles