HCF and LCM for UP Police Constable Exam — Complete Guide

beginner 18 min read

Concept

HCF (Highest Common Factor) and LCM (Least Common Multiple) are two of the most reliably tested topics in UP Police Constable quant. If you have taken even a single mock, you have seen at least one question from this chapter.

Here is the plain-language version of each:

HCF is the largest number that divides two or more given numbers without leaving a remainder. Think of it as the biggest "tile" that fits evenly into two rooms of different sizes — if one room is 12 metres wide and another is 18 metres wide, the biggest tile that fits both without cutting is 6 metres. That 6 is the HCF.

LCM is the smallest number that is divisible by two or more given numbers. If two buses leave a stop every 12 minutes and every 18 minutes respectively, the LCM (36 minutes) tells you when both buses will be at the stop together again.

A fact you must tattoo in your memory:

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

This holds for exactly two numbers. The moment you see three numbers, this formula does not apply directly — use it only pair-wise or via prime factorisation. Most UP Police questions involve two numbers, so this formula is your primary weapon.

One more concept worth naming explicitly: the "same remainder" problem. You will be asked for the largest number that divides a set of numbers leaving the same remainder. That is always the HCF of the pairwise differences of those numbers — a specific application we will cover in the Deep Dive.


Deep Dive

Method 1 — Prime Factorisation

Break every number into its prime factors.

Example: Find HCF and LCM of 135, 171, 192.

135=33×5135 = 3^3 \times 5 171=32×19171 = 3^2 \times 19 192=26×3192 = 2^6 \times 3

Common prime factor: 3, lowest power = 31=33^1 = 3. So HCF = 3.

For LCM: take 262^6, 333^3, 515^1, 19119^1 — but note the question only asks HCF here. This illustrates how quickly you can eliminate wrong answers once you spot the common factor.

