Problem on Riemann Integration: $f$ is defined on $[0,1]$ by $\,f(x)=1/n$ for $1/n>x\geq 1/(n+1)$ and $f(x)=0$ for $x=0$, where $n=1,2,3,....$
Find $\int_{0}^1f(x)dx$.
First I tried to find out $\int_{1/(n+1)}^1f(x)dx$. But I got a series sum:$$\sum_{k=1}^{n}\cfrac{1}{k^2(k+1)}$$
How to proceed?