TeX source:
3\cos(n\pi/2)^2