Let $E = \{\frac{1}{n} | n \in \mathbb{N}\}$. Show that the function $f(x) = 1 \text{ if } x \in E \text{ and } f(x) = 0 \text{ if } x \notin E$ is integrable on $[0,1]$.
I know of the definition of integrable but I'm having a hard time applying it to this function.
You can note that, the inferior sum and superior sum be equal to 0, because for every partition of interval [0,1], $$P=\{0=x1<...<xn=1\}$$ $$\inf_{x \in [x_k,x_{k+1}]} f(x)=0$$ because you always can take x that is not of form $$\frac{1}{n}$$,the same for sup, thus, f is integrable and your integral is equal to 0.