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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>"
},
"name": "catalan_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |