I have a question considering the convergence of the complex series: $$\sum_{n=1}^{\infty} a_{n}z^n $$, where $ a_{n} = \begin{cases} k^k, & \mbox{if } n=k^2 \\ 0, & \mbox{otherwise } \end{cases}$.
How do we approach these situations? Should I plug $n=k^2$ and $a_{n}=k^k$ and apply the root or ratio test? Or should I work with the formal definition of the radius of convergence?
Note that$$\sqrt[n]{a_n}=\begin{cases}(k^k)^{1/k^2}=\sqrt[k]k&\text{ if }n=k^2\text{ for some }k\\0&\text{ otherwise.}\end{cases}$$So, $\limsup_n\sqrt[n]{a_n}=1$ and therefore the radius of convergence of the series converges is $1$. Actually, it converges if and only if $\lvert z\rvert<1$.