Let $a$ be a number: $0<a<1$
I need to prove that the function defined as:
$ f = {1 : x = 1/n, n\in N} $
$ f = {0 : otherwise} $
is integrable in $[a,1]$ and that $\int_{a}^{1}f(x)dx = 0$.
I know that $f$ is blocked between $0$ and $1$. Therefore if I could prove that for every $\epsilon > 0$ there exists $P = {x_1,x_2,..x_n}$ in a way that $S(P) - s(p) <\epsilon $ that would solve it.
Let $\epsilon >0$
in every $I=[x_i - x_{i-1}]$ $1\le i \le n$, there exists a rational number say $c$. therefore $\min(I) = f(c) = 0$.
Meaning that $s(P) = 0$
Now the problem I'm facing is that I now need to prove that $S(P) < \epsilon$
I know that at most, $\max{I} = 1$ and therefore, $maxS(P) = 1\cdot n = n$
But don't know how that can help me.