Least common multiple (lcm)

Working with polynomials? See lcm (Polynomials)


Returns the least common multiple of a set of integers.

lcm(Integer, ..., Integer)

Given a set of integers a subscript 1, ...,a subscript n , returns the least number that is a multiple of a subscript 1, ...,a subscript n simultaneously.

lcm(List)

Given a list of integers left curly bracket a subscript 1 comma... comma a subscript n right curly bracket , returns the least number that is a multiple of a subscript 1, ...,a subscript n simultaneously.

lcm(List)

Given a vector of integers left square bracket a subscript 1 comma... comma a subscript n right square bracket , returns the least number that is a multiple of a subscript 1, ...,a subscript n simultaneously.

lcm(Fraction, Fraction)

Given two fractions a over b and c over d, returns its least common multiple defined as l c m open parentheses a over b comma c over d close parentheses equals fraction numerator l c m left parenthesis a comma c right parenthesis over denominator g c d left parenthesis b comma d right parenthesis end fraction