Back

Solution: 2014 Winter Midterm - 8

Author: Michiel Smid

Question

How many solutions are there to the equation $x_1 + x_2 + x_3 = 17$, where $x_1 \geq 0$, $x_2 \geq 0$, and $x_3 \geq 0$ are integers?
(a)
${19 \choose 17}$
(b)
${20 \choose 17}$
(c)
${20 \choose 16}$
(d)
${19 \choose 16}$

Solution

We can use the dividers method.

We have 17 buckets and 2 extra spots for the dividers to go.

Thus, there are $\binom{17+2}{2}$ solutions.