New UPSC Foundation, Optional and TGPSC/APPSC batches are open — book your counselling slot.Today's Current AffairsToday's Daily QuizCall 98804 87071

Prelims GS-II (CSAT) · Numeracy · Arithmetic

HCF

The highest common factor (HCF) is the greatest positive integer that divides each of two or more integers exactly. Also called the greatest common divisor (GCD), it is central to CSAT questions on equal grouping, maximum-sized pieces, square tiling, fractions and division with remainders. The key examination skill is translating a verbal condition into a divisibility relationship before calculating.

Blank A4 paper

Blank A4 paper

Credit: Wikimedia Commons · CC BY-SA 4.0 · source

Laying floor tiles at Our Community Place, Harrisonburg, Virginia.

Laying floor tiles at Our Community Place, Harrisonburg, Virginia.

Credit: Artaxerxes · CC BY-SA 3.0 · source

1. Meaning, properties and recognition

A factor divides an integer without leaving a remainder. For example, the factors common to 18 and 30 are 1, 2, 3 and 6; therefore, their HCF is 6. The word highest is essential: several numbers may divide all the given quantities, but only one is the greatest. Every common divisor of a set of positive integers divides its HCF.

HCF questions usually involve dividing existing quantities into identical parts without any leftover. Typical expressions include greatest possible length, largest square tile, maximum number of identical groups and greatest number that divides exactly. These expressions are clues, not substitutes for reasoning. Ask whether the unknown must divide every given quantity; if it must, an HCF relationship is likely.

Useful properties reduce calculation. If one number divides another, their HCF is the smaller number. Consecutive positive integers are always coprime. Two distinct primes are coprime, but composite numbers such as 8 and 15 can also be coprime. For a positive integer k, HCF(ka, kb) = k × HCF(a, b).

  • HCF(24, 72) = 24 because 24 divides 72.
  • HCF(35, 36) = 1 because consecutive integers share no factor greater than 1.
  • HCF(60, 84) = 12; multiplying both numbers by 5 makes their HCF 60.

2. Methods of finding the HCF

Listing factors is suitable for small integers. To find HCF(16, 24), list their factors and identify 8 as the greatest shared factor. This method is transparent but inefficient when numbers are large. In multiple-choice questions, checking the largest plausible option first can be quicker, provided the question already establishes that the unknown is a common divisor.

Prime factorisation works by expressing each number as a product of primes and selecting only the common primes, each with its smallest exponent. Thus, 72 = 2³ × 3² and 120 = 2³ × 3 × 5. Their HCF is 2³ × 3 = 24. In contrast, the LCM takes every prime appearing in either number, with its largest exponent.

Euclid's division algorithm is generally fastest for large numbers. Divide the larger number by the smaller; then divide the previous divisor by the remainder. Continue until the remainder becomes zero. The last non-zero remainder is the HCF. This works because a common divisor of a and b also divides a − qb.

For 867 and 255: 867 = 3 × 255 + 102; 255 = 2 × 102 + 51; and 102 = 2 × 51. Hence the HCF is 51. For three or more numbers, proceed pairwise: HCF(a, b, c) = HCF(HCF(a, b), c). Stop immediately if the running HCF becomes 1.

  • Choose factor listing for small numbers, prime factorisation for obvious prime powers, and Euclid's algorithm for larger unfamiliar numbers.
  • Verify the final result by checking that it divides every original number.

HCF problem-solving sequence

  1. 1. Identify the unknown and establish why it divides the given quantities.
  2. 2. Convert all measurements into a common unit.
  3. 3. Subtract specified remainders or calculate differences where necessary.
  4. 4. Find the HCF using factorisation or Euclid's algorithm.
  5. 5. Check divisibility, remainder restrictions and physical assumptions.
  6. 6. Calculate the final requested quantity, such as group contents or tile count.

3. Equal grouping, cutting and tiling

Suppose 84 notebooks and 126 pencils must be distributed into the greatest possible number of identical kits, using everything. The number of kits must divide both quantities, so it is HCF(84, 126) = 42. Each kit contains 2 notebooks and 3 pencils. Distinguish the number of groups from the contents of each group: the HCF gives the former in this arrangement.

For cutting ropes of lengths 4.2 m, 6.3 m and 10.5 m into the longest equal pieces, first use a common unit. The lengths become 420 cm, 630 cm and 1,050 cm, whose HCF is 210 cm. The maximum piece length is therefore 2.1 m, producing 2 + 3 + 5 = 10 pieces.

