Introduction
In Mathematics, GCD (Greatest Common Divisor) and LCM (Least Common Multiple) are useful concepts. The Greatest Common Divisor, also known as the greatest common factor, of two numbers is the largest number that is a factor of both numbers. Conversely, the Least Common Multiple of two or more integers is the smallest positive integer that is a multiple of all of them.