Sum cos(nx)/(n^2+a^2) from n=1 to infinity