How would you find the coefficient of $x^{2000}$ in
$ = (x^0 + x + x^2 +...)(x^0 + x^5 + x^{10} +...)(x^0 + x^{10} + x^{20}+...)(x^0 + x^{20} + x^{40} + ...)(x^0 + \\ \ \ \ \ \ \ \ \ \ \ x^{50} + x^{100} +...)(x^0 + x^{100} + x^{200} +...)(x^0 + x^{500} + x^{1000} +...)$
I've been trying to use Mathematica, but it's not giving me a solution (very new at using it).
So you have to find the number of non-negative integer solutions to:
$$a+5b+10c+20d+50e+100f+500g = 2000$$
A short C++ program with no more than 20 lines of code and a simple recurrence will serve for the purpose.
...and the answer is: 86950230. Execution time is less than a second.