Find a coefficient of $x^{12}$ in $$(x + x^{2} +x^{3} +x^{4})^{5}$$
Using formula for the sum of a geometric series I have turned it into $$x^5(1-x^4)(1-x)^{-4} $$
So now I see that in $(1-x^4)(1-x)^{-4}$ we need to find coefficient of $x^7$ as we actually have $x^5$, am I right?
If so I unfortunately still don't know what I should do as my next step to calculate this coefficient.
That is the same as the number of integral solutions to $x_1+x_2+x_3+x_4+x_5=12$ where $1\le x_i\le 4$ for all i.
There is a one-to-one bijection between solutions to this diophantine equation and $y_1+y_2+y_3+y_4+y_5 = 7$ where $0\le y_i \le 3$. There are $\dbinom{11}{4}$ integral solutions with no upper bounds. There are $\dbinom{7}{4}$ solutions that violate each bound. So, the coefficient of $x^{12}$ from your problem is $\dbinom{11}{4}-5\dbinom{7}{4} = 155$