sum 1/(a^2-k^2) from -inf to inf