HCF & LCM
🔒 Log in to trackTwo-step LCM/HCF cases (extra condition, N-digit bounds)
🔒 Log in to trackHarder questions chain one extra condition onto an LCM or HCF. Write N = LCM x k + r and let the condition pin down k, or rebuild numbers as h times co-prime parts from the HCF and LCM.
Overview
The harder questions in this topic add one extra condition to a plain LCM or HCF setup. The master frame is , where is the LCM of the divisors. For divisors 5 and 6 with remainder 2: , so , giving 32, 62, 92, and so on.
The master frame
gives the least positive value; larger k walks up the same family. Any extra condition, such as divisibility by one more number or a digit bound, simply selects k.
Rule: Write first. Then fit the extra condition onto k.
An extra divisibility condition
Test until satisfies the condition. For 'N leaves remainder 2 with 5 and 6, and N is divisible by 7': . Trying k gives 32, 62, 122, 152, 182, and works. So .
Least and greatest n-digit numbers
Multiples of are the candidates. Least four-digit multiple of 60: , so add to reach 1020. Greatest works from the top: divide 99,999 by 60, subtract the remainder, and land on the greatest multiple under the bound.
Tip: Step up from 10, 100, 1000 for the least; step down from 9, 99, 999 for the greatest. With a remainder r, fit inside the range instead of plain multiples.
Rebuilding numbers from HCF and LCM
Numbers with HCF are and with co-prime parts, and . With HCF 4 and LCM 48: , whose co-prime pairs are and . A given sum picks the pair: sum 28 needs , so the parts are 3 and 4 and the numbers are 12 and 16.
Watch: List only co-prime factor pairs. The pair for is impossible, because the numbers would share an extra factor 2.
Counting possible pairs
Count the co-prime factor pairs of , and remember the pair . Product 1764 with HCF 14 gives , and 9 has the single co-prime pair : the numbers must be 14 and 126. Count each unordered pair once, with the smaller part first, so and are the same pair.
Sanity checks that catch slips
Two quick filters catch most slips in this subtopic. First, the HCF must divide the LCM, both numbers, and their sum and difference. Second, every rebuilt pair must multiply back to the product and carry the stated HCF. Run both checks before marking the answer.
The same unknown remainder
When no remainder is given but it is the same for all numbers, the divisor divides every pairwise difference. For 51, 123 and 171: the differences are 72, 48 and 120, and . The common remainder is , the same for all three.
Example: Check: and . Both leave remainder 3, so 24 is right.
Question types you will see
Each type: how to recognise it, the method step by step, and one question to try.
Least or greatest n-digit number divisible by a set
The question asks for the least or greatest number of a given digit count divisible by several divisors.
Take as the LCM of the divisors.
Least: divide the smallest n-digit number by and step up to the next multiple.
Greatest: divide the largest n-digit number by and subtract the remainder.
With a remainder r in the question, fit inside the range instead.
Multiples of the LCM are exactly the numbers divisible by every divisor; the digit bounds only pick where to stop.
Find the greatest five-digit number exactly divisible by 12, 15 and 20.
Show solutionHide solution
.
.
Greatest .
99960
LCM + r with an extra condition
An LCM plus remainder question carries one more filter, such as divisibility by another number or a digit bound.
Write with the LCM of the divisors.
Test against the extra condition.
With an n-digit bound, start k just above the bound minus r, divided by L.
N minus r is a multiple of L by construction; the extra condition only chooses which multiple.
Find the least number which leaves remainder 3 with 6, 7 and 8, and is divisible by 5.
Show solutionHide solution
, so .
Test k: ; and .
.
675
Rebuild numbers from HCF and LCM; count pairs
HCF and LCM are given with a sum, difference or bound; find the numbers, or count the possible pairs.
Compute (or product ).
List factor pairs of and keep only co-prime pairs.
Use the given sum or difference to pick the pair; the numbers are and .
To count pairs, count the surviving co-prime pairs.
Two numbers with HCF h are h times two co-prime parts, and those parts must multiply to LCM divided by h.
The HCF and LCM of two numbers are 6 and 36. How many pairs of numbers fit?
Show solutionHide solution
.
Co-prime pairs of 6: and .
Pairs: 6 with 36, and 12 with 18. That is 2 pairs.
2
Greatest number dividing with the same unknown remainder
The question asks for the greatest number dividing a, b, c and leaving the same remainder in each case, with no remainder given.
Take the pairwise differences of the numbers.
The HCF of the differences is the greatest such divisor.
The common remainder is any number mod that HCF; confirm it is the same for all.
If two numbers leave the same remainder, their difference is exactly divisible by the divisor, so it divides every difference.
Find the greatest number which divides 61, 109 and 133 leaving the same remainder in each case.
Show solutionHide solution
Differences: , , .
.
Remainder: , and .
24
LCM + r inside a digit bound
The question asks for the least (or greatest) number of a given digit count leaving remainder r with several divisors.
Write with the LCM of the divisors.
Least n-digit: take the smallest k with at or above the smallest n-digit number.
Greatest n-digit: take the largest k with at or below the largest n-digit number.
Check the remainder with every divisor.
The family of valid numbers is exactly LCM multiples plus r; the digit bound selects the first or last member.
Find the least four-digit number which leaves remainder 3 when divided by 6, 7 and 8.
Show solutionHide solution
, so .
Need , so , giving .
. Check: .
1011
Formula sheet
Shortcuts that save time
Once N = LCM x k + r is written, only k remains. Test k = 1, 2, 3 against the extra condition; small values click fast.
Find the least number which leaves remainder 1 with 3, 5 and 7, and is divisible by 8.
Show solutionHide solution
, so .
Test: ; .
.
736
For the least n-digit multiple, divide the smallest n-digit number by the LCM and step up to the next multiple. For the greatest, subtract the remainder from the largest n-digit number.
Find the least three-digit number exactly divisible by 9 and 12.
Show solutionHide solution
.
, so step up by .
.
108
With HCF, LCM and a sum or difference given, list co-prime pairs of LCM / HCF and match h times the parts to the sum.
Two numbers have HCF 6, LCM 180 and sum 66. Find the numbers.
Show solutionHide solution
; co-prime pairs , , , .
Parts sum: gives .
Pair : numbers 30 and 36.
30 and 36
Mistakes to avoid
Where most students lose marks on this subtopic.
Answering LCM + r when an extra condition forces a larger multiple.
Fit N = LCM x k + r through the extra condition and take the smallest k that works.
Listing factor pairs of LCM / HCF without checking co-primality.
Only co-prime pairs are possible; drop the rest before matching the sum.
Forgetting the pair (1, M) when counting possibilities.
That pair is always co-prime and always counts.
Counting (a, b) and (b, a) as two pairs.
Order does not matter; count each pair once with a at most b.
Skipping the check that the HCF divides the sum or difference.
The HCF must divide both numbers, so it divides their sum and difference too.
Quick revision
Read this the night before the exam.
Master frame: ; extra conditions only choose .
Least n-digit multiple: step up from ; greatest: step down from .
Numbers from HCF and LCM: , co-prime parts only.
Pair count: co-prime factor pairs of LCM (or product ).
Same unknown remainder: HCF of pairwise differences.
Common remainder check: any number mod the answer, same value for all.
Practice: 14 questions
Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.
Topic test · 10 questions
Suggested time 11 min · wrong answers go to your mistake notebook automatically.