The question is following:
Let $f:[0,1]\rightarrow \mathbb{R}.$
$f(x)=x,$ if $x=1/n, n\in\mathbb{N}$
$f(x)=0,$ otherwise.
Is $f$ Riemann-integrable? If it is, what is its value?
I know that the basic idea of Riemann-integral is to find two step-functions $h$ and $g$ which both integrate to the same value and $h(x) \leq f(x) \leq g(x)$. This time I can't find the upper step-function. However I guess that this function is Riemann-integrable as it's discontinuous only on $1/n$. Also I'm guessing that it's value is $0$. Am I correct and how could I proof it?