This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


LCM[n1, n2, ...]
gives the least common multiple of the integers ni.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • LCM also works with rational numbers; LCM[r1, r2, ...] gives the least rational number r for which all the r/r_i are integers.
  • LCM automatically threads over lists.
New in 1