PYQ Vault

CDS Mathematics · Number System

HCF & LCM — Applications and Remainder Recipes

Deciding which of HCF and LCM a word problem wants, and the three standard remainder recipes: same remainder means take the HCF of the differences, a common remainder means LCM plus r, and a constant shortfall means LCM minus d.

Why this matters

Twenty PYQs and not one HARD — this is the most mechanical unit in the chapter, and the marks are there for anyone who can classify the question in ten seconds. Seven of the twenty were filed under Divisibility in the bank because they are phrased as remainder problems; they are HCF and LCM questions in disguise, and that is exactly why they are taught here.

Concept 1 of 7

When the answer is the HCF: the largest common measure

Intuition

If a single size has to fit exactly into several given quantities, that size must divide all of them — so the largest such size is their HCF. Cutting, tiling, and "greatest speed so the times are whole numbers" are all this one question.

Definition

Use the HCF when the question asks for the largest quantity that divides several given quantities exactly:

  • the largest square tile that paves a floor with no cutting;
  • the greatest length that measures several lengths exactly;
  • the greatest speed making each journey take a whole number of hours.

Convert to a common unit first — centimetres, paise, tenths of a kilometre — so the HCF is taken over integers. For a tiling count, divide each side by the HCF and multiply.

Tile count from the HCF

tiles=LHCF×WHCF\text{tiles}=\frac{L}{\mathrm{HCF}}\times\frac{W}{\mathrm{HCF}}

Worked example

A floor 6 m by 4.5 m is to be paved with identical square tiles, as large as possible and with no cutting. How many tiles are needed?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Number SystemMODERATE
A floor of a big hall has dimensions 30 m 60 cm and 23 m 40 cm. It is to be paved with square tiles of same size. What is the minimum number of tiles required ?

[Q63 · CDS (I) 2023 — Elementary Mathematics · 2023]

Largest tile and minimum number of tiles are the same question

A question asking for the minimum number of tiles still wants the largest tile, because bigger tiles means fewer of them. Both phrasings point at the HCF. Do not switch to the LCM because the word "minimum" appeared.

Concept 2 of 7

When the answer is the LCM: things coinciding again

Intuition

If several cycles start together and you want the next moment they align, that moment must be a multiple of each cycle length — so the first one is their LCM. Bells, runners on a track and repeating schedules are all this.

Definition

Use the LCM when the question asks for the first time several repeating events coincide:

  • bells ringing at different intervals, next ringing together;
  • runners with different lap times, next meeting at the start;
  • the least amount that is a whole number of two different units.

Then convert the LCM into the requested units, and if the question asks how many times within a window, divide the window by the LCM and take the floor.

Coincidences within a window

count=windowLCM\text{count}=\left\lfloor \frac{\text{window}}{\mathrm{LCM}}\right\rfloor

Worked example

Three bells ring at intervals of 6, 9 and 15 minutes. They ring together at 10:00 am. When do they next ring together?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Number SystemMODERATE
XX, YY and ZZ start at same point and same time in the same direction to run around a circular stadium. XX completes a round in 252 seconds, YY in 308 seconds and ZZ in 198 seconds. After what time will they meet again at the starting point ?

[Q17 · CDS (I) 2019 — Elementary Mathematics · 2019]

How many MORE times excludes the start

If they ring together at 9 am and you are asked how many more times in the next 72 hours, count the multiples of the LCM inside the window and do not count the 9 am ring itself. With an LCM of 1575 minutes in 4320 minutes, only 1575 and 3150 fit — the answer is 2, not 3.

Concept 3 of 7

Largest, smallest and how many multiples in a range

Intuition

A number divisible by several given numbers is exactly a multiple of their LCM. So "largest four-digit", "smallest five-digit" and "how many between A and B" all reduce to arithmetic on one number — the LCM.

Definition

Let LL be the LCM of the given divisors.

  • Largest kk-digit multiple: L×largest k-digitLL\times\left\lfloor \frac{\text{largest }k\text{-digit}}{L}\right\rfloor.
  • Smallest kk-digit multiple: L×smallest k-digitLL\times\left\lceil \frac{\text{smallest }k\text{-digit}}{L}\right\rceil.
  • Count of multiples up to NN: N/L\left\lfloor N/L \right\rfloor.

