Suppose we have an equation
$$15 = 5i + 3j + 2k$$
where $i, j, k$ are non-negative integers. It is easy to find some values that make this equation true:
$$i=3, j=0, k=0$$ $$i=0, j=5, k=0$$ $$i=1, j=2, k=2$$ $$...$$
But if we change the equation to be something quite a bit more complex, it becomes much harder to determine if a solution exists. For example, consider the equation $$2038 = 17i + 8j + 7k$$
again where $i, j, k$ are non-negative integers. Is there a way to determine if a solution exists other than by trial and error?
One way of determining is finding the number of solutions in non-negative integers through the use of binomial theorem.
First we find the maximum allowable values of i,j and k .
For example in the equation $15=5i+3j+2k$ . The maximum value of i can be 3 ,similarly maximum values of j and k can be 5 and 7 respectively .
Now the number of solutions of this equations , is equal to the coefficient of $x^{15}$ in $(1+x^5+x^{10}+x^{15})(1+x^3+x^6+\ldots + x^{15})(1+x^2+x^4+\ldots+x^{14})$ .
If when finding the coefficient in this way , the coefficient comes out to be 0 , there are no solutions , otherwise , there are solutions possible .