sum for n=1 to infinity of x^(n^2)