For a least perfect square divisible by the given numbers, take the LCM and then raise each prime exponent to the next even number.

Multiples in a range

#{multiples of LN}=NL\#\{\text{multiples of } L \le N\}=\left\lfloor \frac{N}{L}\right\rfloor

Worked example

What is the largest three-digit number divisible by each of 8, 12 and 20?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Number SystemMODERATE
The highest four-digit number which is divisible by each of the numbers 16, 36, 45, 48 is

[Q1 · CDS (II) 2018 — Elementary Mathematics · 2018]

An LCM multiple need not be a perfect square

For the least perfect square divisible by 3, 4, 5, 6 and 7, the LCM is 420=22357420 = 2^2\cdot3\cdot5\cdot7 — but 420 is not a square, because three of its exponents are odd. Raise each to the next even value: 22325272=441002^2\cdot3^2\cdot5^2\cdot7^2 = 44100. Stopping at the LCM, or at a multiple like 17640 that is divisible by everything but is not square, are both offered as options.

Concept 4 of 7

Recipe 1: same unknown remainder means take the HCF of the differences

Intuition

If a divisor leaves the same remainder on several numbers, then it divides their differences exactly — the remainders cancel when you subtract. So the greatest such divisor is the HCF of the pairwise differences, and you never need to know the remainder.

Definition

If NN leaves the same remainder on dividing aa, bb, cc, then NN divides each of bab-a, cbc-b and cac-a. The greatest such NN is

HCF(ba,  cb,  ca).\mathrm{HCF}(b-a,\; c-b,\; c-a).

  • The two independent differences suffice; the third is their sum and adds nothing.
  • If instead the remainder is stated — "leaves remainder 5 in each case" — subtract it from every number first and take the HCF of the results.

Same-remainder recipe

Nmax=HCF(ba,  cb)N_{\max}=\mathrm{HCF}\big(b-a,\;c-b\big)

Worked example

What is the greatest number that divides 43, 91 and 183 leaving the same remainder in each case?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Number SystemMODERATE
Let N be the greatest number that will divide 600, 631 and 724, leaving the same remainder. What is the value of N ?

[Q24 · CDS (I) 2026 — Elementary Mathematics · 2026]

Unknown remainder means differences; known remainder means subtract it

These are two different recipes and using the wrong one is the commonest error here. "Leaves the same remainder" (unspecified) means take the HCF of the differences. "Leaves remainder 5 in each case" means subtract 5 from each number first and take the HCF of those. Taking differences when the remainder is given still works, but subtracting a remainder that was never given does not.

Concept 5 of 7

Recipe 2: the same remainder from every divisor means LCM times k, plus r

Intuition

If NN leaves remainder rr on dividing by several numbers, then NrN - r is divisible by all of them — so NrN - r is a multiple of their LCM. That single sentence converts the whole family of questions into arithmetic on the LCM.

Definition

If NrN \equiv r modulo each of d1,,dkd_1,\ldots,d_k (with rr less than every did_i), then

N=LCM(d1,,dk)k+r.N = \mathrm{LCM}(d_1,\ldots,d_k)\cdot k + r.

  • For the smallest such NN with a digit condition, find the least kk making NN large enough.
  • For the largest kk-digit such NN, take (maxr)/L\lfloor(\text{max} - r)/L\rfloor then multiply back and add rr.
  • For divisors that are successive powers of one prime, the LCM is just the highest power.

Common-remainder recipe

N=Lk+r,L=LCM(d1,,dk)N = L\,k + r, \qquad L=\mathrm{LCM}(d_1,\dots,d_k)

Worked example

What is the smallest number greater than 1 that leaves remainder 1 when divided by 4, 5 and 6?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 5Number SystemMODERATE
A number NN is such that when divided by 4, 6, 7 or 9, it leaves 3 as remainder. What is the smallest 4-digit number that satisfies this property?

