catalan_number
Calculate the nth Catalan number for combinatorial mathematics, such as counting binary trees or valid parentheses sequences.
Instructions
Calculate the nth Catalan number C_n = (2n)!/(n+1)!n!. (Domain: arithmetic, Category: combinatorial_numbers)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |