Least common multiple (lcm)
<text size="0.8em">Working with polynomials? See lcm (Polynomials) </text>
Returns the least common multiple of a set of integers.
Syntax
lcm(Integer, ..., Integer)
lcm(List)
lcm(Vector)
lcm(Fraction, Fraction)
Description
Given a set of integers , ..., , returns the least number that is a multiple of , ..., simultaneously.

Given a list of integers , returns the least number that is a multiple of , ..., simultaneously.

Given a vector of integers , returns the least number that is a multiple of , ..., simultaneously.

Given two fractions and , returns its least common multiple defined as
