Divisibility properties

Why is the sum of two multiples of 7 always itself a multiple of 7, without ever adding them up? Divisibility properties are the general rules that answer questions like this — how divisibility behaves when numbers are added, subtracted, or multiplied, and how the factors shared by two numbers connect to their HCF and LCM. Instead of testing each combined number by hand, these rules let you reason about a sum, a difference, or a product directly from what you already know about its parts. This is part of the Number Play chapter of Class 8 Mathematics, building on factors, multiples, primes and composites, and the HCF–LCM recap using prime factorisation. The same reasoning — writing a number as d×kd \times k and tracking what happens to kk — is also the seed of the division algorithm and of proof-by-counterexample, both used constantly in later number theory.

The core insight

If a whole number dd divides two numbers aa and bb, it automatically divides every sum, difference, and multiple built from aa and bb — and this same "divide-and-track-the-quotient" idea proves why HCF(a,b)×LCM(a,b)=a×b\text{HCF}(a,b) \times \text{LCM}(a,b) = a \times b.

The core idea

A number aa is divisible by dd (equivalently, dd divides aa, written d∣ad \mid a) when a=d×ka = d \times k for some whole number kk. Here dd is called a factor of aa, and aa is a multiple of dd. Every divisibility property below is really the same trick played out with algebra: replace a number by d×(its quotient)d \times (\text{its quotient}), do the arithmetic, and read off the new quotient.

Sums and differences carry the common factor forward. If d∣ad \mid a and d∣bd \mid b, write a=dk1a = dk_1 and b=dk2b = dk_2. Then

a+b=d(k1+k2),a−b=d(k1−k2).a + b = d(k_1 + k_2), \qquad a - b = d(k_1 - k_2).

where: dd is the common factor, k1,k2k_1, k_2 are the (whole-number) quotients of aa and bb by dd. Because k1+k2k_1 + k_2 and k1−k2k_1 - k_2 are themselves whole numbers, dd divides both the sum and the difference — no new remainder can appear from adding or subtracting two exact multiples.

Multiplying by anything preserves divisibility. If d∣ad \mid a, then d∣(a×m)d \mid (a \times m) for any whole number mm, even one dd does not divide: a=dk⇒am=d(km)a = dk \Rightarrow am = d(km). This is stronger than the sum rule — it needs only one of the two numbers to carry the factor dd.

A mismatch breaks the sum. If d∣ad \mid a but d∤bd \nmid b, then dd cannot divide a+ba + b or a−ba - b either — if it did, subtracting the multiple of dd back out would force d∣bd \mid b, a contradiction.

Primes have a special veto power. If a prime pp divides a product a×ba \times b, then pp must divide aa or divide bb (or both). No composite divisor can guarantee this — for instance 6∣(4×9=36)6 \mid (4 \times 9=36), yet 66 divides neither 44 nor 99. This one property of primes is exactly what makes prime factorisation a trustworthy tool for HCF and LCM.

Figure
A number line marking multiples of 7 with 14 and 21 highlighted and their sum 35 landing exactly on another mark
A common factor survives addition: 7 divides 14 and 21, so 7 divides 35 0 7 14 21 28 35 14 + 21 = 35, still a multiple of 7 Every mark on the line is a multiple of 7 — moving from one mark to another mark always lands on a mark

Why HCF times LCM equals the product

The goal of this derivation is to show, using nothing beyond prime factorisation and the rules for adding exponents, why HCF(a,b)×LCM(a,b)\text{HCF}(a,b) \times \text{LCM}(a,b) always equals a×ba \times b for any two whole numbers aa and bb, and why this is not a coincidence but a direct consequence of how the "lowest power" and "highest power" rules for HCF and LCM are built.

Step 1. Write both numbers in prime-factorised form, listing every prime pp that appears in either number, using exponent 00 where a prime is absent. For a single prime pp, say aa contains pxp^{x} and bb contains pyp^{y} (with x,y≥0x, y \ge 0).

Step 2. Recall the definitions of HCF and LCM in terms of exponents. HCF takes the lowest power of each common prime, so its exponent for pp is min⁡(x,y)\min(x, y). LCM takes the highest power of every prime appearing in either number, so its exponent for pp is max⁡(x,y)\max(x, y).

Step 3. Add the two exponents contributed by pp to HCF×LCM\text{HCF} \times \text{LCM}: it is min⁡(x,y)+max⁡(x,y)\min(x,y) + \max(x,y). Whichever of x,yx, y is smaller and whichever is larger, this sum always equals x+yx + y — the smaller and larger of two numbers always add up to their ordinary sum, since one of min⁡(x,y)\min(x,y) or max⁡(x,y)\max(x,y) literally equals xx and the other equals yy.

Step 4. Since x+yx + y is exactly the exponent of pp in the product a×ba \times b (exponents add when you multiply), the exponent of every prime pp in HCF(a,b)×LCM(a,b)\text{HCF}(a,b) \times \text{LCM}(a,b) matches its exponent in a×ba \times b. Two numbers with identical prime factorisations are equal, so

