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.
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 |