# Definite sum of a decreasing series

can we find a closed form for following sum:

$$\sum_{i=0}^{n} a^{i^2} = a^0 + a^1 + a^4+a^9 +...a^{n^2}$$

where $0<a<1$ , what if $n \rightarrow \infty$ ?