Give an example of a finite measure space $(X,M,\mu)$ and a sequence of functions $f_n:X \to[0, \infty)$ such that $f_n \to 0$ $a.e.$ and $\lim \int f_n d\mu=0$ but $\sup_n f_n$ is not in $L^1$
I have trouble coming up with such an example and prove it. Can someone help me with this problem?
Hint: Try the measure space $X = \mathbb{N}$ with a measure $\mu$ that assigns measure $a_n$ to the integer $n$, where $\sum a_n < \infty$. Let $f_n$ be a function with $f_n(n) = b_n$ and $f_n(k) = 0$ for $k \ne n$. Observe that:
$f_n \to 0$ everywhere
$\int f_n \,d\mu = a_n b_n$
$\int \sup_n f_n = \sum_k a_k b_k$.
Now choose $a_n, b_n$ appropriately.