Can someone explain how to find the number of solutions to an equation of the form
a1 + a2 + ... + an = x
possibly with constraints such as a1 > w or a2 < z where a1, a2, ... an and w, x, z etc. are nonnegative integers.
I am given to understand the solution can be found with binomial coefficients.