The question:
There are $4$ parts in a test. The first three parts carry $10$ marks each and the fourth part carries $20$ marks. Assuming that the marks are integers, find the number of ways a candidate can get a score of $30$ (on $50$).
What I did:
I know how to solve such problems. We have to basically find the number of integer solutions to the equation $ a + b + c + d = 30 $ where $a, b, c \le 10$ and $d \le 20$. For this, we associate polynomial $(1 + t + t^2 + \ldots t^{10})^3(1 + t + t^2 \ldots + t^{20})$ with this equation and find out the coefficient of $t^{30}$. But in this case, that becomes tough. Like, I write the polynomial as:
$$\left( \dfrac{1 - t^{11}}{1-t}\right)^3\cdot \left(\dfrac{1-t^{21}}{1-t}\right) $$ $$=\left( 1 - t^{11} \right)^3 \cdot \left(1-t^{21}\right)\cdot\left(1-t\right)^{-4} $$
But this doesn't help. How to proceed further this way? Or, is there any better method available to solve this problem?