Is this function $f:\Bbb R\to \Bbb R$ given by $f(x)=\lim f_n(x)$
where $$f_n(x)= \begin{cases} \dfrac{n}{n+1}&\text{;$x\in \Bbb Q^c$}\\0 &;x\in \Bbb Q\end{cases}$$Lebesgue Integrable?
My try:
I got $$f(x)=\begin{cases} \dfrac{n}{n+1}& \text{;$x\in \Bbb Q^c$}\\0& ;x\in \Bbb Q\end{cases}$$
and hence measurable
But $\int_\Bbb R f=\int _{\Bbb Q^c} f=m(\Bbb Q^c)=\infty$.So not integrable
Is my answer correct?