Let $f:[0,2] \to \mathbb{R}$ be defined by
$$f(x)= \begin{cases} 1,& \text{if } x=\frac{2}{n} \text{ for some $n \in \mathbb{N}$};\\ 0, & \text{otherwise}. \end{cases}$$
We need to prove the function is Riemann integrable on $[0,2].$
I think I can do the epsilon proof on this. I have $M_i$ = $\frac{2}{n-1}$
I am having trouble deciding on the correct $\Delta x_{i}$ because the widths are changing. Aren't they a function of $i$?
For each interval in your partition, the infimum is $0$, while the supremum is either $0$ if no $2/n$ is in the interval or $1$ if some $2/n$ is in the interval. Thus the lower sum is $0$ while the upper sum is the sum of the lengths of all intervals which contain some $2/n$. Thus you need to choose partitions such that the total length of those intervals which contain some $2/n$ is arbitrarily small. Hint: you can cram all but finitely many $2/n$'s into one interval.
If you haven't proven the equivalence between Riemann and Darboux integration, the situation is very similar when using the definition of Riemann integration directly, without reference to lower/upper sums.