How can I evaluate and prove $$\sum_{n=1}^\infty \frac{2n-1}{2^n}= 3$$
and how to evaluate and prove $$\sum_{n=1}^\infty \frac{n}{2^n}= 2$$
? I know the answer thanks to Wolfram Alpha, but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.
In general, how can I evaluate,please give me the answer step by step with explain please and thanks for every thing