sum (cos(j*pi/n))^(2*2) from j=1 to j=n