Suppose $f:[0,1]\rightarrow\mathbb{R}$. defined by $f(x)=(-1)^n n $ when $x\in(1/(n+1),1/n]$ and $f(0)=0$. Show that the improper Riemann integral $$\int_{0}^{1} f(x) dx $$ is real number.
First note that $f$ has infinite points when $f$ is discontinuous. I have trouble to compute the integral. I have solved many problems but all of them was with finite points. Any help will be appreciated.
Hint
Look at $$\lim_{n\to \infty }\sum_{k=1}^n\int_{1/(k+1)}^{1/k}(-1)^n n\mathrm d x.$$