lanedance said:
ok so you want combinations with reptition then, which is towards the bottom of the wiki page
this site has a reasonable explanation of how to derive the formula at the very end of the page
http://www.mathsisfun.com/combinatorics/combinations-permutations.html
You mixed up the things my friend.
He got 11 cookies and 50 children. He need to distribute the 11 cookies on different ways to 50 children.
I will give you example for smaller amounts.
Lets say you got 3 cookies and 5 children.
3 cookies can be distributed:
- 1 cookie for three persons 1*3=3
- 2 cookies for one person and 1 for one of the others 2+1=3
- 3 cookies for one person, 0 for the others 3+0=3
For the first option.
1st 2nd 3rd 4th 5th
1 1 1 0 0
Now make permutations with repetition, because IT DOES matter which children will get a cookie and which not.
[tex]P_{(3,2)} 5 = \frac{5!}{3!2!}=10[/tex]
For the second option.
1st 2nd 3rd 4th 5th
2 1 0 0 0
[tex]P_{(1,1,3)} 5 = \frac{5!}{3!1!1!}=20[/tex]
For the third option.
1st 2nd 3rd 4th 5th
3 0 0 0 0
[tex]P_{(1,4)} 5 = \frac{5!}{1!4!}=5[/tex]
So the total number of distributions would be 10+20+5=35
I believe that my theory is correct. Please correct me if I am wrong. Thank you.