# Binomial coefficient (binomial)

Binomial coefficient: the ways to choose k items out of n.

## How to write it

### binomial(n, k)

**n**

How many items there are. Takes a whole number.

**k**

How many to choose. Takes a whole number.

## Examples

- $\displaystyle \binom{5}{2} = 10$

  `binomial(5, 2)`

  In the solver, `binomial(5, 2)` gives `10`.

  [Open in the solver](https://hilberon.com/?q=binomial%285%2C%202%29)

## Related functions

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

  Least whole number not below a number.
- [arg](https://hilberon.com/library/arg)

  Argument of a complex number: its angle in radians.
- [conj](https://hilberon.com/library/conj)

  Complex conjugate.
- [abs](https://hilberon.com/library/abs)

  Absolute value of a number, or modulus of a complex one.
- [divide](https://hilberon.com/library/divide)

  A quotient: the function form of /.
- [trunc](https://hilberon.com/library/trunc)

  A number with its fractional part cut off.

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