HCF(a,b)×LCM(a,b)=a×b.\text{HCF}(a,b) \times \text{LCM}(a,b) = a \times b.

where: a,ba, b are the two whole numbers, HCF(a,b)\text{HCF}(a,b) is their highest common factor, LCM(a,b)\text{LCM}(a,b) is their lowest common multiple. This is why knowing any three of aa, bb, HCF\text{HCF}, LCM\text{LCM} always lets you compute the fourth by simple division — the relation holds exactly, not approximately, for every pair of whole numbers.

Worked example

HCF of two numbers 84 and 108 is found to be 12. Find their LCM without listing multiples, then verify by prime factorisation, and check the sum property on the pair.

Step 1. Apply the relation HCF×LCM=a×b\text{HCF} \times \text{LCM} = a \times b with a=84a = 84, b=108b = 108: 12×LCM=84×108=907212 \times \text{LCM} = 84 \times 108 = 9072, so LCM=9072/12=756\text{LCM} = 9072 / 12 = 756.

Step 2. Verify by prime factorisation: 84=22×3×784 = 2^2 \times 3 \times 7 and 108=22×33108 = 2^2 \times 3^3. HCF uses the lowest power of each common prime, 22×31=4×3=122^2 \times 3^1 = 4 \times 3 = 12, matching the given HCF. LCM uses the highest power of every prime present, 22×33×7=4×27×7=7562^2 \times 3^3 \times 7 = 4 \times 27 \times 7 = 756, matching Step 1.

Step 3. Check the sum property on this pair: since 12∣8412 \mid 84 and 12∣10812 \mid 108, property one guarantees 12∣(84+108)12 \mid (84+108). Indeed 84+108=192=12×1684 + 108 = 192 = 12 \times 16, confirmed. It also guarantees 12∣(108−84)12 \mid (108-84), and 108−84=24=12×2108 - 84 = 24 = 12 \times 2, confirmed.

LCM of 84 and 108 is 756, and both the product relation and the sum property check out exactly.

Competitive stretch

If instead only the LCM (756756) and one number (8484) were given, the same relation rearranges to find the other: HCF×756=84×b\text{HCF} \times 756 = 84 \times b. Combined with HCF∣84\text{HCF} \mid 84, this lets you narrow down bb without ever listing multiples of 756756 by hand.

Common traps

  • Believing d∣(a+b)d \mid (a+b) forces dd to divide aa and bb separately — false: 3∣(2+7=9)3 \mid (2+7=9), yet 33 divides neither 22 nor 77.
  • Extending the prime "veto" rule to composite divisors — d∣(ab)d \mid (ab) does not imply d∣ad \mid a or d∣bd \mid b unless dd is prime (recall 6∣366 \mid 36 but 6∤46 \nmid 4 and 6∤96 \nmid 9).
  • Swapping HCF (always ≤\le both numbers) and LCM (always ≥\ge both numbers) when applying HCF×LCM=a×b\text{HCF} \times \text{LCM} = a \times b.
  • Applying the two-number relation HCF(a,b)×LCM(a,b)=a×b\text{HCF}(a,b) \times \text{LCM}(a,b) = a \times b directly to three or more numbers — it only holds for a pair at a time.

Ask the tutor: Want to work through a proof of one of these divisibility properties step by step, or try a few more HCF–LCM problems using the product relation?

Why does d dividing a and d dividing b guarantee d divides a times b, but not the other way round?

Writing a=dk1a = dk_1 gives ab=d(k1b)ab = d(k_1 b) immediately, so d∣abd \mid ab follows in one step — you only need one of the two numbers to carry the factor dd. The reverse direction fails for composite dd because dd's prime factors can be split across aa and bb: 6∣(4×9)6 \mid (4\times 9) even though 66 divides neither 44 nor 99, since the factor 22 lives in 44 and the factor 33 lives in 99. Only when dd is prime is it forced to sit entirely inside one number, which is why the veto property is stated for primes specifically.

Do I need to check the sum and difference properties separately, or does one imply the other?

They follow from the same algebra, so you rarely need to check both in an exam unless asked. If a=dk1a = dk_1 and b=dk2b = dk_2, then a+b=d(k1+k2)a+b = d(k_1+k_2) and a−b=d(k1−k2)a-b = d(k_1-k_2) — both quotients are automatically whole numbers because k1k_1 and k2k_2 are whole numbers, and both sums and differences of whole numbers are whole numbers. Stating the general rule ("a common divisor of two numbers divides their sum and difference") and proving it once with a=dka=dk covers both cases.

If HCF times LCM always equals the product, why do textbooks still ask us to compute both separately by prime factorisation?

Because the relation only works once you already know three of the four quantities — you cannot use it to find HCF and LCM simultaneously from just aa and bb, since that would be one equation with two unknowns. Prime factorisation (or the division method) gives HCF and LCM independently and directly. The product relation then becomes a fast way to find the fourth quantity when three are already known, or a quick way to verify an HCF–LCM pair you computed by factorisation, exactly as done in the worked example above.

Before this

Where this leads