[Q30 · CDS (II) 2025 — Elementary Mathematics · 2025]

The stated remainder must be smaller than every divisor

"Remainder 7 on division by 18 as well as 11" is legitimate because 7<117<11. If a question offered remainder 9 with a divisor of 8 it would be inconsistent. Check the smallest divisor against rr before applying the recipe — it is a one-second sanity test that occasionally is the question.

Concept 6 of 7

Recipe 3: a constant shortfall means LCM times k, minus d

Intuition

When the remainders differ but each falls short of its divisor by the same amount, add that amount and everything becomes exact. So N+dN + d is a multiple of the LCM, and N=LkdN = Lk - d. Spotting the constant shortfall is the whole skill.

Definition

If NN leaves remainder didd_i - d on dividing by did_i, for every ii and a fixed dd, then N+dN+d is divisible by every did_i, so

N=LCM(d1,,dk)kd.N = \mathrm{LCM}(d_1,\ldots,d_k)\cdot k - d.

  • The classic signature is remainders one less than the divisors: remainders 1,2,3,4,51,2,3,4,5 for divisors 2,3,4,5,62,3,4,5,6 means d=1d=1.
  • Always compute divisor minus remainder for each pair and check the value is the same before using this. If the shortfalls differ, no single recipe applies.

Constant-shortfall recipe

N=Lkd,d=diri (the same for every i)N = L\,k - d, \qquad d = d_i - r_i \ \text{(the same for every } i)

Worked example

Find the smallest positive number leaving remainders 3, 4 and 5 when divided by 4, 5 and 6 respectively.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 6Number SystemMODERATE
AA is a set of positive integers such that when divided by 2, 3, 4, 5 and 6 leaves the remainder 1, 2, 3, 4 and 5 respectively. How many integers between 0 and 100 belong to the set AA ?

[Q6 · CDS (II) 2016 — Elementary Mathematics · 2016]

Check the shortfall is really constant before reaching for this

Remainders 2, 8, 11, 20 for divisors 6, 12, 15, 24 look unrelated, but each is exactly 4 short — so N=120k4N = 120k-4. Conversely, if the shortfalls come out unequal, neither this recipe nor recipe 2 applies and you must solve the congruences directly. Compute all the differences first; it takes seconds and decides the whole method.

Concept 7 of 7

Layering an extra condition on a remainder recipe

Intuition

Sometimes a recipe gives you a family — N=Lk+rN = Lk + r — and the question adds one more demand, such as being a multiple of 11. Substitute the family into the extra condition and you are left with a small congruence in kk, which you can solve by testing a few values.

Definition

Procedure:

  • Apply the appropriate recipe to get the family N=Lk+rN = Lk + r.
  • Substitute into the extra condition. If NN must be divisible by mm, reduce LL and rr modulo mm and solve Lk+r0(modm)Lk + r \equiv 0 \pmod m for kk.
  • Take the least non-negative kk that works, then compute NN.

For two different remainders with no common pattern, listing one family and testing it against the other condition is faster than any formula.

Layered condition

m(Lk+r)    Lkr(modm)m \mid (Lk+r) \;\Longrightarrow\; Lk \equiv -r \pmod m

Worked example

Find the least positive number that leaves remainder 2 on division by 3, 4 and 5, and is also divisible by 7.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 7Number SystemMODERATE
Let NN be the least positive multiple of 11 that leaves a remainder of 5 when divided by 6, 12, 15, 18. Which one of the following is correct ?

[Q7 · CDS (II) 2024 — Elementary Mathematics · 2024]

Do not stop at the family — the extra condition is the question

N=180k+5N = 180k+5 is only the first half of the 2024 question; the answer must also be a multiple of 11, which forces k7(mod11)k \equiv 7 \pmod{11} and gives N=1265N = 1265. An option list built around the family alone will contain several values satisfying the remainder conditions and failing the divisibility one.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (7)

Watch out for (7)

Drill every past-year question on this subtopic

20 questions from the bank — paginated, with cart and Word-export support.

Related notes