Let $p\in [1, \infty)$, prove that if $f \in L^{p}(\mu)$ iff
$$\sum_{n=1}^{\infty} 2^{np}(\mu(\{\ x : |f(x)| > 2^{n} \}\ )) < \infty $$
I tried the following ways but couldn't get any result: If $f\in L^{p}$ I considered the following sets: $$E_{n}= \{\ x : |f(x)|^{p} > 2^{np} \}\ =\{\ x : |f(x)| > 2^{n} \}\ $$ From that I derived that $$\sum_{n=1}^{\infty} 2^{np} \chi_{E_{n}}(x) \leq |f(x)|^{p} $$
(I hope that this inequality is correct). So then, if $f\in L^{p}$, then $\int \sum_{n=1}^{\infty}2^{np} \chi_{E_{n}} < \infty \implies \sum_{n=1}^{\infty} 2^{np}(\mu(\{\ x : |f(x)| > 2^{n} \}\ )) < \infty $. I am stuck on the converse though!
Thanks in advance for any kind of help!
Here's a sketch / hint:
Rewrite $\sum_{n = 1}^\infty 2^{np} \mu(\{x : |f(x)| > 2^n\})$ as a sum of the form $$\sum_{j=1}^\infty a_{j,p} \mu(\{x : 2^{j+1} \geq |f(x)| > 2^j \})$$
for some coefficients $a_{j,p}$ depending on $j$ and $p$ (you can find them explicitly by writing $\mu(\{x : |f(x)| > 2^n\})$ as a sum). Then, label the set $\{x : 2^{j+1} \geq |f(x)| > 2^j\}$ as $B_j$ and bound $f(x)$ above on each of these sets by some constant multiple of $a_{j,p}$. The only remaining part to deal with is bounding $f$ from above on the complement of the union of the $B_j$'s and that's where the finite measure comes into play.