This is LaTeX code:
[latex]
n*(-1)^{n-1}*(-1)^{\left \lfloor \frac{n-1}{2} \right \rfloor}
[/latex]