I have been asked to find a sequence of numbers ($y_n$) such that $f(x)$ is not integrable on $[0, 1]$ where $f$ is defined as:
$$f(x)=\begin{cases}1 & \text{if }x\in(y_n)\\0 & \text{if }x\notin(y_n)\end{cases}$$ I have proven the function is integrable for certain sequences but am struggling to find a sequence that it is not integrable.