The coefficients do not have to be a function of $n$. For example, you could have $a_n=2$ for every $n$, then your series is: $\sum_{n=1}^{\infty}{2x^n}=2\sum_{n=1}^{\infty}{x^n}$.
The coefficients do not have to be a function of $n$. For example, you could have $a_n=2$ for every $n$, then your series is: $\sum_{n=1}^{\infty}{2x^n}=2\sum_{n=1}^{\infty}{x^n}$.