# 最小公倍数（Least common multiple，lcm）

若干整数的最小公倍数。

## 怎么写

### lcm(a, b, ...)

**a**

一个整数。接受一个整数。

**b**

一个整数。接受一个整数。

## 示例

- $\displaystyle \operatorname{lcm}(4, 6) = 12$

  `lcm(4, 6)`

  在求解器中，`lcm(4, 6)` 的结果是 `12`。

  [在求解器中打开](https://zh.hilberon.com/?q=lcm%284%2C%206%29)
- $\displaystyle \operatorname{lcm}(4, 6, 10) = 60$

  `lcm(4, 6, 10)`

  在求解器中，`lcm(4, 6, 10)` 的结果是 `60`。

  [在求解器中打开](https://zh.hilberon.com/?q=lcm%284%2C%206%2C%2010%29)

## 相关函数

- [log](https://zh.hilberon.com/library/log)

  对数：ln 为自然对数，log 可指定任意底数。
- [im](https://zh.hilberon.com/library/im)

  复数的虚部。
- [log10](https://zh.hilberon.com/library/log10)

  以 10 为底的对数。
- [gcd](https://zh.hilberon.com/library/gcd)

  整数的最大公约数。
- [log2](https://zh.hilberon.com/library/log2)

  以 2 为底的对数。
- [frac](https://zh.hilberon.com/library/frac)

  一个数的小数部分。

---
Source: https://zh.hilberon.com/library/lcm
