I would appreciate if somebody could help me with the following problem:
In how many ways can I choose five numbers $a,b,c,d,e$ satisfying $a<b<c<d<e$ from the set $\{1,2,3,\dotsc,100\}$ such that $$100<a+b+c+d+e<145 \quad ?$$
One approach seems to be to first compute, for each $k$, the number of $5$-tuples $(a,b,c,d,e)$ satisfying $a,b,c,d,e\in \{1,2,3,\dotsc,100\}$ and $a<b<c<d<e$ and $a+b+c+d+e=k$. But this doesn't look simple either.
(2. Update: Now the condition $e\leq100$ is also taken care of.)
Write $$\eqalign{a&=1+x_1\cr b&=2+x_1+x_2\cr c&=3+x_1+x_2+x_3\cr d&=4+x_1+x_2+x_3+x_4\cr e&=5+x_1+x_2+x_3+x_4+x_5\cr}$$ with $x_i\geq0$ $\>(1\leq i\leq5)$. Then we have to find the number of integer solutions ${\bf x}=(x_1,\ldots,x_5)$ satisfying $x_i\geq0$ $(1\leq i\leq5)$ and $$x_1+x_2+x_3+x_4+x_5\leq95,\qquad 86\leq 5x_1+4x_2+3x_3+2x_4+x_5\leq 129\ .$$ To this end expand the functions $$f_i(t,y):={1\over 1-t y^i}\qquad (1\leq i\leq 5)$$ up to $y^{129}$ and recursively compute (up to $y^{129}$) the functions $$g_0(t,y):=1,\qquad g_{k}(t,y):=g_{k-1}(t,y)\cdot f_k(t,y)\qquad(1\leq k\leq 5)\ .$$ The function $g_5(t,y)$ is a polynomial in $t$ and $y$. Each solution ${\bf x}$ of the original problem contributes a term $t^my^n$ to $g_5$, whereby $x_1+\ldots+x_5=m$, $5x_1+\ldots+x_5=n$. We now delete all terms in $g_5$ having a $t$-degree $m>95$, and subsequently put $t:=1$. Let $\hat g_5(y)$ be the resulting polynomial in $y$ alone. The number $N$ we are looking for is then given by $$N=\sum_{k=86}^{129}{\rm coeff}_k(\hat g_5)=2\,831\,886\ ,$$ as Mathematica computed for us.