I have a general idea of how to prove this but I could use some help with the details.
Basically I see that $f(x)$ is the uniform limit of $f_k(x) = \sum_{n=1}^{k} x^n/n^2$ on $[0,1]$.
Each $f_k$ is continuous, so $f$ is as well since uniform convergence preserves continuity.
Is this proof correct/does it seem sufficient?
Thanks ahead of time.
Note that $|x^n/n^2|\leq 1/n^2$ on $[0,1]$ and $\sum_{n=1}^{\infty} 1/n^2 \lt \infty$. Then by Weierstrass M-test,$\sum_{n=1}^{\infty} x^n/n^2$ converges uniformly. Hence $f$ is continuous.