sum of z^(n^2) from 0 to infinity