restricted_partitions
Count integer partitions with a maximum part size constraint. Input an integer and maximum part value to calculate restricted partition counts for mathematical analysis.
Instructions
Count restricted partitions where largest part is at most max_part. (Domain: arithmetic, Category: partitions)
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>",
"max_part": "<max_part>"
},
"name": "restricted_partitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| max_part | Yes |