A rectangular floor measuring 540 cm by 360 cm can be covered by square tiles of maximum side 180 cm, assuming tiles are aligned with the sides, no tile is cut and joint width is ignored. The number of tiles is (540 ÷ 180) × (360 ÷ 180) = 6. The HCF determines the side length, not the number or area of the tiles.

Always standardise units before calculating. Taking the HCF of 2 and 150 when the quantities are 2 metres and 150 centimetres is invalid. Also inspect the arrangement: questions permitting mixtures, wastage or unequal groups may not be direct HCF problems.

  • Maximum equal piece size: calculate the HCF of the lengths.
  • Maximum identical group count: calculate the HCF of the item counts.
  • Number of pieces or tiles: divide the original dimensions or quantities by the HCF-derived size.
Recognising the required operation
Question structureOperationWhat the result represents
Longest equal pieces without wastageHCF of lengthsLength of each piece
Maximum identical kits using all itemsHCF of item countsNumber of kits
Largest aligned square tiles without cuttingHCF of rectangle dimensionsSide of each tile
Specified remainders on divisionHCF after subtracting remaindersCandidate greatest divisor
Earliest common recurrence of fixed cyclesLCM of cycle lengthsElapsed time until recurrence

4. Divisors and remainders

If a number N leaves remainder r when divided by d, then N = qd + r, so d divides N − r. Therefore, the greatest divisor leaving specified remainders is found by taking the HCF of the adjusted numbers. A crucial condition is that every remainder must be non-negative and smaller than the divisor.

For example, find the greatest number that divides 187 and 233 leaving remainders 7 and 8 respectively. It must divide 180 and 225, so the candidate is HCF(180, 225) = 45. Since 45 exceeds both remainders, it is valid. Checking gives 187 = 4 × 45 + 7 and 233 = 5 × 45 + 8.

When several unequal numbers leave the same unspecified remainder, their differences are divisible by the required divisor. For 43, 91 and 139, the differences from 43 are 48 and 96. Their HCF is 48, and division by 48 leaves remainder 43 in all three cases. The common remainder need not be zero.

If an adjusted-number HCF is not greater than the largest specified remainder, no valid divisor exists: every other common divisor is even smaller. This check prevents a mechanically calculated but impossible answer.

  • Specified remainders: subtract each remainder from its corresponding number.
  • Same unspecified remainder: calculate the HCF of differences.
  • Always verify the remainder condition after finding the candidate divisor.

5. HCF–LCM relationships and examination shortcuts

For exactly two positive integers, their product equals the product of their HCF and LCM. If their HCF is 12 and LCM is 180, their product is 2,160. If one number is 36, the other is 60. Do not extend this identity directly to three numbers: for 2, 4 and 8, the product is 64, whereas HCF × LCM is only 16.

If two numbers have HCF h, write them as hx and hy, where x and y are coprime. Their LCM is then hxy. With HCF 12 and LCM 180, xy = 15. The unordered coprime pairs are (1, 15) and (3, 5), giving original pairs (12, 180) and (36, 60). This method is useful when a question additionally provides a sum or difference.

HCF also simplifies fractions and ratios. Dividing 84 and 126 by their HCF, 42, reduces 84/126 to 2/3. For terminating decimals, multiply every value by the same power of ten, calculate the integer HCF and divide back by that power. Thus, HCF(1.2, 1.8) = HCF(12, 18) ÷ 10 = 0.6.

For positive fractions already in lowest terms, the usual arithmetic rule is HCF of numerators divided by LCM of denominators. Thus, the HCF of 2/3 and 4/9 is 2/9. Finally, distinguish grouping from recurrence: maximum equal divisions generally indicate HCF, while the earliest repetition or smallest common multiple generally indicates LCM.

  • Check that a proposed HCF divides every number and that a proposed LCM is divisible by every number.
  • Use options strategically, but do not confuse the largest listed common divisor with the true HCF unless the options support that conclusion.

Real-world case studies

A4 paper dimensions: a real measurement application

ISO 216 specifies A4 paper dimensions as 210 mm × 297 mm. Since HCF(210, 297) = 3, the largest whole-millimetre square grid dividing both nominal dimensions exactly has a cell side of 3 mm. It contains 70 × 99 = 6,930 cells. This is an arithmetic application of the published dimensions, not a description of paper manufacturing; it assumes exact dimensions and no cutting loss.

Previous year questions

No source-linked PYQ is available here yet. Use the practice questions below.

Practice questions

Practice MCQ 1 · Easy

What is the greatest positive integer that divides 96, 144 and 216 exactly?

  • A. 12
  • B. 18
  • C. 24
  • D. 48

Practice MCQ 2 · Easy

