Suppose that the measurable sets $A_1,A_2,...$ are "almost disjoint" in the sense that $\mu(A_i\cap A_j) = 0$ if $i\neq j$. Prove that $$\mu\left(\cup_{k=1}^\infty A_k\right)=\sum_{k\ge1}\mu(A_k)$$
Conversely, suppose that the measurable sets $A_1,A_2,...$ satisfy $$\mu\left(\cup_{k=1}^\infty A_k\right) = \sum_{k=1}^\infty\mu(A_k)<\infty$$ Prove that the sets are almost disjoint.
Here $\mu(A)$ denotes the Lebesgue measure of $A$. I know that if the sets $S_1,S_2,...$ are all measurable, then $$\mu(\cup_{k=1}^\infty S_k)\le\sum_{k=1}^\infty \mu(S_k)$$ and equality holds if the sets are disjoint. How can I accommodate this for almost disjoint sets?
Use the fact that the measure of $$\bigcup_{k < l} A_k \cap A_l$$ is zero.