I've been asked to prove the following:
Assume $f(x)$ is continuous on $[-L,\ L]$ and $\int_{-a}^af = 0$ for all $a\in[0,\ L]$. Show that $f(x)$ is odd.
The catch? I'm only allowed to use Riemann sums.
Note: what makes this question different from most other ones I've read, such as this one, is that here I'm asked to prove $f(x)$ is odd, where in the others you are asked to prove the integral is $0$.
What I have so far is fairly straightforward: $$ \begin{aligned} \int_{-a}^a f(x)\text{d} x & = \int_0^af(x)\text{d} x + \int_{-a}^0 f(x)\text{d} x \\ & = \lim_{N\to\infty}\sum_{i=0}^{N-1}f\left(\frac{ia}N\right)\frac aN + \lim_{N\to\infty}\sum_{i=0}^{N-1}f\left(-\frac{ia}N\right)\frac aN \\ & = \lim_{N\to\infty}\left[\sum_{i=0}^{N-1}f\left(\frac{ia}N\right)\frac aN + \sum_{i=0}^{N-1}f\left(-\frac{ia}N\right)\frac aN\right] \\ & = \lim_{N\to\infty}\frac aN\sum_{i=0}^{N-1}\left[f\left(\frac{ia}N\right)+f\left(-\frac{ia}N\right)\right] \\ & = \lim_{N\to\infty}\frac aN\sum_{i=0}^{N-1}g\left(\frac{ia}N\right) \\ & = \int_0^ag(x)\text{d} x = 0\qquad\forall a\in[0,\ L] \end{aligned} $$
I was thinking that it would be easier to show that if $\int_0^af(x)\text{d}x = 0$ for all $a$ then $f(x)=0$, but I'm still unsure where to go from here (if this is the right route to take).
To be honest, I'm skeptical there's a solution involving just Riemann sums, since if you're given $\lim_{N\to\infty}\frac aN\sum_{i=0}^{N-1}f(ia/N) = 0$ for all $a$, then you'll only be able to conclude that $f(x)$ is zero except at a countable number of points. I'm not sure how you'd use the continuity of $f(x)$.
Any help would be appreciated.