Every whole number greater than 1 breaks into prime factors in exactly one way — the foundation of GCD and LCM
Primes are the atoms of the whole numbers. 2, 3, 5, 7, 11, … can't be broken down any further, yet every whole number greater than 1 is built by multiplying these atoms. $60 = 2 \times 2 \times 3 \times 5$, $84 = 2 \times 2 \times 3 \times 7$ — no matter how big the number, it always comes down to a product of primes.
And that factorization is unique. Factor 60 as 10×6 or as 12×5 — keep going until only primes remain, and you always end up with the same bundle $2^{2} \times 3 \times 5$. Lay the two factorizations of two numbers over each other and the shared primes and all the primes show at a glance — that's the whole GCD·LCM method.
Let's build the result step by step, instead of memorizing.
Find the smallest prime $p_{1}$ that divides $n$ and divide it out. If $n/p_{1}$ is still greater than 1, repeat. Each division makes the number smaller, so eventually you reach 1 — $n = p_{1} p_{2} \cdots p_{k}$.
Suppose there is another factorization $n = q_{1} q_{2} \cdots$. Since $p_{1}$ divides that product, it must equal one of the $q_{j}$ (a property of primes: if a prime divides a product, it divides one of the factors). Match the factors up one by one and the two bundles of prime factors turn out exactly the same — only the order differs.
Lay the factor bundles over each other: the smaller exponent among the common primes is the GCD, and the larger exponent among all primes is the LCM. If $60 = 2^{2}\times 3 \times 5$ and $84 = 2^{2} \times 3 \times 7$, then GCD $= 2^{2}\times 3 = 12$, LCM $= 2^{2} \times 3 \times 5 \times 7 = 420$.
Each step also shows the "why".
The classic ways to lose points on a test.
Three questions to check the core idea. Click an option to see the explanation.
The formula is hiding in familiar scenes. Read it as a story and it sticks.
You have ribbons 12 m and 18 m long and want to cut both into the longest possible equal pieces? Among the common divisors of 12 and 18 (1, 2, 3, 6), the largest is 6 m — the GCD is exactly that length. $12 \to 2$ pieces, $18 \to 3$ pieces, nothing left over.
Now the reverse: two clocks with 12-minute and 18-minute cycles start together — the next moment their hands meet again at the start is the smallest common multiple of 12 and 18, namely 36 minutes — the LCM. Bus schedules, gear tooth counts, music beat cycles… questions asking "when do the same cycles meet again?" are almost all LCM.