I was trying to solve $ \displaystyle \sum_{n = 1}^{\infty} \frac{n^3}{8^n}$ and I found a way to solve it and I want if there are generalizations for, say, $\displaystyle \sum_{n=1}^{\infty} \frac{n^k}{a^n}$ in terms of $k$ and $a$. I would also like to know if there is a better way to solve it. Here's how I did it:
First I decomposed the series into the following sums:
$S_1 = \frac{1}{8} + \frac{1}{64} + \dots = \frac{\frac{1}{8}}{\frac{7}{8}}$
$S_2 = \frac{7}{64} + \frac{7}{512} + \dots = \frac{\frac{7}{64}}{\frac{7}{8}}$
$S_3 = \frac{19}{512} + \frac{19}{4096} + \dots = \frac{\frac{19}{512}}{\frac{7}{8}}$
And deduced that the sum can be written as $\frac{8}{7} \displaystyle \sum_{n = 1}^{\infty} \frac{3n^2 - 3n + 1}{8^n}$
$\displaystyle \sum_{n = 1}^{\infty} \frac{1}{8^n}$ is easy to evaluate -- it's $\frac{1}{7} $by geometric series
$\displaystyle \sum_{n = 1}^{\infty} \frac{n}{8^n}$ can be evaluated in a whole host of ways to get an answer of $\frac{8}{49}$.
It remains to evaluate $\displaystyle \sum_{n = 1}^{\infty} \frac{n^2}{8^n}$, for which I took a similar approach as the cubics by decomposing it into many sums:
$T_1 = \frac{1}{8} + \frac{1}{64} + \dots = \frac{\frac{1}{8}}{\frac{7}{8}}$
$T_2 = \frac{3}{64} + \frac{3}{512} + \dots = \frac{\frac{3}{64}}{\frac{7}{8}}$
And so forth, coming to the conclusion that it is equal to $\frac{8}{7} \displaystyle \sum_{n = 1}^{\infty} \frac{2n-1}{8^n}$
Now, I used this information and the above values for $\displaystyle \sum_{n = 1}^{\infty} \frac{1}{8^n}$ and $\displaystyle \sum_{n = 1}^{\infty} \frac{n}{8^n}$ to get the sum as $\frac{776}{2401}$, which is confirmed by WA.
So, I would like to reiterate here: Is there a simpler way to compute this sum, and are there any known generalizations for this problem given an arbitrary $a$ in the denominator and arbitrary $k$ as the exponent in the numerator?