Partition function calculator
Compute p(n), the number of ways to write an integer as a sum of positive integers regardless of order — so 4 = 4 = 3+1 = 2+2 = 2+1+1 = 1+1+1+1 gives p(4) = 5. It uses Euler's pentagonal number recurrence with big integers, exact up to n = 500.
Related tools
All Sequences & series tools →Enter Non-negative integer (0–500) and the Partition function calculator works out p(n) — number of partitions, Number of digits straight away. For instance, with Non-negative integer (0–500) = 10 it returns p(n) — number of partitions = 42 and Number of digits = 2.
How to use it
- Enter your values: Non-negative integer (0–500).
- Read the result instantly: p(n) — number of partitions, Number of digits.
Frequently asked questions
How does the Partition function calculator work?
It takes Non-negative integer (0–500) and derives p(n) — number of partitions and Number of digits from them. The calculation is live as you type, so the result updates on every change.
Which values does the calculator ask for?
A single value: Non-negative integer (0–500). Nothing else is required — no account, no file upload.
What does a typical calculation look like?
With Non-negative integer (0–500) = 10, the calculator returns p(n) — number of partitions = 42 and Number of digits = 2. Those figures come from running this exact tool, so you can reproduce them by entering the same values.
How much does the result change with different inputs?
It moves a lot. Using Non-negative integer (0–500) = 20 instead, Number of digits goes from 2 to 3 — which is why it is worth testing a few scenarios rather than trusting a single figure.
What does it give for smaller values?
Scaled down to Non-negative integer (0–500) = 5, Number of digits comes out at 1. The relationship is worth checking at both ends before you rely on a single result.
When would I actually use this?
Finding the nth term without listing every one before it, summing a long run in one step, and recognising which family a sequence belongs to.
What is the most common mistake?
Starting the index at the wrong end. Whether the first term is a₀ or a₁ shifts every result by one position, and the two conventions are both common.
What is the difference between the Partition function calculator and the Catalan number generator?
This one returns p(n) — number of partitions; the Catalan number generator returns Catalan number Cₙ and C₀ … Cₙ. That is the whole difference — open the one whose figure you need.
Is there a tool for the next step?
Ceiling and floor function calculator is the closest one after this: The ceiling ⌈x⌉ rounds up to the next integer, the floor ⌊x⌋ rounds down. Enter any number to get both, plus the ordinary round, the truncation toward zero and the fractional part left over.
What else is worth having open alongside it?
Gamma function calculator Γ(x) and Möbius function calculator μ(n) — they come up in the same task often enough to be worth a second tab.