pi/4 + sum(atan(2/(2k)^2), k=1..n)