E ExamMaster

RBI Grade B Officer · Quantitative Aptitude

LCM & HCF

Least common multiple and highest common factor of numbers and fractions with word problems.

Six concepts, and almost every LCM/HCF question in Tier-1 papers is one of them: a definition via primes, a product identity that holds for pairs only, the fraction formulas, a remainder translation into an HCF, an LCM-plus-remainder construction, or a set of periods that next coincide. The arithmetic is short; the marks go to picking which of the six you are in.

  • RBI Grade B Officer
  • Easy level
  • 6 concepts
  • 45 practice questions

1HCF and LCM, read from the primes

The HCF (also GCD) of a set of numbers is the largest positive integer that divides every one of them; the LCM is the smallest positive integer that every one of them divides. Both are read off a complete prime factorisation: for each prime, the HCF keeps the lowest power that appears and the LCM keeps the highest.

So for 12 = 2² × 3 and 18 = 2 × 3² the shared floor is 2¹ × 3¹ = 6 and the shared ceiling is 2² × 3² = 36. Listing factors and multiples by hand reaches the same two answers, and takes longer the moment a third number arrives.

Figure. Lengths are to scale for 12 and 18. The HCF bar is the longest integer length that tiles both 12 and 18 with no remainder; the LCM bar is the shortest integer length that both 12 and 18 tile with no remainder. The same two answers come from the min/max exponents in the ledger.

How it works

  1. Factorise each numberStrip primes until every factor is prime; write the result as a product of prime powers.
  2. Take floors and ceilingsPer prime, the HCF uses the smallest exponent present and the LCM the largest. A prime missing from a number contributes exponent 0 to the HCF.
  3. Multiply backThe product of those chosen powers is the HCF or the LCM. Check on a small pair before trusting a three-number answer.

HCF and LCM of 12 and 18

Find the HCF and the LCM of 12 and 18 by prime factors.

  • 12 = 2² × 3¹, 18 = 2¹ × 3²primes 2 and 3
  • HCF takes min exponents: 2¹ × 3¹6
  • LCM takes max exponents: 2² × 3²36
  • Check: common factors of 12, 18 end at 6; first common multiple36

Pro tip. Once the two factorisations are written, there is nothing left to invent — every wrong answer in this chapter is a wrong exponent. A prime that appears in only one of the numbers is dropped from the HCF (exponent 0) and kept at full strength in the LCM.

HCF(48, 36) equals
  1. 6
  2. 12
  3. 24

48 = 2⁴ × 3 and 36 = 2² × 3², so the HCF is 2² × 3 = 12. Taking every shared prime once gives 6; taking the highest powers gives the LCM 144, not an HCF.

2HCF × LCM equals the product — for a pair

For any two positive integers a and b, HCF(a, b) × LCM(a, b) = a × b. Rearranged, any one of the four quantities is the product of the other three divided by the remaining known value, which is how most "find the other number" questions are finished in one line.

The identity is false for three or more numbers: HCF(6, 10, 15) = 1 and LCM(6, 10, 15) = 30, but 6 × 10 × 15 = 900, not 30. When a question hands you three numbers, factorise; do not reach for the product.

Figure. Both panels have the same area 216: 12\times 18 on the left and \mathrm{HCF}\times\mathrm{LCM}=6\times 36 on the right. That is why any one of the four quantities is the product of the other three divided by the remaining known value — and why the identity stops at pairs.

How it works

  1. Confirm there are two numbersThe product relation applies to a pair. Three given values that are not "HCF, LCM, one number" need prime factors instead.
  2. Write the productHCF × LCM = a × b, so the unknown is (product of the three knowns) ÷ (the remaining known).
  3. Sanity-checkThe HCF must divide both numbers, and both numbers must divide the LCM. If either fails, an input was misread.

Finding a number from HCF and LCM

The HCF and LCM of two numbers are 6 and 60. If one number is 12, find the other.

  • HCF × LCM = product of the two numberspair identity
  • 6 × 60 = 12 × other360 = 12 × other
  • other = 360 ÷ 1230
  • Check: HCF(12, 30) = 6 and LCM(12, 30)60

