I need some help with the following combinatorics problem:
Consider a vector $(x_1,x_2,...,x_r)$ where $x_i\in \mathbb{N}$ $\forall i$ and $x_1+x_2+...+x_r = n\in \mathbb{N}.$ How many different vectors are possible?
I tried to think about how many ways there are to pick the components of the vector but couldn't get much done. The correct answer should be $\binom{n-1}{r-1}$.