partition_count
Count integer partitions of a non-negative integer n, optionally constrained by maximum part size or exact number of parts, to solve combinatorial counting problems.
Instructions
Count integer partitions of n with optional max part size and part count constraints.
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": "partition_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Non-negative integer to partition (0-10000) | |
| max_part | No | Maximum part size | |
| num_parts | No | Exact number of parts |