LCM
Usage
• LCM[ , , ... ] 给出整数  的最小公倍数。
Notes
• LCM 也可以对有理数使用; LCM[ , , ... ] 给出所有 r/ 是整数的最小有理数. • LCM 有属性 Flat 和 Orderless. • 参见 Mathematica 全书 : 节 3.2.4.
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]=
|
|