How many non-negative integer solutions are there to $a+b+c+d+e=79$ with the constraints $a\ge7$, $b\le34$ and $3\le c\le41$?
I get that for $a\ge7$ you do $79-7=72$, $\binom{72+5-1}{5-1}=\binom{76}4$. For $b\ge35$ I think it's $\binom{47}4$ and I'm not too sure what it is for $3\le c\le41$ and I also have no clue as to how to do them all at the same time.
Note that
$$\sum_{m=k}^{n}\binom{m}{k}=\binom{n+1}{k+1}$$
The number of solutions of the equation $d+e=79-a-b-c$ is
$$\begin{cases}\displaystyle \binom{79-a-b-c+1}{1}=\binom{80-a-b-c}{1}, &\text{if }a\le79-b-c \\[0.2cm] 0,&\text{otherwise}\end{cases} $$
The number of solutions of the equation $a+d+e=79-b-c$ such that $a\ge7$ is
$$\begin{cases} \displaystyle\sum_{a=7}^{79-b-c}\binom{80-a-b-c}{1}=\displaystyle\sum_{m=1}^{73-b-c}\binom{m}{1}=\binom{74-b-c}{2}, &\text{if }b\le 72-c \\[0.2cm] 0,&\text{otherwise}\end{cases} $$
The number of solutions of the equation $a+b+d+e=79-c$ such that $a\ge7$ and $b\le34$ is
\begin{align*} &\;\begin{cases} \displaystyle\sum_{b=0}^{72-c}\binom{74-b-c}{2}=\sum_{m=2}^{74-c}\binom{m}{2}=\binom{75-c}{3}, &\text{if }39\le c\le 41 \\[0.2cm]\displaystyle\sum_{b=0}^{34}\binom{74-b-c}{2}=\sum_{m=40-c}^{74-c}\binom{m}{2}, &\text{if }c\le 38 \\[0.2cm] 0,&\text{otherwise}\end{cases} \\ =&\;\begin{cases} \displaystyle\binom{75-c}{3}, &\text{if }39\le c\le 41 \\[0.2cm] \displaystyle \sum_{m=2}^{74-c}\binom{m}{2}-\sum_{m=2}^{39-c}\binom{m}{2} =\binom{75-c}{3}-\binom{40-c}{3}, &\text{if }c\le 37\\[0.2cm] \displaystyle \sum_{m=2}^{36}\binom{m}{2}=\binom{37}{3}, &\text{if }c= 38 \\[0.2cm] 0,&\text{otherwise}\end{cases} \end{align*}
The number of solutions of the equation $a+b+c+d+e=79$ such that $a\ge7$ and $b\le34$ and $3\le x\le41$ is
\begin{align*} &\;\sum_{c=3}^{37}\left[\binom{75-c}{3}-\binom{40-c}{3}\right]+\binom{37}{3}+\sum_{c=39}^{41}\binom{75-c}{3}\\ =&\;\sum_{m=38}^{72}\binom{m}{3}-\sum_{m=3}^{37}\binom{m}{3}+\binom{37}{3}+\binom{36}{3}+\binom{35}{3}+\binom{34}{3}\\ =&\;\sum_{m=3}^{72}\binom{m}{3}-2\sum_{m=3}^{37}\binom{m}{3}+\binom{37}{3}+\binom{36}{3}+\binom{35}{3}+\binom{34}{3}\\ =&\;\binom{73}{4}-2\binom{38}{4}+\binom{37}{3}+\binom{36}{3}+\binom{35}{3}+\binom{34}{3}\\ =&\;968239 \end{align*}