Pro tip. The product relation only works for two numbers — never extend it to three. If the question had also named a third number, the one-line shortcut would be unavailable and the primes would have to do the work.

HCF(8, 12, 18) × LCM(8, 12, 18) equals
  1. 8 × 12 × 18
  2. 144
  3. 1728

HCF = 2 and LCM = 72, so the product is 144. The pair identity would have promised 8 × 12 × 18 = 1728, which is exactly the wrong answer this question is written to collect.

3HCF and LCM of fractions

Fractions swap the roles of the denominator. The HCF of a set of fractions is (HCF of the numerators) / (LCM of the denominators), and the LCM of the fractions is (LCM of the numerators) / (HCF of the denominators). Both formulas assume the fractions are in lowest terms; cancel each one before applying them.

The two formulas are mirrors, not twins: whichever operation you apply to the numerators, you apply the other operation to the denominators. Mixing the two — LCM over LCM, or HCF over HCF — is the standard wrong answer.

Figure. Fraction HCF puts HCF on the numerators and LCM on the denominators; fraction LCM does the reverse. The denominators swap roles — that is the whole rule, once every fraction is in lowest terms.

The two fraction formulas
QuantityNumeratorsDenominatorsResult shape
HCF of fractionsHCFLCMHCF(num) / LCM(den)
LCM of fractionsLCMHCFLCM(num) / HCF(den)

Three fractions, both answers

Find the HCF and the LCM of 2/3, 4/9 and 8/15.

  • Numerators 2, 4, 8 → HCF = 2, LCM = 82 and 8
  • Denominators 3, 9, 15 → HCF = 3, LCM = 453 and 45
  • HCF of fractions = 2 / 452/45
  • LCM of fractions = 8 / 38/3

Pro tip. Write the two numerator results and the two denominator results in a square before you form either fraction — that is what the concept table is for. Crossing the square (HCF over HCF, or LCM over LCM) is how 2/3 and 8/45 appear as distractors.

LCM of 1/2, 3/4 and 5/6 equals
  1. 15/2
  2. 15/12
  3. 1/12

LCM of numerators 1, 3, 5 is 15; HCF of denominators 2, 4, 6 is 2; so the LCM is 15/2. Putting LCM over LCM gives 15/12, and putting HCF over LCM gives the HCF 1/12 — both are the crossed-square traps.

4Largest divisor that leaves the same remainder

If a number d divides a, b and c leaving the same remainder r in each case, then d divides each of a − r, b − r and c − r, so the largest such d is HCF(a − r, b − r, c − r). The remainder must be smaller than that answer — if the HCF comes out equal to r, the numbers were exact multiples and the remainder was really 0.

When the remainder is the same but unknown, subtract the numbers from each other instead: the largest d is the HCF of the pairwise differences. Those differences cancel r, so you never need its value.

Figure. Each bar keeps the same remainder strip r=2. Strip it off and the bodies 60, 130, 235 share divisor d=\mathrm{HCF}=5 — the largest number that leaves remainder 2 with each original.

How it works

  1. Read whether r is known"Leaving remainder 2" names r. "Leaving the same remainder in each case" does not — use differences.
  2. Subtract, then take HCFKnown r: HCF(a − r, b − r, …). Unknown r: HCF of the pairwise differences of the given numbers.
  3. Check the remainderDivide one of the originals by the answer and confirm the remainder is what the question claimed (or confirm it matches across the set).

Known remainder 2

Find the largest number that divides 62, 132 and 237 leaving remainder 2 in each case.

  • Subtract the remainder: 62 − 2, 132 − 2, 237 − 260, 130, 235
  • HCF(60, 130)10
  • HCF(10, 235)5
  • Check: 62, 132, 237 on division by 5remainder 2 each

Pro tip. For the unknown-remainder twin — greatest number dividing 43, 91 and 183 leaving the same remainder — the pairwise differences are 48, 92 and 140, and their HCF is 4, which leaves remainder 3 with each. Do not subtract a guessed r when the question never named one.