Method 2 — Division Method (Euclid's Algorithm) for HCF

This is faster than prime factorisation for large ugly numbers.

Steps:

  1. Divide the larger number by the smaller.
  2. Replace the larger number with the remainder.
  3. Repeat until remainder = 0.
  4. The last non-zero divisor is the HCF.

Example: HCF of 234 and 452.

452÷234=1 remainder 218452 \div 234 = 1 \text{ remainder } 218 234÷218=1 remainder 16234 \div 218 = 1 \text{ remainder } 16 218÷16=13 remainder 10218 \div 16 = 13 \text{ remainder } 10 16÷10=1 remainder 616 \div 10 = 1 \text{ remainder } 6 10÷6=1 remainder 410 \div 6 = 1 \text{ remainder } 4 6÷4=1 remainder 26 \div 4 = 1 \text{ remainder } 2 4÷2=2 remainder 04 \div 2 = 2 \text{ remainder } 0

HCF = 2. This matches the prime factorisation route but is more systematic for large numbers.

Method 3 — The Master Formula

For two numbers a and b:

LCM=a×bHCF\text{LCM} = \frac{a \times b}{\text{HCF}}

Second number=HCF×LCMFirst number\text{Second number} = \frac{\text{HCF} \times \text{LCM}}{\text{First number}}

Nearly half of UP Police HCF-LCM questions reduce to one of these two formulae. Drill them until they are automatic.

Method 4 — Ratio-Based Numbers

If two numbers are in ratio m : n and their HCF is h, then:

This is a direct consequence of the fact that when you strip the HCF out of both numbers, what remains must be coprime (no common factors). The LCM is then HCF × product of the ratio parts.

Example: Numbers in ratio 3:4, HCF = 88.

Numbers=3×88=264 and 4×88=352\text{Numbers} = 3 \times 88 = 264 \text{ and } 4 \times 88 = 352 LCM=3×4×88=1056\text{LCM} = 3 \times 4 \times 88 = 1056

You do not even need to compute the actual numbers — just multiply the ratio parts with the HCF.

Method 5 — Same Remainder Problems

"Find the largest number that divides 1005, 1245, and 1485 leaving the same remainder."

Rule: Subtract numbers pairwise, then find HCF of the differences.

12451005=2401245 - 1005 = 240 14851245=2401485 - 1245 = 240 14851005=4801485 - 1005 = 480

HCF of 240, 240, 480:

Answer: 240.

Why does this work? If a number d divides both A and B leaving the same remainder r, then d divides (A - r) and (B - r), which means d divides (A - B). The largest such d is the HCF of all differences.

HCF of Fractions vs LCM of Fractions

You may see these, though they are less common in UP Police:

HCF of fractions=HCF of numeratorsLCM of denominators\text{HCF of fractions} = \frac{\text{HCF of numerators}}{\text{LCM of denominators}}

LCM of fractions=LCM of numeratorsHCF of denominators\text{LCM of fractions} = \frac{\text{LCM of numerators}}{\text{HCF of denominators}}


Memory Tricks & Shortcuts

patternRatio-LCM One-Shot

When numbers are in ratio m:n with HCF h, write LCM = m × n × h directly. No need to compute individual numbers first.

Worked example: ratio 3:4, HCF 88 → LCM = 3 × 4 × 88 = 1056.

Standard method (find both numbers, use formula): ~45 seconds. This pattern: ~10 seconds. You save one full multiplication step and a division.

substitutionProduct Formula First

Whenever the question gives you HCF, LCM, and one number and asks for the other, immediately write: Other number = (HCF × LCM) ÷ First number. Do not attempt prime factorisation — that will cost you 60–90 seconds on large numbers.

Example: HCF = 4, LCM = 5940, one number = 108. Other = (4 × 5940) ÷ 108 = 23760 ÷ 108 = 220. Three arithmetic steps, under 20 seconds.

patternDifference-HCF for Same Remainder

Same remainder questions always reduce to: find HCF of pairwise differences.

If three numbers are given, check if consecutive differences are equal first. If they are (like 240, 240 in the example above), the HCF is the difference itself. This saves computing the full HCF chain. Standard method: ~50 seconds. Spotting equal differences: ~8 seconds.

eliminationEuclid Shortcut for Two Large Numbers

For two large numbers in a PYQ (like 1002 and 1314 where HCF is given), you do not need to verify HCF at all — the question already tells you it is 6. Just use LCM = (1002 × 1314) ÷ 6. Break it as: (1002 ÷ 6) × 1314 = 167 × 1314. Then compute: 167 × 1314 = 167 × 1000 + 167 × 314 = 167000 + 52438 = 219438.

This split-and-multiply approach avoids working with the full six-digit product. Standard multiplication: 6 steps. Split approach: 4 steps, ~30 seconds faster.

eliminationOption Elimination via Divisibility

HCF must divide every number in the set. Quickly check which answer options actually divide all given numbers. In the HCF(234, 452) question, 234 is even (ends in 4) and 452 is even — so HCF must be even. Options 16, 32, 8 are even but do they divide 234? 234 ÷ 8 = 29.25 — not exact. So eliminate 8, 16, 32 without full factorisation. Only 2 remains. Time: ~15 seconds versus factorisation: ~40 seconds.


Fast-Solving Framework

Read the question and identify the type in 5 seconds:

  1. "Find HCF" of two large numbers → Use Euclid's division method (repeated remainders).
  2. "Find HCF" of 2–3 numbers with small factors → Prime factorisation, take lowest power of common primes.
  3. "Find LCM" when HCF is given → Immediately apply LCM = (a × b) ÷ HCF. Do not factorise.
  4. "Find the second number" when HCF, LCM, and first number are givenSecond = (HCF × LCM) ÷ First.
  5. Numbers in ratio m:n with HCF hLCM = m × n × h. One multiplication.
  6. "Largest number dividing A, B, C with same remainder" → Compute pairwise differences, find HCF of differences.
  7. "Greatest number that exactly divides A and B" → This is just HCF(A, B). Do not overthink the wording.

If you cannot identify the type within 5 seconds, scan the answer options — if they are close to each other, use elimination via divisibility. If they are spread far apart, your calculation is probably on track.


Solved PYQs

Why this question: Tests the basic LCM formula when HCF is given — the most common question type in this chapter.

Previous Year Questionपिछले वर्ष का प्रश्न2026
दो संख्याओं 1002 और 1314 का HCF 6 है। उनका LCM ज्ञात कीजिए।
दो संख्याओं 1002 और 1314 का HCF 6 है। उनका LCM ज्ञात कीजिए।
  1. 228734
  2. 235882
  3. 219438
  4. 202060
  1. 235882
  2. 202060
  3. 228734
  4. 219438
Solutionसमाधान
LCM = (Product of numbers) / HCF = (1002 × 1314) / 6 = 1316628 / 6 = 219438.

Solving path: HCF = 6 is given. Use LCM = (1002 × 1314) ÷ 6. Divide one number by 6 first: 1002 ÷ 6 = 167. Then 167 × 1314: split as 167 × 1000 + 167 × 314 = 167000 + 52438 = 219438. Match to option C.


Why this question: Ratio-based HCF-LCM — tests whether you know the LCM = m × n × h shortcut.

Previous Year Questionपिछले वर्ष का प्रश्न2026
Two numbers are in the ratio of 3 : 4 and their HCF is 88. Find their LCM.
दो संख्याएं 3 : 4 के अनुपात में हैं और उनका HCF 88 है। उनका LCM ज्ञात कीजिए।
  1. 1064
  2. 948
  3. 1128
  4. 1056
  1. 1064
  2. 1128
  3. 1056
  4. 948
Solutionसमाधान
The two numbers are 3×88 = 264 and 4×88 = 352. LCM = (264 × 352) / 88 = 264 × 4 = 1056. Alternatively, LCM of numbers in ratio 3:4 with HCF h is h × 3 × 4 = 88 × 12 = 1056.

Solving path: Numbers in ratio 3:4, HCF = 88. Apply directly: LCM = 3 × 4 × 88 = 12 × 88 = 1056. No need to find individual numbers. Match to option D.


Why this question: "Greatest number that divides both" = HCF. Tests whether you recognise the phrasing.

Previous Year Questionपिछले वर्ष का प्रश्न2026
Find the greatest number that exactly divides 187 and 391.
वह सबसे बड़ी संख्या ज्ञात कीजिए जो 187 और 391 को पूरी तरह से विभाजित करती है।
  1. 13
  2. 19
  3. 15
  4. 17
  1. 13
  2. 19
  3. 17
  4. 15
Solutionसमाधान
The greatest number that exactly divides both numbers is their HCF. 187 = 11 × 17 and 391 = 23 × 17. HCF = 17.

Solving path: Check answer options via divisibility. Does 17 divide 187? 187 ÷ 17 = 11. Yes. Does 17 divide 391? 391 ÷ 17 = 23. Yes. No other option works. Answer: 17.


Why this question: Same-remainder problems — the trickiest phrasing in this chapter.

Previous Year Questionपिछले वर्ष का प्रश्न2026
सबसे बड़ी संख्या जो 1005, 1245 और 1485 को भाग देने पर समान शेषफल देती है, वह है:
सबसे बड़ी संख्या जो 1005, 1245 और 1485 को भाग देने पर समान शेषफल देती है, वह है:
  1. 255
  2. 175
  3. 240
  4. 180
  1. 180
  2. 240
  3. 175
  4. 255
Solutionसमाधान
Differences: 1245-1005=240, 1485-1245=240, 1485-1005=480. HCF of 240, 240, 480 = 240.

Solving path: Subtract consecutive numbers: 1245 - 1005 = 240, 1485 - 1245 = 240. Differences are equal, so HCF of differences = 240 directly. Answer: 240. Verify: 1005 ÷ 240 = 4 remainder 45; 1245 ÷ 240 = 5 remainder 45. Confirmed.


Why this question: Tests the "find the second number" formula with a three-digit divisor — arithmetic precision matters.

Previous Year Questionपिछले वर्ष का प्रश्न2026
The HCF of two numbers is 4 and their LCM is 5940. If one of the numbers is 108, what is the other number?
दो संख्याओं का HCF 4 है और उनका LCM 5940 है। यदि एक संख्या 108 है, तो दूसरी संख्या ज्ञात कीजिए।
  1. 460
  2. 340
  3. 520
  4. 220
  1. 460
  2. 340
  3. 520
  4. 220
Solutionसमाधान
Other number = (HCF × LCM) / first number = (4 × 5940) / 108 = 23760 / 108 = 220.

Solving path: Other number = (HCF × LCM) ÷ First = (4 × 5940) ÷ 108 = 23760 ÷ 108. Simplify: 23760 ÷ 108 = 2640 ÷ 12 = 220. Answer: 220.


Common Mistakes


Related Topics

Practice on SarkariRise

Sign up + get 3 free mocks →