I have equation: $x_1+...+x_{10}=30$
I should give the number of solutions if $x_i\ge 0 $ for $i\ge 3$ and:
1) $x_1\ge 3\ , \ 0 \le x_2\le 2 $
2) $0 \le x_1 \le 10 \ ,\ x_2 \ge 0$
3)$0 \le x_1 \le 10 \, \ 0 \le x_2 \le 10 $
In 1) I should consider for $x_1$ equel to 0,1 and 2, but still I need some formula. Can you help me with that?