I want that $f(x) = n(-1)^{n+1}$ if $\frac{1}{n+1}\lt x \lt \frac{1}{n}$ and $f(x)= 0$ if $x=0$ is not Lebesgue integrate-able but is improperly Riemann integrate-able.
I think I need to show that $$\sum_{a_n}^{b_n}\int \mid f(x)\mid dx$$ doesn't converge. But I don't know how to choose what $a_n$ and $b_n$ are. Thanks.
Presumably this is on $[0,1]$. $|f(x)| = n > 1/x - 1$ for $0 < x < 1$, implying it is not Lebesge integrable. But the improper Riemann integral is
$$ \lim_{a \to 0+} \int_a^1 f(x)\; dx = \sum_{n=1}^\infty n (-1)^n \left(\frac{1}{n} - \frac{1}{n+1}\right) $$