Suppose we want to find the number of non-negative integral solutions to the equation:
$$x_1 + x_2+ x_3 = m$$
where we have $x_i \le L_i, i\ge2$
I found the solution as:
$$\sum_{x_2=0}^{L_2} \sum_{x_3=0}^{L_3} \frac{m!}{x_2!x_3!(m-x_2-x_3)!}$$
My questions are two-fold:
Is my answer correct?
This solution is computationally impossible for $m=100$, for example. Can somebody provide the answer in a computable format?