Does $(m + 1) + m2 + (m - 1)2^{2} \ldots + 2^{m}$ equal something simpler, where $m\in \mathbb{N}$? Excuse me if it is too simple, I am bit tired.
Thanks.
Does $(m + 1) + m2 + (m - 1)2^{2} \ldots + 2^{m}$ equal something simpler, where $m\in \mathbb{N}$? Excuse me if it is too simple, I am bit tired.
Thanks.
Here's a hint, and a good trick in general, called diagonalization.
Write your sum in the form:
1 + 1 + 1 + ... + 1
2 + 2 + ... + 2
4 + ... + 4
...
2^m
And compute the sum by columns rather than rows.
You'll find essentially the same thing here.
But note that that it looks like your sum should end with $2^{m-1}$ and not $2^m$.
$$\sum_{i=0}^m (m+1-i)2^{i}=(m+1)\sum_{i=0}^m 2^i- \sum_{i=0}^m i2^{i}$$
At that point you should be able to calculate it.
$$\begin{align}S=(m+1)+&2m\;\;\;\;\;\;\;\;+2^2(m-1)+2^2(m-2)+...2^{m-1}\\2S=\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;&2(m+1)+2^2m\;\;\;\;\;\;\;\;+2^3(m-1)+...(m-(m-2))2^{m-1}+2^m\end{align}$$ Subtract those: $$S=(m+1)-2-2^2...-2^{m-1}-2^m=(m+1)-2(2^m-1)$$