I am using a multiple variable summation formula, but I cannot seem to render it in mathematical text.
The principle is as follows: You have five hundred thousand units, they can be stored in any sized allotments, so in theory you could have five hundred thousand allotments (easy) to fifty allotments of variable potential sizes. The number of allotments is a Rand function, and the size of each allotment is a Rand function where they add up to the total units precisely.
https://brilliant.org/wiki/partition-of-an-integer/
This is close, but not quite.
In the example cited they show
Where I am of the need to process it like this:
So where the Partitions of an Integer show a value of 7, my 'variation' would show 16.
It appears this is a new direction in Partitions of an Integer, therefore the answer is not in existing math.