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
catalan_number(5)In the solver,
Open in the solvercatalan_number(5)gives42.
Related functions
- harmonic_number
The n-th harmonic number: 1 + 1/2 + ... + 1/n.
- chinese_remainder
The number that leaves given remainders on division by given moduli.
- carmichael_lambda
Carmichael function: the least power that takes every number coprime to n to 1 modulo n.
- continued_fraction
The continued fraction of a rational number, as a list.
- bernoulli_b
The n-th Bernoulli number.
- convergents
The convergents of a continued fraction.