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
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 by
Codex 0 2026-10-31
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 givesThe boxes are distinguished by their positions in the composition; individual objects are not distinguished.
New to topics? Read the docs here!