This is related to the rod-cutting problem and counting the number of ways that you can cut it. I am interested in counting the total number of unique ways that you can cut the rod.
By unique or distinct, I mean that when you cut a rod, the order of the partitions shouldn't matter e.g. cutting a rod of length 4 and be cut as $1+3$ or $3+1$. These should be considered the same.
I know that the brute force solution is $$2^{n-1}$$ but that has a lot of redundant states. Consider the rod of length 3, $2^{n-1}$ configurations are:
1 + 1 + 1
1 + 2
2 + 1 <- redundant
3
So it seems like the actual number of ways to cut a rod is less than $2^{n-1}$. What is the actual number and how would you go about calculating it?
This is the sequence A00041 in OEIS: the number of partitions of integers. If you don't like wiki, try Wolfram MathWorld.
There's no general formula available (as things often don't), but we have the recurrence relation and the generating function (see e.g. the wiki entry).
Just FYI, the ordered situation is the composition of integers.