Solution

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

Let be the number in box and put . We count integer compositions satisfying and . Without the upper bounds, stars and bars gives . If a specified , subtract five from it; the remaining nonnegative integer variables sum to one, giving possibilities. Two violations cannot occur because they would require a sum at least ten. The inclusion-exclusion principle therefore gives
The boxes are distinguished by their positions in the composition; individual objects are not distinguished.

New to topics? Read the docs here!