ExamShortcut
medium importance~1 Q in Tier 119 formulas⚡ 12 shortcuts4 subtopics
All subtopics·Subtopic 4 of 4

Two-step LCM/HCF cases (extra condition, N-digit bounds)

🔒 Log in to track
⏱ 4 min read🧩 5 question types🎯 14 practice Q
The idea in one minute

Harder 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.

01

Overview

The harder questions in this topic add one extra condition to a plain LCM or HCF setup. The master frame is N=L×k+rN = L \times k + r, where LL is the LCM of the divisors. For divisors 5 and 6 with remainder 2: L=30L = 30, so N=30k+2N = 30k + 2, giving 32, 62, 92, and so on.

02

The master frame

k=1k = 1 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 N=L×k+rN = L \times k + r first. Then fit the extra condition onto k.

03

An extra divisibility condition

Test k=1,2,3,…k = 1, 2, 3, \ldots until Lk+rLk + r satisfies the condition. For 'N leaves remainder 2 with 5 and 6, and N is divisible by 7': N=30k+2N = 30k + 2. Trying k gives 32, 62, 122, 152, 182, and 182=7×26182 = 7 \times 26 works. So N=182N = 182.

04

Least and greatest n-digit numbers

Multiples of LL are the candidates. Least four-digit multiple of 60: 1000=16×60+401000 = 16 \times 60 + 40, so add 60−40=2060 - 40 = 20 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 Lk+rLk + r inside the range instead of plain multiples.

05

Rebuilding numbers from HCF and LCM

Numbers with HCF hh are haha and hbhb with co-prime parts, and ab=LCMhab = \dfrac{\text{LCM}}{h}. With HCF 4 and LCM 48: ab=12ab = 12, whose co-prime pairs are (1,12)(1, 12) and (3,4)(3, 4). A given sum picks the pair: sum 28 needs a+b=7a + b = 7, so the parts are 3 and 4 and the numbers are 12 and 16.

Watch: List only co-prime factor pairs. The pair (2,6)(2, 6) for ab=12ab = 12 is impossible, because the numbers would share an extra factor 2.

06

Counting possible pairs

Count the co-prime factor pairs of abab, and remember the pair (1,ab)(1, ab). Product 1764 with HCF 14 gives ab=1764142=9ab = \dfrac{1764}{14^2} = 9, and 9 has the single co-prime pair (1,9)(1, 9): the numbers must be 14 and 126. Count each unordered pair once, with the smaller part first, so (1,9)(1, 9) and (9,1)(9, 1) are the same pair.

07

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.

08

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 gcd⁡(72,48,120)=24\gcd(72, 48, 120) = 24. The common remainder is 51 mod 24=351 \bmod 24 = 3, the same for all three.

Example: Check: 123=5×24+3123 = 5 \times 24 + 3 and 171=7×24+3171 = 7 \times 24 + 3. Both leave remainder 3, so 24 is right.

09

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common2 practice Q

Least or greatest n-digit number divisible by a set

How to spot it:

The question asks for the least or greatest number of a given digit count divisible by several divisors.

least: next multiple of L at or above 10n−1;greatest: 10n−1−((10n−1) mod L)\text{least: next multiple of } L \text{ at or above } 10^{n-1}; \quad \text{greatest: } 10^n - 1 - \left((10^n - 1) \bmod L\right)
Method
  1. Take LL as the LCM of the divisors.

  2. Least: divide the smallest n-digit number by LL and step up to the next multiple.

  3. Greatest: divide the largest n-digit number by LL and subtract the remainder.

  4. With a remainder r in the question, fit Lk+rLk + r inside the range instead.

Why it works:

Multiples of the LCM are exactly the numbers divisible by every divisor; the digit bounds only pick where to stop.

Try this

Find the greatest five-digit number exactly divisible by 12, 15 and 20.

Show solution
  1. L=LCM(12,15,20)=60L = \text{LCM}(12, 15, 20) = 60.

  2. 99999=1666×60+3999999 = 1666 \times 60 + 39.

  3. Greatest =99999−39=99960= 99999 - 39 = 99960.

Answer

