TeX source:
\frac{3}{2}(1+(-1)^n)