Let, $a\in \mathbb R$ be fixed. Find the set of $z\in \mathbb C$ for which $$\sum_{n=1}^{\infty}n^{i(z^2+a)}$$ represents an analytic function.
I know that if the radius of convergence of a power series about any point $p$ is $R>0$ then the function is analytic in the neighbourhood of $p$ & if $R=\infty$ then the function is an entire function.
But, from this series I could not conclude anything...
Please help..