GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 15(a)

Product identity for gcd and lcm

Discrete Mathematics · Proof Techniques & Number Theory · Full GATE CSE 1991 paper

GATE 1991, Q15(a) 5 marks · Descriptive
Report issue

Proof Techniques & Number Theory

Question 15(a), GATE 1991: For positive integers a and b, prove gcd(a,b)·lcm(a,b)=ab.
Tap to enlarge
Answer & solution

Answer: gcd(a,b)·lcm(a,b)=ab. (no official key was published)

By unique prime factorization, write a=∏p pαp and b=∏p pβp, using exponent zero for a prime absent from either factorization. Only finitely many exponents are nonzero.

A common divisor cannot contain more copies of p than either number, so the largest possible exponent of p in the gcd is min(αp,βp). Conversely these minimum exponents do divide both numbers, proving gcd(a,b)=∏p pmin(αp,βp).

A common multiple must contain at least as many copies of p as each number, so the smallest possible exponent in the lcm is max(αp,βp). These maximum exponents form a multiple of both, proving lcm(a,b)=∏p pmax(αp,βp).

Multiplying adds exponents. Since min(u,v)+max(u,v)=u+v for any u,v, the product is ∏p pαp+βp=ab. This also covers a=1 or b=1 by the empty-product convention. Positivity avoids sign conventions and zero-related lcm special cases.

Original paper, page 8