# bell_b function

The n-th Bell number: how many ways to split n items into groups.

## How to write it

### bell_b(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{bell\_b}(4) = 15$

  `bell_b(4)`

  In the solver, `bell_b(4)` gives `15`.

  [Open in the solver](https://hilberon.com/?q=bell_b%284%29)

## Related functions

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

  The n-th Bernoulli number.
- [totient](https://hilberon.com/library/totient)

  Euler's totient: how many whole numbers up to n are coprime to n.
- [carmichael_lambda](https://hilberon.com/library/carmichael_lambda)

  Carmichael function: the least power that takes every number coprime to n to 1 modulo n.
- [subfactorial](https://hilberon.com/library/subfactorial)

  Subfactorial: how many ways to reorder n items so none stays in place.
- [catalan_number](https://hilberon.com/library/catalan_number)

  The n-th Catalan number.
- [stirling_s2](https://hilberon.com/library/stirling_s2)

  Stirling number of the second kind: the ways to split n items into k groups.

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