Maths & numbers

Integer partition count calculator

Count ways to write an integer as a sum of positive integers with order ignored.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The calculation accumulates contributions by permitted part size. This prevents counting reorderings as new partitions.

THE FORMULAMultiply the generating factors 1/(1−xᵏ) up to degree n

A worked example

7 has 15 partitions. The expressions 3 + 4 and 4 + 3 count once.

Good to know

The empty partition of zero counts once.

Read the result

Count ways to write an integer as a sum of positive integers with order ignored.

The primary result is labeled “Partitions”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

The empty partition of zero counts once.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

7 has 15 partitions. The expressions 3 + 4 and 4 + 3 count once.

Which rule does this calculator apply?

Multiply the generating factors 1/(1−xᵏ) up to degree n

Find your calculator

Start typing to explore the library.