Sum of exponential terms and binomial

binomial-coefficientsexponential-sum

I would like to calculate the following expression with large $m$:

$$\sum^{m}_{q=1} \frac{(-1)^{q+1}}{q+1} {{m}\choose{q}} e^{-\frac{q}{q+1}\Gamma}.$$

But, due to the binomial, the computer gets stuck when $m$ grows large.
In this problem we have that $\Gamma > 0$.
I am trying to find a simplification or a way around, but I didn't find anything that could help me.
Can anyone give me some hints?

Best Answer

Computing the binomial coefficients efficiently

If by "gets stuck" you mean that the computation is slow, I would guess that you are computing the binomial term inefficiently. Indeed, you shouldn't recompute the binomial term for every summand, but instead use the fact that $$ \binom{m}{q}=\frac{m!}{q!\left(m-q\right)!}=\frac{m-\left(q-1\right)}{q}\frac{m!}{\left(q-1\right)!\left(m-\left(q-1\right)\right)!}=\frac{m-q+1}{q}\binom{m}{q-1}. $$ Defining $$ C_{q}=\frac{m-q+1}{q}C_{q-1}\text{ if }q\geq1\qquad\text{and}\qquad C_{0}=1, $$ it follows from the previous claim that $C_{q}=\binom{m}{q}$. Therefore, you can rewrite the sum you are interested as $$ S\equiv \sum_{q=1}^{m}\frac{\left(-1\right)^{q+1}}{q+1}C_{q}\exp\left(-\frac{q}{q+1}\Gamma\right). $$

Removing some terms by symmetry

We can use the fact that $C_{q}=C_{m-q}$ to reduce the number of terms. Note that $$ S-1=\sum_{q=0}^{m}\frac{\left(-1\right)^{q+1}}{q+1}\exp\left(-\frac{q}{q+1}\Gamma\right)C_{q}. $$ Assuming $m=2j+1$ is odd, we get $$ S-1=\sum_{q=0}^{j}\left(-1\right)^{q+1}\left(\frac{1}{q+1}\exp\left(-\frac{q}{q+1}\Gamma\right)-\frac{1}{m-q+1}\exp\left(-\frac{m-q}{m-q+1}\Gamma\right)\right)C_{q}. $$ Assuming $m=2j$ is even, we get \begin{multline*} S-1=\frac{\left(-1\right)^{j+1}}{j+1}\exp\left(-\frac{j}{j+1}\Gamma\right)C_{j}\\ +\sum_{q=0}^{j}\left(-1\right)^{q+1}\left(\frac{1}{q+1}\exp\left(-\frac{q}{q+1}\Gamma\right)+\frac{1}{m-q+1}\exp\left(-\frac{m-q}{m-q+1}\Gamma\right)\right)C_{q}. \end{multline*}

Related Question