Given that a function $f$ is defined as $$f(x)=1+2x+3x^2+4x^3+...$$. We have to prove that $f$ is continuous on $[0,\frac{1}{8}]$ and evaluate $$\int_{0}^{\frac{1}{8}}f(x)dx$$
I am not sure in a particular area. I have proved $f$ is continuous on $[0,\frac{1}{8}]$. But the evaluation of integral gives
$$\int_{0}^{\frac{1}{8}}f(x)dx=\sum_{n=1}^{\infty}\frac{1}{8^{n}}=\frac{8}{7}(1-({\frac{1}{8})^n})= \frac{8}{7}(1-\frac{1}{8^n})$$.
I think I am wrong somewhere in calculations. Please guide me where I am wrong. Any help or suggestion will be precious.
The first mistake that I was able to detect was that you series should start at $1$, not at $0$:\begin{align}\int_0^{\frac18}f(x)\,\mathrm dx&=\sum_{n=1}^\infty\left(\frac18\right)^n\\&=\frac{\frac18}{1-\frac18}\\&=\frac17.\end{align}Another mistake lies in the fact that the answer should be a number; there should be no $n$ in it.