Let $$S = \displaystyle \sum_{n=1}^{\infty} \dfrac{1}{2^{n^2}} = \dfrac{1}{2^1}+\dfrac{1}{2^4}+\dfrac{1}{2^9}+\cdots.$$ Find $\lfloor 1000S \rfloor$
My attempt was to recognize that consecutive perfect squares increase in the form $3,5,7,9,\ldots$ and be able to form a geometric series this way. I couldn't figure out how to make that work, though.