99960

Type 2common2 practice Q

LCM + r with an extra condition

How to spot it:

An LCM plus remainder question carries one more filter, such as divisibility by another number or a digit bound.

N=Lk+r,smallest k meeting the condition winsN = Lk + r, \qquad \text{smallest } k \text{ meeting the condition wins}
Method
  1. Write N=L×k+rN = L \times k + r with LL the LCM of the divisors.

  2. Test k=1,2,3,…k = 1, 2, 3, \ldots against the extra condition.

  3. With an n-digit bound, start k just above the bound minus r, divided by L.

Why it works:

N minus r is a multiple of L by construction; the extra condition only chooses which multiple.

Try this

Find the least number which leaves remainder 3 with 6, 7 and 8, and is divisible by 5.

Show solution
  1. L=LCM(6,7,8)=168L = \text{LCM}(6, 7, 8) = 168, so N=168k+3N = 168k + 3.

  2. Test k: 171,339,507,675171, 339, 507, 675; and 675=5×135675 = 5 \times 135.

  3. N=675N = 675.

Answer

675

Type 3common4 practice Q

Rebuild numbers from HCF and LCM; count pairs

How to spot it:

HCF and LCM are given with a sum, difference or bound; find the numbers, or count the possible pairs.

numbers=ha, hb;gcd⁡(a,b)=1,ab=LCMh\text{numbers} = ha,\ hb; \quad \gcd(a, b) = 1, \quad ab = \dfrac{\text{LCM}}{h}
Method
  1. Compute ab=LCM÷hab = \text{LCM} \div h (or product ÷h2\div h^2).

  2. List factor pairs of abab and keep only co-prime pairs.

  3. Use the given sum or difference to pick the pair; the numbers are haha and hbhb.

  4. To count pairs, count the surviving co-prime pairs.

Why it works:

Two numbers with HCF h are h times two co-prime parts, and those parts must multiply to LCM divided by h.

Try this

The HCF and LCM of two numbers are 6 and 36. How many pairs of numbers fit?

Show solution
  1. ab=366=6ab = \dfrac{36}{6} = 6.

  2. Co-prime pairs of 6: (1,6)(1, 6) and (2,3)(2, 3).

  3. Pairs: 6 with 36, and 12 with 18. That is 2 pairs.

Answer

2

Type 4common2 practice Q

Greatest number dividing with the same unknown remainder

How to spot it:

The question asks for the greatest number dividing a, b, c and leaving the same remainder in each case, with no remainder given.

answer=gcd⁡(a−b, b−c, a−c)\text{answer} = \gcd(a - b,\ b - c,\ a - c)
Method
  1. Take the pairwise differences of the numbers.

  2. The HCF of the differences is the greatest such divisor.

  3. The common remainder is any number mod that HCF; confirm it is the same for all.

Why it works:

If two numbers leave the same remainder, their difference is exactly divisible by the divisor, so it divides every difference.

Try this

Find the greatest number which divides 61, 109 and 133 leaving the same remainder in each case.

Show solution
  1. Differences: 109−61=48109 - 61 = 48, 133−109=24133 - 109 = 24, 133−61=72133 - 61 = 72.

  2. gcd⁡(48,24,72)=24\gcd(48, 24, 72) = 24.

  3. Remainder: 61 mod 24=1361 \bmod 24 = 13, and 109 mod 24=133 mod 24=13109 \bmod 24 = 133 \bmod 24 = 13.

Answer

24

Type 5common

LCM + r inside a digit bound

How to spot it:

The question asks for the least (or greatest) number of a given digit count leaving remainder r with several divisors.

N=L×k+r,10n−1≤N<10nN = L \times k + r, \quad 10^{n-1} \le N < 10^n
Method
  1. Write N=L×k+rN = L \times k + r with LL the LCM of the divisors.

  2. Least n-digit: take the smallest k with Lk+rLk + r at or above the smallest n-digit number.

  3. Greatest n-digit: take the largest k with Lk+rLk + r at or below the largest n-digit number.

  4. Check the remainder with every divisor.

Why it works:

The family of valid numbers is exactly LCM multiples plus r; the digit bound selects the first or last member.

