Let there be an equation, $$a_1x_1+a_2x_2+\dots+a_nx_n=S$$ Here, $a_i$ where $i=1,2,\dots,n$ are positive integers, also S is a positive integer too. How many non-negative integral solutions does the above equation have?
For example $3x+y+z=24$ has 117 integral solutions. Can you also verify it with this result?
I am not looking for a Java program to solve it and I am in 10 standard so a bit of explanation will help a lot.