I'm looking for Riemann integrable function $f:\mathbb{R}\to\mathbb{R}$ with $\int^{a+1}_a f(x)dx=0$ for all $a\in\mathbb{R}$, but $ f(x)\neq 0$.
I suspect that floor function involves here, if so, then how?
Thank you all!
To clarify: $f$ must not be identically equal to $0$, and it should be integrable over any finite interval.