sudhir3127 wrote:
formula is
"distributing n identical things among r persons such that any person might get any number ( incl 0) is n+r -1 C r-1"
thus its
5+3-1 C 3-1
7C2 = 21
sudhir3127, could you please specify? I see such formula at first time
I solved this problem in such way:
005 = 3!/2! = 3
104 = 3!/1 = 6
113 = 3!/2! = 3
230 = 3!/1 = 6
221 = 3!/2! = 3
adding 3+6+3+6+3=21
But your's approach is faster.
I will highly appreciate your comments about formula
n+r -1 C r-1
what about when zero is not included?
If this problem will look like
Larry, Michael, and Doug have five donuts to share. If any one of the men can be given any whole number of donuts from
1 to 3, in how many different ways can the donuts be distributed?
Will this formala work?
I think in this question answer will be 3 ways