I'm trying to prove this is true: $$\sum_{i=1}^{k} 2^{i-1}(k-i) = 2^k-k-1$$
I'm used to doing normal inductions on summations, but this one is a little confusing to me. Basically, because both i and k are present in the equation itself am I supposed to ensure that both i goes to k+1 and and k also goes to k+1? Does it matter if you start with inducting on k or i first?
I've tried an induction where I induct on i first:
$$\sum_{i=1}^{k+1} = \sum_{i=1}^{k} + 2^{k+1-1}(k-(k+1)) = 2^k-k-1+2^k(-1)=-k-1$$
Obviously this isn't what I want since I want the end goal to look like:
$$2^{k+1}-(k+1)-1 $$
Additionally if anyone knows of any places where I could find example problems of summations using two variables I'd love to know.
Put $$ S(k) = \sum\limits_{i\, = \,1}^k {2^{\,i - 1} \left( {k - i} \right)} \quad \quad F(k) = 2^{\,k} - k - 1 $$ so you shall demonstrate by induction that $$ S(k) = F(k) $$
Then clearly the induction is on varying the $k$, while the $i$ is just a parameter internal to $S$.
Now
That's all what needed to give the proof by induction