Least common multiple (lcm)
Nota
Working with polynomials? See Least common multiple (Polynomials).
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