What is the simplest series that alternates in order $+,+,-,-,+,+,-,- \dots$
Specifically I want to make a Riemann sum for something, but it has this reoccurent pattern I haven't previously encountered. Normally I have seen $(-1)^n$, but this is new to me.
$$f(n) = (-1)^{\dfrac{(n-1)(n + 2)}{2}} = \left\lbrace\begin{matrix}1, & n = 1,2,5,6,\ldots\\-1, & n = 3,4,7,8,\ldots\end{matrix}\right.$$