Use mathematical induction to prove that for all positive integers n,
$$ \sum_{r=1}^n (2r-1) \cdot 2^{-r} = 3 - \frac{2n+3}{2^n} $$
I have managed to prove the one above but I am unable to continue the second part.
Hence, show that
$$ \sum_{r=1}^n r \cdot 2^{-r} = 2 - \frac{n+2}{2^n}. $$
$$\sum_{r=1}^nr2^{-1}=\frac12\left(\sum_{r=1}^n(2r-1)2^{-r}+\sum_{r=1}^n2^{-r}\right)$$
So find an expression for $\sum_{r=1}^n2^{-r}$ and substitute.