Determine the coefficient of $x^5$ in the expansion of $(x^2+2x+5)^5$.
By Leibniz's polynomial, we have
$$\sum\frac{5!}{a!b!c!}x^{2a+b} 2^b 5^c.$$
Now we just need to analyze the possibilities for
\begin{cases} 2a+b=5 \\ a+b+c=5\end{cases}
I would like to know how to know the number of possible solutions that this solution can have, in advance without trying to analyze each value that satisfies it. I thought about finding out using the ball-dash method, but I don't know how to do that...
I'm not familiar with the ball-dash method, but we can find the coefficient of $x^5$ for instance by applying the binomial theorem twice. We use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.
Comment:
In (1) we apply the rule $[x^p]x^qA(x)=[x^{p-q}]A(x)$.
In (2) we select the coefficient of $x^{5-k}$.