I am trying to solve a problem using permutation/combination but cannot figure out how to proceed.
Suppose the sum of three variables $x, y, z$ is $30$. If $x\ge2, y\ge0, z\ge-3$, how many integer solutions exist?
I understand that $2\le x\le33, 0\le y\le31, -3\le z\le28$. A simple simulation shows that there are $528$ solutions. However, I am unable to calculate this mathematically. I would like a hint so that I can try this on my own.
Set $a=x-2$, $b=y$ and $c=z+3$.
The problem is the same as finding the number of sums $a+b+c=31$ where $a,b,c$ are nonnegative integers.
Now apply stars and bars.