Company LogoCompany Logo
Company LogoCompany Logo
Back to Quantitative

Hcf And Lcm

    • Theory
    • Set 1
    • Set 2
    • Set 3
    • Set 4
    • Set 1
    • Set 2
  1. Aptitude
  2. Quantitative
  3. HCF and LCM
  4. Theory

HCF and LCM: Concepts, Formulas, and Clear Examples

For positive integers, HCF is the largest common divisor; LCM is the smallest common multiple. Product links them: HCF×LCM=a×b\text{HCF}\times\text{LCM}=a\times bHCF×LCM=a×b for two numbers.

Prime factorization is the universal tool; division method finds HCF fast for large pairs.

Word problems hide HCF as largest equal grouping and LCM as first common time/event.

Prime factorization

HCF

HCF=∏pimin⁡(αi,βi)\text{HCF} = \prod p_i^{\min(\alpha_i,\beta_i)}HCF=∏pimin(αi​,βi​)​

LCM

LCM=∏pimax⁡(αi,βi)\text{LCM} = \prod p_i^{\max(\alpha_i,\beta_i)}LCM=∏pimax(αi​,βi​)​

Product identity (two numbers)

Key link

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

Example — Find LCM from HCF

HCF(12,18)=6, product 216. LCM = 216/6=36216/6=36216/6=36.

Euclidean algorithm

  • HCF(a,b) = HCF(b, a mod b) until remainder 0.
  • Last non-zero divisor is HCF.

Co-prime check

  • HCF = 1 ⇒ numbers co-prime.
  • LCM of co-prime pair = product.

Three or more numbers

  • HCF/LCM extend by taking min/max exponents across all factorizations.
  • LCM of fractions: LCM of numeratorsHCF of denominators\frac{\text{LCM of numerators}}{\text{HCF of denominators}}HCF of denominatorsLCM of numerators​.

Application patterns

  • Largest tile size covering floor → HCF of dimensions.
  • Bells ring together → LCM of periods.

Step-by-step method for exam questions

  1. Factor each number (or use Euclidean for HCF).
  2. HCF: min powers; LCM: max powers on each prime.
  3. Verify product rule for two numbers.
  4. Translate word problem to HCF or LCM.
  5. Sanity-check HCF divides both numbers.
  6. Select option.

Formula cheat sheet

SituationFormulaWhen to use
Two numbersHCF×LCM=ab\text{HCF}\times\text{LCM}=abHCF×LCM=abOne unknown
Co-primeHCF=1\text{HCF}=1HCF=1LCM = product
Equal groupingUse HCFMax size of identical groups
Sync eventsUse LCMFirst common time
Euclideangcd⁡(a,b)=gcd⁡(b,a mod b)\gcd(a,b)=\gcd(b,a\bmod b)gcd(a,b)=gcd(b,amodb)Large numbers

Frequently asked questions

HCF of 0 and n?

Not in standard MCQs; assume positive integers.

LCM always ≥ larger number?

Yes for positive integers.

Fractions LCM?

Use LCM(ab,cd)=LCM(a,c)HCF(b,d)\text{LCM}(\frac{a}{b},\frac{c}{d})=\frac{\text{LCM}(a,c)}{\text{HCF}(b,d)}LCM(ba​,dc​)=HCF(b,d)LCM(a,c)​.

Three numbers product rule?

No simple abcabcabc product; factor all three.

Practice on this platform

Use 4 practice sets (10 MCQs, detailed solution after each answer) and 2 timed mocks (20 minutes) on this topic to convert formulas into speed and accuracy.

Start practiceAll Quantitative topics