Find all such that the series

converges and compute the sum.

First, we apply the ratio test,

Thus, the series converges if which implies . For the boundary, we have in the case ,

which diverges since the terms do not go to 0. Similarly, if we get which also diverges since the terms do not go to 0. Therefore, the given series converges absolutely on the interval . Then, to compute the sum for we have