I've been assigned this problem:
Find the number of ways to obtain a total of $15$ points by throwing $4$ different dice?
The problem can be stated as:
$$x_1+x_2+x_3+x_4=15\text{ with } 1\leq x_n \leq 6$$
And also as coefficient of $x^{15}$ in the generating function:
$$\left[ \sum_{r=1}^6x^r \right]^4$$
But I don't know how to compute the coefficient of $x^{15}$, until now, most problems involved the product of small generating functions and it was easy to calculate by summing the powers up to a certain number. But in this case, it's not. What could be done to calculate this by hand? I have the slight impression that I could write:
$$\left[ \sum_{r=1}^6x^r \right]^4=\left[\frac{1-x^{n+1}}{1-x}\right]^4$$
But I don't know what to do from here (considering its possible/meaninful to do this).
We have
$$\sum_{r=1}^6 x^r=\frac{x-x^7}{1-x}$$
Thus using binomial theorem we have
$$\begin{aligned}&\left[\sum_{r=1}^6 x^r\right]^4=x^4(1-x^6)^4(1-x)^{-4}\\ =&x^4\left(\sum_{r=0}^4(-1)^r\binom{4}{r}x^{6r}\right)\left(\sum_{k=0}^\infty(-1)^k\binom{-4}{k}x^k\right)\\ =&\left(\sum_{r=0}^4(-1)^r\binom{4}{r}x^{6r+4}\right)\left(\sum_{k=0}^\infty(-1)^k\binom{-4}{k}x^k\right)\\ =&\sum_{r=0}^4\left[(-1)^r\binom{4}{r}x^{6r+4}\left(\sum_{k=0}^\infty(-1)^k\binom{-4}{k}x^k\right)\right]\\ =&\sum_{r=0}^4\left(\sum_{k=0}^\infty\left((-1)^r\binom{4}{r}x^{6r+4}\right)\left((-1)^k\binom{-4}{k}x^k\right)\right)\\ =&\sum_{r=0}^4\sum_{k=0}^\infty\left((-1)^{r+k}\binom{4}{r}\binom{-4}{k}x^{k+6r+4}\right)(*) \end{aligned}$$
Here we recall the definition of binomial coefficient: for any $\alpha\in\mathbb{R}$ and $k\in\mathbb{N}$, the binomial coefficient "$\alpha$ choose $k$" is
$$\binom{\alpha}{k}=\frac{\alpha(\alpha-1)\dots(\alpha-(k-1))}{k!}$$
and the binomial theorem says
$$(a+b)^{\alpha}=\sum_{k=0}^\infty\binom{\alpha}{k}a^{\alpha-k}b^k$$
Now we look at the $x^{15}$ term in $(*)$, this is equivalent to solve $k+6r+4=15$ where $r=0,1,2,3,4$ and $k=0,1,2,\dots$. The only possibilities are $r=0,k=11$ and $r=1, k=5$, and the correponding coefficients are $(-1)^{11}\binom{4}{0}\binom{-4}{11}$ and $(-1)^{6}\binom{4}{1}\binom{-4}{5}$, by adding them we get the coefficient for the $x^{15}$ term :
$$\begin{aligned}&(-1)^{11}\binom{4}{0}\binom{-4}{11}+(-1)^6\binom{4}{1}\binom{-4}{5}\\ =&(-1)^{11}\frac{(-4)(-5)\dots(-4-(11-1))}{11!}+4\cdot(-1)^6\frac{(-4)(-5)\dots(-4-(5-1))}{5!}\\ =&\frac{4\cdot 5\cdot\dots\cdot 14}{11!}-4\frac{4\cdot\dots\cdot 8}{5!}\\ =&\frac{14!}{3!11!}-4\frac{8!}{3!5!}\\ =&140 \end{aligned}$$