Least common multiple

Syntax

lcm(Number1, Number2)
lcm(List1, List2)
lcm(Matrix1, Matrix2)

Examples

Greatest Common Divisor and Least Common Multiple

The commands `gcd` and `lcm` are used to compute the greatest common divisor and the least common multiple of integers.