Partition and composition calculator
Open Partition and composition calculator on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "partition-and-composition-calculator",
"category": "calculators",
"built": true,
"requirements": "Supply total from 0 to 60 and optional minPart, maxPart, minLength, maxLength and distinct. Parts are positive integers from 1 to 60. Partitions are nondecreasing lists; compositions distinguish order. Distinct applies to the whole list. The empty list is the sole length-zero representation of total zero. Every result is checked against the stated constraints; exceeding enumeration or report limits returns no partial list. All processing stays on your device. Paste JSON with dot decimals; quote exact fractions and large integers. Input is limited to 100,000 characters and 100 digits per scalar. Exact results use reduced fractions, with a 1,024-digit and 200,000-step arithmetic bound. Enumeration is limited to 10,000 complete results and 1,000,000 search steps; exceeding a bound returns an error, not a partial answer. Geometry uses floating-point approximations. JSON and typed JSON Pointer CSV retain the complete input, results, constraints and worked steps. Reports are limited to 4,000,000 JSON and 8,000,000 CSV characters. Each calculation uses a disposable worker with a 10-second timeout. Search and sort the first 200 preview rows. Copy result copies the summary. Download JSON or CSV for every result and worked step. Geometry tools also provide a downloadable SVG diagram.",
"implementation": {
"fields": [
{
"key": "mode",
"label": "Enumeration mode",
"value": "Partitions",
"type": "select",
"values": [
"Partitions",
"Compositions"
]
}
],
"presentation": "metrics",
"inputMaxLength": 100000,
"inputErrorCode": "EXACT_MATH_INPUT",
"note": "Supply total from 0 to 60 and optional minPart, maxPart, minLength, maxLength and distinct. Parts are positive integers from 1 to 60. Partitions are nondecreasing lists; compositions distinguish order. Distinct applies to the whole list. The empty list is the sole length-zero representation of total zero. Every result is checked against the stated constraints; exceeding enumeration or report limits returns no partial list. All processing stays on your device. Paste JSON with dot decimals; quote exact fractions and large integers. Input is limited to 100,000 characters and 100 digits per scalar. Exact results use reduced fractions, with a 1,024-digit and 200,000-step arithmetic bound. Enumeration is limited to 10,000 complete results and 1,000,000 search steps; exceeding a bound returns an error, not a partial answer. Geometry uses floating-point approximations. JSON and typed JSON Pointer CSV retain the complete input, results, constraints and worked steps. Reports are limited to 4,000,000 JSON and 8,000,000 CSV characters. Each calculation uses a disposable worker with a 10-second timeout.",
"experience": {
"automatic": false,
"single": false,
"inputMaxLength": 100000,
"inputMode": "text",
"label": "JSON input",
"placeholder": "{\n \"total\": 5\n}",
"help": "Supply total from 0 to 60 and optional minPart, maxPart, minLength, maxLength and distinct. Parts are positive integers from 1 to 60. Partitions are nondecreasing lists; compositions distinguish order. Distinct applies to the whole list. The empty list is the sole length-zero representation of total zero. Every result is checked against the stated constraints; exceeding enumeration or report limits returns no partial list. All processing stays on your device. Paste JSON with dot decimals; quote exact fractions and large integers. Input is limited to 100,000 characters and 100 digits per scalar. Exact results use reduced fractions, with a 1,024-digit and 200,000-step arithmetic bound. Enumeration is limited to 10,000 complete results and 1,000,000 search steps; exceeding a bound returns an error, not a partial answer. Geometry uses floating-point approximations. JSON and typed JSON Pointer CSV retain the complete input, results, constraints and worked steps. Reports are limited to 4,000,000 JSON and 8,000,000 CSV characters. Each calculation uses a disposable worker with a 10-second timeout. Up to 100,000 characters. Review the settings before running.",
"helpParts": [
"Supply total from 0 to 60 and optional minPart, maxPart, minLength, maxLength and distinct. Parts are positive integers from 1 to 60. Partitions are nondecreasing lists; compositions distinguish order. Distinct applies to the whole list. The empty list is the sole length-zero representation of total zero. Every result is checked against the stated constraints; exceeding enumeration or report limits returns no partial list. All processing stays on your device. Paste JSON with dot decimals; quote exact fractions and large integers. Input is limited to 100,000 characters and 100 digits per scalar. Exact results use reduced fractions, with a 1,024-digit and 200,000-step arithmetic bound. Enumeration is limited to 10,000 complete results and 1,000,000 search steps; exceeding a bound returns an error, not a partial answer. Geometry uses floating-point approximations. JSON and typed JSON Pointer CSV retain the complete input, results, constraints and worked steps. Reports are limited to 4,000,000 JSON and 8,000,000 CSV characters. Each calculation uses a disposable worker with a 10-second timeout.",
"Up to 100,000 characters.",
"Review the settings before running."
],
"action": null
},
"mode": "explicit",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Enumerate constrained integer partitions or ordered compositions and verify every result.
How to use Partition and composition calculator
- Paste a JSON example and edit its documented fields. Keep machine field names unchanged.
- Choose a supported operation and review the stated domain and bounds.
- Review the result and download the complete JSON or CSV report, including worked steps.
Useful next steps
Partition and composition calculator
Supply total from 0 to 60 and optional minPart, maxPart, minLength, maxLength and distinct. Parts are positive integers from 1 to 60. Partitions are nondecreasing lists; compositions distinguish order. Distinct applies to the whole list. The empty list is the sole length-zero representation of total zero. Every result is checked against the stated constraints; exceeding enumeration or report limits returns no partial list.
Keep the complete calculation
All processing stays on your device. Paste JSON with dot decimals; quote exact fractions and large integers. Input is limited to 100,000 characters and 100 digits per scalar. Exact results use reduced fractions, with a 1,024-digit and 200,000-step arithmetic bound. Enumeration is limited to 10,000 complete results and 1,000,000 search steps; exceeding a bound returns an error, not a partial answer. Geometry uses floating-point approximations. JSON and typed JSON Pointer CSV retain the complete input, results, constraints and worked steps. Reports are limited to 4,000,000 JSON and 8,000,000 CSV characters. Each calculation uses a disposable worker with a 10-second timeout. Search and sort the first 200 preview rows. Copy result copies the summary. Download JSON or CSV for every result and worked step. Geometry tools also provide a downloadable SVG diagram.