Partition a Number
Find all partitions of an integer. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Partition a Number
- 1. Enter the number to partition. Type a positive integer into the input pane. The tool finds every way to write that number as a sum of positive integers, ignoring order.
- 2. Read the full partition list. Each line shows one way to sum to your number, from the number itself down to a sum of all ones, the largest and smallest possible partitions.
- 3. Copy the partitions. Copy the list of partitions into a homework answer, a combinatorics notebook, or a script that needs the enumerated set for further processing.
When to use Partition a Number
Partition a Number enumerates every way to write an integer as a sum of positive integers, disregarding order. It saves the tedious, error-prone process of listing partitions by hand once the input number climbs past single digits.
- Checking a combinatorics homework problem. A discrete math assignment asks how many partitions of 8 exist, and listing them all here lets you verify your hand-counted total before writing down the final answer.
- Verifying a partition-counting algorithm. You implemented a dynamic programming solution to count integer partitions and want the full enumerated list for a small number like 10 to confirm your count matches, not just the total.
- Exploring partition patterns for a talk. You are preparing a lesson on partition theory and generating functions and want live examples of partitions for several small numbers to show students how quickly the count grows.
- Solving a coin-change or subset-sum style puzzle. A puzzle asks for every way to make change or split a quantity into whole parts, and listing the number's partitions directly gives you the raw combinations to filter by any extra constraint.
Examples
All partitions of 4
Input
4
Output
4 = 4 4 = 3 + 1 4 = 2 + 2 4 = 2 + 1 + 1 4 = 1 + 1 + 1 + 1
About the Partition a Number tool
Partition a Number is a free online tool that works entirely inside your web browser. Find all partitions of an integer. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 234 Math utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.
Frequently asked questions
Is Partition a Number free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.