A school has 90 notebooks and 126 pencils. These are distributed into the greatest possible number of identical kits, with nothing left over. How many pencils does each kit contain?

  • A. 5
  • B. 7
  • C. 9
  • D. 18

Practice MCQ 3 · Easy

Three ropes of lengths 2.4 m, 3.6 m and 6 m are cut into pieces of the greatest possible equal length without any wastage. What is the total number of pieces obtained?

  • A. 6
  • B. 8
  • C. 12
  • D. 10

Practice MCQ 4 · Easy

What is the greatest positive integer that leaves a remainder of 13 when it divides each of 157 and 205?

  • A. 48
  • B. 24
  • C. 36
  • D. 96

Practice MCQ 5 · Easy

A rectangular floor measuring 420 cm by 300 cm is covered with square tiles of the largest possible size. The tiles are aligned with the sides of the floor, no tile is cut, and joint widths are ignored. How many tiles are required?

  • A. 25
  • B. 30
  • C. 35
  • D. 60

Practice MCQ 6 · Moderate

What is the greatest positive rational number by which each of 9/20, 21/50 and 33/100 can be divided to obtain an integer?

  • A. 3/50
  • B. 3/100
  • C. 9/100
  • D. 1/100

Practice MCQ 7 · Moderate

When 221, 341 and 521 are divided by a positive integer d, they leave the same remainder r. If d is as large as possible, what is d + r?

  • A. 60
  • B. 81
  • C. 120
  • D. 101

Practice MCQ 8 · Moderate

The HCF and LCM of two positive integers are 18 and 540 respectively. What is the least possible sum of the two integers?

  • A. 198
  • B. 234
  • C. 306
  • D. 558

Practice MCQ 9 · Moderate

A positive integer d leaves remainders 1, 13 and 5 when it divides 1009, 1333 and 1661 respectively. If d is the greatest possible such integer, what is the sum of the three quotients?

  • A. 163
  • B. 164
  • C. 166
  • D. 169

Practice MCQ 10 · Moderate

How many integers n from 1 to 100, inclusive, satisfy HCF(n + 12, 2n + 42) = 6?

  • A. 9
  • B. 10
  • C. 11
  • D. 16

Practice MCQ 11 · Difficult

Two three-digit positive integers have HCF 12 and LCM 27720. How many unordered pairs of such integers are possible?

  • A. 2
  • B. 3
  • C. 5
  • D. 4

Practice MCQ 12 · Difficult

Two rectangular halls measure 11.9 m × 8.5 m and 9.1 m × 6.3 m. In each hall, a strip 35 cm wide along all four walls is left untiled. The remaining rectangles are covered with square tiles of one common size, chosen to be the largest possible. Tiles are aligned with the sides, none is cut, and joint widths are ignored. The contractor must purchase 5% more tiles than are needed for installation. If tiles are sold only in packs of 24, what is the minimum number of packs required?

  • A. 147
  • B. 140
  • C. 154
  • D. 168

Practice MCQ 13 · Difficult

How many integers x from 1 to 500, inclusive, satisfy HCF(3x + 18, 5x + 42) = 12?

  • A. 14
  • B. 28
  • C. 27
  • D. 42

Practice MCQ 14 · Difficult

For a positive integer n, the HCF of n² + 3n + 2 and n² + 5n + 6 is 210. What is the sum of all possible values of n?

  • A. 208
  • B. 309
  • C. 311
  • D. 418

Practice MCQ 15 · Difficult

The numbers 2345, 3455 and 5675 leave the same non-zero remainder when divided by a positive integer d. In addition, the sum of the three quotients is divisible by 9. What is the greatest possible value of d?

  • A. 111
  • B. 185
  • C. 37
  • D. 74

Further reading

  • NCERT Mathematics, Class VI, Knowing Our Numbers and Playing with Numbers, older edition.
  • NCERT Mathematics, Class X, Real Numbers, editions covering Euclid's division algorithm.
  • UPSC official website: Civil Services Examination notification and previous General Studies Paper II question papers.
  • ISO 216: Writing paper and certain classes of printed matter — Trimmed sizes — A and B series.

Preparing for UPSC Civil Services? Get classroom teaching, answer-writing evaluation and mentorship at Pragnya IAS Academy, Ashok Nagar — see why aspirants choose us for IAS coaching in Hyderabad.

Talk to a counsellor

Tell us your preparation stage and preferred programme — a counsellor will call back with batch timings and a study plan.

Or call 98804 87071 · Mon–Sat 9 am–7 pm

Free UPSC daily current affairs quiz — 10 questions, new every day at 8 am IST.

Call nowWhatsApp