LCM
The least common multiple (LCM) of a set of integers is the smallest positive integer that is a multiple of each number in the set. For two integers a and b, the LCM is the least positive number divisible by both a and b. The operation is commutative and associative, so the LCM of a set can be computed by repeatedly taking the LCM of pairs.
A common way to compute lcm(a,b) is via the greatest common divisor: lcm(a,b) = |a × b| /
Several properties are noteworthy. The LCM is related to the greatest common divisor via gcd(a,b) × lcm(a,b)