Try this

Find the least four-digit number which leaves remainder 3 when divided by 6, 7 and 8.

Show solution
  1. L=LCM(6,7,8)=168L = \text{LCM}(6, 7, 8) = 168, so N=168k+3N = 168k + 3.

  2. Need 168k+3≥1000168k + 3 \ge 1000, so k≥5.97k \ge 5.97, giving k=6k = 6.

  3. N=6×168+3=1011N = 6 \times 168 + 3 = 1011. Check: 1011 mod 6=1011 mod 7=1011 mod 8=31011 \bmod 6 = 1011 \bmod 7 = 1011 \bmod 8 = 3.

Answer

1011

10

Formula sheet

Extra divisibility condition
N=Lk+r,N≡0(modp) ⇒ Lk≡−r(modp)N = Lk + r, \quad N \equiv 0 \pmod{p} \ \Rightarrow\ Lk \equiv -r \pmod{p}
Reconstruction from HCF and LCM
ab=LCMh,gcd⁡(a,b)=1,numbers=ha, hbab = \dfrac{\text{LCM}}{h}, \quad \gcd(a, b) = 1, \quad \text{numbers} = ha,\ hb
Pair count
#{(a,b):ab=M, gcd⁡(a,b)=1, a≤b}\#\{(a, b): ab = M,\ \gcd(a, b) = 1,\ a \le b\}
Same unknown remainder
answer=gcd⁡(a−b, b−c, a−c)\text{answer} = \gcd(a - b,\ b - c,\ a - c)
11

Shortcuts that save time

⚡ Test k until it clicks

Once N = LCM x k + r is written, only k remains. Test k = 1, 2, 3 against the extra condition; small values click fast.

Example

Find the least number which leaves remainder 1 with 3, 5 and 7, and is divisible by 8.

Show solution
  1. L=LCM(3,5,7)=105L = \text{LCM}(3, 5, 7) = 105, so N=105k+1N = 105k + 1.

  2. Test: 106,211,316,421,526,631,736106, 211, 316, 421, 526, 631, 736; 736=8×92736 = 8 \times 92.

  3. N=736N = 736.

Answer

736

⚡ n-digit multiple scan

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.

Example

Find the least three-digit number exactly divisible by 9 and 12.

Show solution
  1. LCM(9,12)=36\text{LCM}(9, 12) = 36.

  2. 100=2×36+28100 = 2 \times 36 + 28, so step up by 88.

  3. 108=3×36108 = 3 \times 36.

Answer

108

⚡ Sum or difference picks the pair

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.

Example

Two numbers have HCF 6, LCM 180 and sum 66. Find the numbers.

Show solution
  1. ab=1806=30ab = \dfrac{180}{6} = 30; co-prime pairs (1,30)(1, 30), (2,15)(2, 15), (3,10)(3, 10), (5,6)(5, 6).

  2. Parts sum: 6(a+b)=666(a + b) = 66 gives a+b=11a + b = 11.

  3. Pair (5,6)(5, 6): numbers 30 and 36.

Answer

30 and 36

12

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

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.

Mistake 02

Listing factor pairs of LCM / HCF without checking co-primality.

Only co-prime pairs are possible; drop the rest before matching the sum.

Mistake 03

Forgetting the pair (1, M) when counting possibilities.

That pair is always co-prime and always counts.

Mistake 04

Counting (a, b) and (b, a) as two pairs.

Order does not matter; count each pair once with a at most b.

Mistake 05

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.

13

Quick revision

Read this the night before the exam.

  • Master frame: N=L×k+rN = L \times k + r; extra conditions only choose kk.

  • Least n-digit multiple: step up from 10…010 \ldots 0; greatest: step down from 99…999 \ldots 9.

  • Numbers from HCF and LCM: ab=LCM÷hab = \text{LCM} \div h, co-prime parts only.

  • Pair count: co-prime factor pairs of LCM ÷h\div h (or product ÷h2\div h^2).

  • Same unknown remainder: HCF of pairwise differences.

  • Common remainder check: any number mod the answer, same value for all.

14

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.