Hi Quazars,
I'm still stuck at your box .
If there are only 40 cookies and 5 people how can this happen
They get 40, 1,1,8,and 1 respectively.
I obviously do not understands what you mean. :///
maybe you can do this with the stars and bars method?
Say you have 6 cookies and 3 people (just to make it simpler)
1st 2nd 3rd leftovers
c |c c | c c |c
so that is 9C3 ways = 84 ways to allocate the cookies
so is there were 40 cookies and 5 people then maybe there is
45C5 ways = 1,221,754 ways to divide up the cookies
(there can be some leftover cookies and/or some people who do not get a cookie)
I am not certain that you can do it this way but it seems logical to me....
It is a different scenario to this video clip but.... maybe...
https://www.youtube.com/watch?v=5hF59P8tmQc
Tell me what you think?