- #1
toofle
- 20
- 0
Homework Statement
In how many ways can 24 cans of Fanta and 24 cans of Cola be distributed among five thirsty students so that each student may
(a) at least two cans of each variety? (2p)
(b) at least two cans of a variety, at least three cans of the other variety? (3p)
Homework Equations
The Attempt at a Solution
I have a hard time understanding what kind of combinatorics problem it is.
2 types of cans confuses me since I can't figure out how to formulate it as a generating function problem.
If it was 48 cans of the same and everyone should have at least 2 I could do:
c1 + c2 +c3 + c4 + c5 = 48, where c1=c2=c3=c4=c5=(x^2+x^3+...+x^n)
Using normal combinatorics seems impossibly hard if I'm not missing something obvious.
I also thought maybe I could give everyone 2 of each first:
(24 nCr 2) * (24 nCr 2) * (22 nCr 2) * (22 nCr 2) down to 16 = A but then what about the rest?
Last edited: