I have some troubles with the following series $$\sum^\infty _{n=0} x^ {n^2}$$
I'm suppose to show that this series is equivalent when $x$ approaches $1$ and $x <1$ to $$\frac{G}{\sqrt{1-x}}$$ where G = $$\int_0^{\infty}e^{-t^2}dt$$
I tried to use the series expansion of exponential function and then interchange the series and the integral but it doesn't work for obvious reasons .
Have you some tips ?