Maths & numbers

Multiplicative partitions calculator for unordered factor combinations

Multiplicative partitions express an integer as an unordered product of factors at least two.

Your numbers

Integer 1–10,000,000.
Integer 0–24. Every factor is at least two.

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

Multiplicative partitions express an integer as an unordered product of factors at least two. These are not prime factorizations: a composite factor can remain intact or split further. Nondecreasing order chooses one representative of each rearrangement class. An optional exact factor count restricts the result without creating a separate calculator. The returned table is a complete bounded enumeration, not a random sample.

THE FORMULAn=a₁a₂…a_k, 2≤a₁≤a₂≤…≤a_k. Count each nondecreasing factor tuple once.

A worked example

The four multiplicative partitions of 12 are [12], [2,6], [3,4] and [2,2,3]. The products 6×2 and 2×6 are the same partition and appear only once. Selecting exactly two factors keeps [2,6] and [3,4], so the count becomes two. Selecting three keeps only [2,2,3]. Ones are excluded because arbitrary extra ones would otherwise produce infinitely many representations.

Good to know

Products are integers from 1 through 10,000,000. The exact factor-count selector accepts 0–24, where zero means unrestricted. At most 3,000 complete decompositions and 200,000 recursive states are supported; larger requests are rejected rather than truncated silently. The input one has a single empty-product partition when unrestricted, and none when a positive factor count is required.

Prime factors are building blocks, not the only output

Unique prime factorization gives 12=2²×3, but a multiplicative partition may group those prime factors into composite blocks. Grouping two twos yields 4×3; grouping a two with the three yields 2×6. Keeping all factors grouped produces [12], while splitting every prime factor produces [2,2,3]. These different groupings explain why the list contains more than a single prime-factorization row.

Repeated primes make naive grouping counts dangerous. Exchanging two indistinguishable copies of the prime two does not create a new partition. Rather than trying to correct a labeled grouping count afterward, the recursion generates factors in nondecreasing order. Each legal tuple then has one construction path under that ordering.

Twelve has four unordered multiplicative partitions122 × 63 × 42 × 2 × 3Four products; two with two factors
The four complete tuples are [12], [2,6], [3,4] and [2,2,3]. Two have exactly two factors; a permutation such as [6,2] is not counted again. Ones are excluded.

The Integer partition calculator with allowed parts counts additive decompositions. The factors on this page multiply to the target and need not be prime.

A minimum next factor removes permutation duplicates

At a recursive stage the remaining product R may be taken as the final factor if it is at least the previously chosen minimum. Alternatively, a divisor d from that minimum through sqrt(R) can be selected, and the process continues with product R/d and minimum d. Larger first factors are unnecessary because a nondecreasing multi-factor tuple cannot begin above the square root of its remaining product.

The one-factor completion is kept independently of the recursive splits. That prevents prime inputs from incorrectly returning no answer: a prime p has the partition [p], even though there is no proper divisor in the search loop. An exact-count restriction removes completions of the wrong length and prunes prefixes that are already too long.

The empty product is a boundary convention worth stating

For n=1 there are no factors at least two. The empty tuple nevertheless has product one by the standard empty-product convention. It is therefore the sole unrestricted multiplicative partition of one. The count field uses zero as a request for any length, so it is not a separate request for exactly zero factors on larger inputs.

The output lists full decompositions, which can grow much faster than the input’s digit count. A safety cap protects the page from a huge enumeration. If that cap is reached, the engine refuses to present a partial list as a complete count. A count-only asymptotic estimate would be a different promise and is not substituted without the user knowing.

A few questions, answered

Are 2×6 and 6×2 different?

No. Factor order is ignored, and the displayed factors are nondecreasing. Ordered factorizations are a different counting problem.

Why are there no factors equal to one?

Allowing arbitrary ones would create infinitely many unrestricted representations. This page requires every nonempty factor to be at least two.

Find your calculator

Start typing to explore the library.