Evaluate the sum \(\frac{1}{2^1} + \frac{2}{2^2} + \frac{3}{2^3} + \cdots + \frac{k}{2^k} + \cdots \)
sumfor(k, 1, 1000, (k / (2^k))) = it converges to 2