I have a finite sum: $$\sum_{k=1}^n\frac{2^{k}}{k}$$
I am wondering how to write it in closed form.
I tried this, where I will plug in $x=2$ at the end:
$$f(x):=\sum_{k=1}^nx^{k-1}=\sum_{k=0}^{n-1}x^k=\frac{1-x^{n-1}}{1-x}$$
Integrate:
$$\int f(x)\,dx=\sum_{k=1}^n\int x^{k-1}dx=\sum_{k=1}^n\frac{x^k}{k}$$
but when I try to integrate $f(x)$, I am not able to reach a closed form, i.e. I get a long and convoluted sum...
Thank you!