# Least common multiple (lcm)

Least common multiple of whole numbers.

## How to write it

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

**a**

A whole number. Takes a whole number.

**b**

A whole number. Takes a whole number.

## Examples

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

  `lcm(4, 6)`

  In the solver, `lcm(4, 6)` gives `12`.

  [Open in the solver](https://hilberon.com/?q=lcm%284%2C%206%29)
- $\displaystyle \operatorname{lcm}(4, 6, 10) = 60$

  `lcm(4, 6, 10)`

  In the solver, `lcm(4, 6, 10)` gives `60`.

  [Open in the solver](https://hilberon.com/?q=lcm%284%2C%206%2C%2010%29)

## Related functions

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

  Logarithm: natural with ln, or to any base with log.
- [im](https://hilberon.com/library/im)

  Imaginary part of a complex number.
- [log10](https://hilberon.com/library/log10)

  Logarithm to base 10.
- [gcd](https://hilberon.com/library/gcd)

  Greatest common divisor of whole numbers.
- [log2](https://hilberon.com/library/log2)

  Logarithm to base 2.
- [frac](https://hilberon.com/library/frac)

  Fractional part of a number.

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