Let $f: [0,1] \rightarrow \mathbb{ R}$ be determined by:
$f(x) = 0 $when $x$ is irrational
$\frac{(-1)^p}{q}$ when $x$ is rational (and in reduced form $\frac{p}{q}$)
Show that $f$ is Riemann integrable on $ [0,1]$and that the integral equals $0$.
Any help would be much appreciated! Thank you!