I am curious about the value of
$$\sum_{n=0}^\infty e^{-n^2}.$$
It comes to my mind by observing Gauss integral that it is equal to
$$\int_{0}^\infty e^{-t^2}dt=\dfrac{\sqrt{\pi}}{2}.$$
I am curious about the value of
$$\sum_{n=0}^\infty e^{-n^2}.$$
It comes to my mind by observing Gauss integral that it is equal to
$$\int_{0}^\infty e^{-t^2}dt=\dfrac{\sqrt{\pi}}{2}.$$
You've actually stumbled upon an Jacobi theta function:
$$\vartheta_3(z,q)=\sum_{n=-\infty}^{+\infty}q^{n^2}e^{2\pi iz}$$
With $z=0$ and $q=e^{-1}$ and taking advantage that the sum is symmetric, we end up with
$$\frac12\left(\vartheta_3(0,e^{-1})+1\right)=\sum_{n=0}^\infty e^{-n^2}$$
Though if I may interest you a bit, there are some closed forms for similar series:
$$\frac{\pi^{1/4}}{\Gamma(3/4)}=\frac12\left(\vartheta_3(0,e^{-\pi})+1\right)=\sum_{n=0}^\infty e^{-\pi n^2}$$
Such identities begin at $(45)$ on the given link.