I am currently trying to work out how many integer solutions there are to the sum $$x+y+z+w = 12$$ when $x \geq 4$ and $y \leq 3$ (and $z,w \geq 0$).
I have worked out that
- With $x,y,z,w \geq 0$ the number of solutions is $455$.
- With $x \geq 4$ and $y,z,w \geq 0$ the number of solutions is $165$.
- With $y \leq 3$ and $x,z,w \geq 0$ the number of solutions is $290$.
but I have been unable to proceed from here. Can anyone help me to deduce the answer to this one?
$$(x-4)+y+z+t = 8$$
Let $x'=x-4$.
For $y=0$ we have $x'+z+t =8$ so we have ${10\choose 2} =45 $ solutions.
For $y=1$ we have $x'+z+t =7$ so we have ${9\choose 2} =36 $ solutions.
For $y=2$ we have $x'+z+t =6$ so we have ${8\choose 2} =28 $ solutions.
For $y=3$ we have $x'+z+t =5$ so we have ${7\choose 2} =21 $ solutions.
So we have $130$ solution to this equation.