\[\vartheta\left(x\right)=1+2\sum_{m=1}^{\infty}x^{m^{2}},\]