Let $\{a_n\}$ be a sequence of real numbers that converges to $1$. Define $f:[0,2]\to \mathbb{R} $ by $$ f(x)= \begin{cases} 1&\text{if }\, x\in \{a_n\}\\ 0& \text{otherwise}\\ \end{cases} $$ Prove $f$ is Riemann integrable on $[0,2]$
I was trying to solve this question and got stuck on exactly how to prove the function is integrable. I tried to use the fact that a convergent sequence has content $0$, and that a bounded real valued function is Riemann integrable if its discontinuities have content $0$. However, I'm not sure where to go from there. Any help or hints is greatly appreciated!