Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2017/discrete-mathematics-continuous-mathematics-and-probability/2/d/i/solution

For one colour, the box occupancies form a weak composition of into nonnegative parts. For , stars and bars gives choices. The three colours' occupancies can be selected independently, so the number is
Boxes are labelled, while equal-colour balls contribute only occupancy counts; no extra factorial for permuting such balls is appropriate.

New to topics? Read the docs here!