# Catalan numbers (catalan_number)

The n-th Catalan number.

## How to write it

### catalan_number(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{catalan\_number}(5) = 42$

  `catalan_number(5)`

  In the solver, `catalan_number(5)` gives `42`.

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

## Related functions

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

  The n-th harmonic number: 1 + 1/2 + ... + 1/n.
- [chinese_remainder](https://hilberon.com/library/chinese_remainder)

  The number that leaves given remainders on division by given moduli.
- [carmichael_lambda](https://hilberon.com/library/carmichael_lambda)

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

  The continued fraction of a rational number, as a list.
- [bernoulli_b](https://hilberon.com/library/bernoulli_b)

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

  The convergents of a continued fraction.

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