I am trying to prove by double-counting that
$$k2^{k-1} = \sum_{i=0}^{k} i\binom{k}{i}$$
where $n$ is a positive integer.
I did it algebraically. However, the professor told me that I have to do this also by double-counting but I am not sure how to do this. Can someone help me?