I wish to enumerate the number of solutions of the system of equations and inequalities for 3 non-negative integer unknowns $x,y,z \ge 0$: ($a$,$b$ specified) \begin{align} x+y+z&=a\\ x+y&>b\\ y+z&>b \end{align}
Is there an elegant way of finding the number of solutions or must I use an exhaustive numerical algorithm. Actually, further on I'll have more complicated systems of this type with more unknowns and more inequalities.
You are counting the lattice point in a triangle, and the magic words are Pick's Theorem In higher dimensions, the question is higher, see the answer to this: https://mathoverflow.net/questions/10266/counting-lattice-points-on-an-n-simplex