Solution (source code)

= Solution

The statements and proof are in <Borel-Cantelli lemmas>. For the first,
$\mathbb P(\bigcup_{n\ge m}A_n)\le\sum_{n\ge m}\mathbb P(A_n)\to0$. For independent events in the divergent case,
$$
\mathbb P(\text{none of }A_m,\ldots,A_n)
=\prod_{j=m}^n(1-p_j)\le e^{-\sum_{j=m}^np_j}\to0,
$$
and then let $m\to\infty$.