The greatest number that divides 43, 91 and 183 leaving the same remainder in each case is
  1. 4
  2. 7
  3. 13

Differences: 91 − 43 = 48, 183 − 91 = 92, 183 − 43 = 140. HCF(48, 92, 140) = 4, and each number leaves remainder 3 on division by 4. Taking a factor of one difference alone (e.g. 7 from 91 − 43 misread, or 13) fails on at least one of the three numbers.

5Smallest number that leaves a fixed remainder

The smallest positive number that leaves remainder r when divided by each of a, b, c, … is LCM(a, b, c, …) + r — provided r is smaller than every divisor. Every common multiple of the divisors leaves remainder 0; shifting that multiple up by r leaves remainder r with each of them.

This is the LCM twin of the previous concept. Same-remainder questions that ask for a largest divisor are HCF questions; same-remainder questions that ask for a smallest number meeting a list of divisions are LCM questions. The wording "largest" versus "smallest" is the whole tell.

Figure. Every common multiple of 8, 12 and 18 is a multiple of their LCM 72. Shift that multiple up by the fixed remainder 7 to get N=79 — the smallest positive number that leaves remainder 7 with each divisor.

How it works

  1. Confirm the shapeThe question wants a number N such that N ÷ a, N ÷ b, … all leave the same remainder r.
  2. Take the LCMLCM of the divisors is the smallest N that leaves remainder 0 with each.
  3. Add the remainderN = LCM + r. Check that r is smaller than every divisor, or the division algorithm would have carried.

Remainder 7 with three divisors

Find the smallest number which when divided by 8, 12 and 18 leaves remainder 7 in each case.

  • Required form: N = LCM(8, 12, 18) + 7LCM + r
  • 8 = 2³, 12 = 2² × 3, 18 = 2 × 3² → LCM2³ × 3² = 72
  • N = 72 + 779
  • Check: 79 ÷ 8, 79 ÷ 12, 79 ÷ 18remainder 7 each

Pro tip. If the question had asked for the largest number that divides 8, 12 and 18 leaving remainder 7, that would be a different — and here impossible — shape, because a remainder of 7 cannot sit under a divisor smaller than or equal to 7. Largest-divisor and smallest-number are not interchangeable rephrasings.

The smallest number which leaves remainder 4 when divided by 5, 10 or 15 is
  1. 34
  2. 30
  3. 19

LCM(5, 10, 15) = 30, so the answer is 30 + 4 = 34. Answering 30 is the LCM before the remainder is added; 19 is a number that works for 5 and 15 but not for 10 (19 ÷ 10 leaves 9).

6When periodic events next coincide

If events repeat every a, b, c, … units and they occur together at a start time, they next occur together after LCM(a, b, c, …) units. Bells, flashing lights, running tracks and "two people meeting again at the starting point" are the same question in different clothes.

Take the highest power of each prime across the intervals — that is the LCM — and add it to the start time if the question asks for a clock reading rather than a duration. Intervals given in mixed units must be converted to one unit before the LCM is formed.

Figure. Each bar is one bell's interval, drawn to a common scale against the 72 s return. 72 is an integer multiple of every interval (12×6, 9×8, 6×12, 4×18) and no smaller positive time is, which is exactly what the LCM asserts.

How it works

  1. Name the intervalsWrite every period in the same unit. Discard any "they start together" colour that is not a number.
  2. Form the LCMHighest power of each prime across the intervals. That duration is the first return.
  3. Add the start if askedA clock-time question wants start + LCM, reduced mod 12 or 24 as the options demand.

Bells tolling together

Four bells toll at intervals of 6, 8, 12 and 18 seconds. If they toll together at the start, after how many seconds will they next toll together?

  • Required time = LCM(6, 8, 12, 18)LCM of intervals
  • 6 = 2 × 3, 8 = 2³, 12 = 2² × 3, 18 = 2 × 3²primes listed
  • LCM = 2³ × 3² = 8 × 972
  • Next coincidence72 seconds

