I'm currently having trouble evaluating the following sum to get a formula in terms of $k$: $$\sum_{i=0}^{k-1} 2^i\cdot 4(k-i-1)$$
I know that $$\sum_{i=0}^n 2^i = 2^{n+1}-1$$ but since my $2^i$ is multiplied with another term inside my summation, I can't use that formula to evaluate it. Any suggestions?