St. Petersburg paradox is a game where you toss a fair coin repeatedly and if it lands heads on the $k$th trial you get $2^n$ dollars. Expected utility of game is:
$E(U) = \sum_{k=1}^{\infty}[0.5*0 + 0.5*2^n] = \infty$
the question is how much to pay to enter this game and how to make it so expected utility isn't infinity? some texts say that if initial wealth of person taken into account and money is valued logarithmically, the paradox of infinite expected utility goes away. I don't see this. assume initial wealth of player is $m$, and you pay $e$ amount to enter the game, and any amount of money $d$ is valued as $\log_2(d)$. then the new utility $E'(U)$ from playing the game is:
$E'(U) = \sum_{k=1}^{\infty}\frac{1}{2^{k}}\log_2(m - e + 2^k)$
isn't this still $\infty$, just as in original $E(U)$? the term inside $\log_2$ is still increasing so how does having the $\log_2$ make the paradox go away?
Your initial computation is a little confused: it should read
$$\sum_{k=1}^{\infty} \frac{2^k}{2^k} = \infty.$$
The new computation should read (let's keep things simple)
$$\sum_{k=1}^{\infty} \frac{k}{2^k}$$
and this infinite series, unlike the previous one, now converges to a finite value (in fact it converges to $2$) by one of several convergence tests for infinite series, such as the ratio test. The basic fact here on which tests like the ratio test are built is that geometric series with common ratio between $-1$ and $1$ converge.
However, this does not resolve the St. Petersburg paradox. You can bring back the paradox in full force by increasing the payoff after $k$ heads to $2^{2^k}$ dollars. In order to prevent arbitrary increases in payoff from making the expected utility infinite like this you are forced to assume something much more drastic, which is that utility is bounded.