sum(atan(2/(2k-1)^2), k=1..n)