← Back to question

Answer — Step by step

Using Euclid's division algorithm, find the H.C.F. of 504 and 1188.

Given

The two numbers are 504 and 1188.

Find

The H.C.F. using Euclid's division algorithm.

Method

Divide the larger number by the smaller. Then keep dividing the previous divisor by the remainder. When the remainder reaches 0, the last divisor is the H.C.F.

Rule used

Euclid's division lemma: a = bq + r, where 0 ≤ r < b. Here a is the dividend, b the divisor, q the quotient and r the remainder.

Step 1 - Divide 1188 by 504

504 goes into 1188 twice. Multiply and subtract.
504 × 2 = 1008; 1188 − 1008 = 180
So 1188 = 504 × 2 + 180.
Now divide the previous divisor, 504, by the remainder, 180.

Step 2 - Divide 504 by 180

180 goes into 504 twice. Multiply and subtract.
180 × 2 = 360; 504 − 360 = 144
So 504 = 180 × 2 + 144.
Now divide the previous divisor, 180, by the remainder, 144.

Step 3 - Divide 180 by 144

144 goes into 180 once. Multiply and subtract.
144 × 1 = 144; 180 − 144 = 36
So 180 = 144 × 1 + 36.
Now divide the previous divisor, 144, by the remainder, 36.

Step 4 - Divide 144 by 36

36 goes into 144 four times. Multiply and subtract.
36 × 4 = 144; 144 − 144 = 0
So 144 = 36 × 4 + 0.
The remainder is zero. Stop here: the last divisor, 36, is the H.C.F.

Step 5 - Answer and check

H.C.F. = 36.
Both original numbers divide exactly by it.
504 ÷ 36 = 14; 1188 ÷ 36 = 33

Answer

H.C.F.(504, 1188) = 36.