How many solutions are there for the inequation: $7 \le x_1 + x_2 + x_3 + x_4 \le 12$?
So I thought about counting solutions for $x_1 + x_2 + x_3 + x_4\le 12$ then, count solutions for $x_1 + x_2 + x_3 + x_4\le 7$ and then subtract.
I read somewhere that $x_1 + x_2 + x_3 + x_4 \le 12$ can be written as $x_1 + x_2 + x_3 + x_4 + x_5 = 12$ so number of solutions is ${12 + 4 \choose 4} = 1820$
Number of solutions for $x_1 + x_2 + x_3 + x_4 + x_5 = 7$ would be ${7 + 4 \choose 4} = 330$
Final answer: $1820 - 330 = 1490$
Is this correct?