Asked • 06/09/25

Counting certain partitions

Consider the partition of an integer into the sum of some integers:

n = n1 + n2 + ... + nr, with each ni ≥ 1. How many such partitions are there? An equivalent question: how many integer solutions (n1, n2, ..., nr) to the equation n = n1 + n2 + ... + nr, with each ni ≥ 1, are there?

2 Answers By Expert Tutors

By:

Huaizhong R.

tutor
The order actually matters b/c this question came from a problem of counting binary strings of length n with r streaks. The word "partition" is a little abused here with possible confusion with the one in number theory. Maybe this could be avoided by a different formulation such as "number of positive integers solutions to a certain Diophantine equation", which is a more precise and accurate description.
Report

06/17/25

Huaizhong R.

tutor
BTW, I don't actually see that you provide a solution here. So maybe it is better to add it as a comment, which is what it actually is.
Report

06/17/25

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.