I am not sure how to solve this.
I tried checking it for odd/even function but we don't have $\lfloor -x \rfloor=-\lfloor x \rfloor$
I am not sure how to solve this.
I tried checking it for odd/even function but we don't have $\lfloor -x \rfloor=-\lfloor x \rfloor$
Let us set the function $$f(x) = (-1)^{\lfloor x \rfloor}$$ A common equivalence regarding the floor function is $$\lfloor x \rfloor + \lfloor -x \rfloor = \begin{cases} 0 & \text{if $x \in \mathbb{Z}$} \\ -1 & \text{if $x \notin \mathbb{Z}$} \end{cases}$$ Considering when $x \notin \mathbb{Z}$, $$\lfloor x \rfloor + \lfloor -x \rfloor = -1$$ $$\lfloor -x \rfloor = -\lfloor x \rfloor - 1$$ If we now consider $f(-x)$, $$f(-x) = (-1)^{\lfloor -x \rfloor} = (-1)^{-\lfloor x \rfloor - 1} = \frac{1}{-1 \cdot (-1)^{\lfloor x \rfloor}} = -(-1)^{\lfloor x \rfloor} = -f(x)$$ Since this is true for $x \in \mathbb{R} \setminus \mathbb{Z}$ and discontinuities of measure zero do not affect Riemann integration, we can treat this as an odd function. This means that $$\int_{-n}^n (-1)^{\lfloor x \rfloor} {\rm d}x = 0$$ for $n \in \mathbb{R}$.