Prove by induction that $$\sum_{i=1}^n \frac{i}{2^i}=2-\frac{n+2}{2^n}.$$
this is a question that must be proved by induction. For the base case I used $n=1$ and simplified to $1/2$ and now for the inductive step $$p(k)\to p(k+1)=2-\frac{(k+1)+2}{2^{k+1}}.$$ I am not sure if this is right step or if I should simply be $p(k)+(k+1)$.