How do we find the coefficient of $x^{30}$ in the following polynomial $(1+x+x^2+x^3+x^4+x^6)^6$
My approach is as follows: $$1+x+x^2+x^3+x^4+x^5+x^6=\frac{1-x^7}{1-x}$$
hence $$\begin{align}1+x+x^2+x^3+x^4+x^6&=\frac{1-x^7}{1-x}-x^5\\&=(1-x^7-x^5+x^6)(1-x)^{-1}\end{align}$$
$$(1+x+x^2+x^3+x^4+x^6)^6=(1-x^7-x^5+x^6)^6(1-x)^{-6}.$$ It is getting complicated.
Consider the equation $a_1+a_2+a_3+a_4+a_5+a_6 = 30$ where $a_i$ are non-negative integers with a value at most 6. Also, none of the $a_i$ can be $5$.
Following are some hints to find the no. of solutions:
In the end, you should get $\boxed{71}$.
Not an easy calculation, at any rate.