This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory  /
LCM

  • LCM[ , , ... ] gives the least common multiple of the integers .
  • Integer mathematical function (see Section A.3.10).
  • See the Mathematica book: Section 3.2.4.
  • See also: GCD, PolynomialLCM.

    Further Examples

    This gives the least common multiple of the three integers.

    In[1]:=

    Out[1]=

    Here is the least common multiple of the first 1000 integers.

    In[2]:=

    Out[2]=