Try it yourself · Class 10 Maths · Real Numbers

HCF and LCM from the prime factors of two numbers

Every number greater than 1 is a product of primes in one way only. Write two numbers as rows of prime tiles. For each prime, the HCF takes the smaller number of tiles and the LCM takes the larger number.

Smaller power of each prime gives the HCF, larger the LCM: .

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Slide the First number and the Second number from 2 to 360.
  • Look at which tiles turn green: these are the shared primes, counted at the smaller power.
  • Choose two numbers with no common prime and see the HCF drop to 1.
  • Choose a number and its multiple and see the LCM equal the larger number.

What to watch

  • With 36 and 60, 36 = 2² × 3² and 60 = 2² × 3 × 5. The readout shows HCF 12 and LCM 180.
  • HCF × LCM is 12 × 180 = 2160 and a × b is 36 × 60 = 2160, and the two rows agree.
  • With 84 and 126 the readout shows HCF 42 and LCM 252, with 10584 for both HCF × LCM and a × b.
  • With 35 and 36 no tile is green. The readout shows HCF 1 and LCM 1260, which is 35 × 36.

The formula

Here e_a and e_b are the powers of the prime p in the two numbers. Since min + max = e_a + e_b for each prime, HCF × LCM = a × b.

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. Bihar Board 2016

    By prime factorisation method find the L.C.M. and H.C.F. of 26 and 91.
    Show the answer
    LCM = 182, HCF = 13
  2. Our question

    Two positive integers have HCF and LCM . If one of them is , the other is
    Show the answer
    (B)

More to try in Real Numbers

Every simulation in the Lab