Prove that f is integrable if and only if $\sum_{n \in \mathbb{Z}}a^n\mu (\{a^n\leq|f|1 Let $(X,\mathcal{A},\mu)$ be a measure space and $f: X\rightarrow \mathbb{R}$ measurable. $f$ is integrable if and only if $\sum\limits_{n \in \mathbb{Z}}a^n\mu (\{a^n\leq|f|<a^{n+1} \})<\infty$.
My attempt was to use the Tchebycheff Inequality: $\mu (\{f\geq a\} \cap E)\leq \frac{1}{a}\int f d\mu$, but it did not work.
 A: As $f$ is measurable and $a>1$, the function 
$$g(x)=\begin{cases}0&f(x)=0\\a^{\lfloor \log_a|f(x)|\rfloor }&f(x)\ne 0\end{cases}$$
is also measurable: For $c>0$, we have $\mu(g\ge c)=\mu(a^{\lceil \log_ac\rceil }\le |f|)$. And of course $g$ is non-negative.
Note that $$ g(x)\le |f(x)|\le ag(x).$$
Hence if $g$ is integrable then also $\int f\,\mathrm d\mu\le a\int g\,\mathrm d\mu<\infty$ and so $f$ is integrable.
If on the other hand $f$ is integrable, then $\int |f|\,\mathrm d\mu <\infty$ and also $\int g\,\mathrm  d\mu\le \int |f|\,\mathrm d\mu<\infty$.
Thus $f$ is integrable iff $g$ is. But
$$\int g\,\mathrm d\mu = \sum_{n\in\Bbb Z}a^n\mu(\{\,a^n\le |f|<a^{n+1}\,\}).$$
A: Note that $$a^n \chi_{\{a^n \le \lvert f \rvert < a^{n+1}\}} \le \lvert f \rvert\chi_{\{a^n \le \lvert f \rvert < a^{n+1}\}} < a^{n+1}\chi_{\{a^n \le \lvert f \rvert < a^{n+1}\}}.$$ Since the sets from a disjoint cover of $X$, summing the above gives $$\sum_{n\in \mathbb Z}a^n \chi_{\{a^n \le \lvert f \rvert < a^{n+1}\}} \le \lvert f \rvert < \sum_{n\in \mathbb Z}a^{n+1}\chi_{\{a^n \le \lvert f \rvert < a^{n+1}\}}.$$ Now just integrate both sides over $X$ and use the monotone convergence theorem to integrate term-by-term in the sums.