Pro tip. 'Together again' always means LCM of the intervals; take the highest power of each prime. Answering with the HCF (here 2) is the reflex that treats "together" as "common factor" instead of "common multiple".

Lights flash every 5, 10, 15 and 20 seconds. Starting together, they next flash together after
  1. 60 s
  2. 30 s
  3. 20 s

LCM(5, 10, 15, 20) = 60. Taking the largest interval alone gives 20; taking LCM(10, 15, 20) and forgetting 5 still gives 60, but LCM(5, 10, 15) without 20 gives 30 — the distractor for dropping one period.

Notes

  • Definitions: The HCF (GCD) is the largest number dividing all given numbers; the LCM is the smallest number divisible by all of them.
  • Product Relation: For any two numbers, \text{HCF}\times\text{LCM} = \text{product of the two numbers}; this holds only for pairs, not for three or more numbers.
  • LCM/HCF of Fractions: \text{HCF of fractions} = \frac{\text{HCF of numerators}}{\text{LCM of denominators}} and \text{LCM of fractions} = \frac{\text{LCM of numerators}}{\text{HCF of denominators}}.
  • Remainder Word Problems: The largest number leaving the same remainder r when dividing a and b is \text{HCF}(a-r, b-r), or HCF of the differences if the remainders are equal but unknown.
  • Bells/Lights Together: The time when periodic events coincide again is the LCM of their individual periods — the classic 'bells toll together' problem.

Formulas

  • \text{HCF}\times\text{LCM} = a\times b (for two numbers)
  • HCF of fractions = \frac{\text{HCF of numerators}}{\text{LCM of denominators}}
  • LCM of fractions = \frac{\text{LCM of numerators}}{\text{HCF of denominators}}
  • Largest number dividing a, b, c leaving remainders r_1,r_2,r_3: \text{HCF}(a-r_1, b-r_2, c-r_3)
  • Smallest number leaving remainder r with divisors: \text{LCM}+r

Exam traps & shortcuts

  • Use HCF \times LCM = a\times b to find the missing quantity instantly when three of the four values are known.
  • For 'greatest number that divides leaving the same remainder', take the HCF of the pairwise differences of the numbers.
  • For 'bells ring together again', compute the LCM of the intervals; add the start time to get the clock time.

Reference tables

Every row is a one-line rewrite of a concept above. The fraction row is the one that is most often crossed.

LCM & HCF — the identities worth having cold
SituationFormula
Two integers a, bHCF × LCM = a × b
HCF of fractionsHCF(numerators) / LCM(denominators)
LCM of fractionsLCM(numerators) / HCF(denominators)
Largest d leaving remainders rᵢHCF(a − r₁, b − r₂, …)
Largest d, same unknown remainderHCF of pairwise differences
Smallest N leaving remainder rLCM(divisors) + r
Events next coincideLCM of the intervals

Recap

Read only this the night before.

Primes
HCF takes the lowest power of each prime; LCM takes the highest. Missing prime ⇒ exponent 0 for the HCF.
Product
HCF × LCM = a × b for a pair only. Three numbers: factorise, do not multiply.
Fractions
HCF = HCF(num)/LCM(den); LCM = LCM(num)/HCF(den). Cross the operations and both answers go wrong.
Same remainder
Known r → HCF(a − r, …). Unknown r → HCF of pairwise differences. Largest divisor, not smallest number.
LCM + r
Smallest N leaving remainder r with each divisor is LCM + r. "Smallest number" is the tell.
Together again
Bells, lights, laps: LCM of the intervals. Add the start time only when the question wants a clock reading.

Practise LCM & HCF

Reading is free and needs no account. Practice, mocks and progress live in the app.

  • 45 exam-style questions on this topic, with explanations
  • A 5-question practice set that ends the chapter
  • Timed mocks scored with the real marking scheme
  • Readiness tracked per topic, kept on your device
Continue with Google — freeNo card, no trial. Works offline once installed.