Possible Duplicate:
Summation equation for $2^{x-1}$
I'm solving the classic problem of the inventor of chess, who according to legend sold the invention for one grain for the first square of the board, 2 for the second, 4 for the third, 8 for the fourth, and so on. The question is what this amounts to, with the board having 64 squares.
$$\sum_{k=0}^{63}2^{k} = 2^0 + 2^1 + 2^2 + 2^3 + 2^4 + ... + 2^{62} + 2^{63}$$
$$= \frac{2^0(2^{63+1} + 1)}{2 - 1} = 2^{64} + 1$$
This answer seems reasonable, but according to the text book it should be $2^{64} - 1$. Why? Where am I going wrong?