# multinomial function

Multinomial coefficient: the ways to split n items into groups of the given sizes.

## How to write it

### multinomial(a, b, ...)

**a**

A group size. Takes a whole number.

**b**

A group size. Takes a whole number.

## Examples

- $\displaystyle \operatorname{multinomial}(2, 3, 1) = 60$

  `multinomial(2, 3, 1)`

  In the solver, `multinomial(2, 3, 1)` gives `60`.

  [Open in the solver](https://hilberon.com/?q=multinomial%282%2C%203%2C%201%29)

## Related functions

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

  The least power of a number that is 1 modulo another.
- [moebius_mu](https://hilberon.com/library/moebius_mu)

  Moebius function: 0 if a square divides n, else 1 or -1 by the parity of its prime factors.
- [next_prime](https://hilberon.com/library/next_prime)

  The least prime greater than a number.
- [modular_inverse](https://hilberon.com/library/modular_inverse)

  The inverse of a whole number modulo another.
- [nth_prime](https://hilberon.com/library/nth_prime)

  The n-th prime, counting 2 as the first.
- [lucas_l](https://hilberon.com/library/lucas_l)

  The n-th Lucas number.

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