Let $ \{A_n\} $ be an infinite series of events in a probability space s.t: $$\sum_{n=1}^\infty P(A_n) < \infty $$
Prove that there exists a series of non-negative numbers $ \{L(M)\}_{M \in \mathbb{N}}$, $L(M) \ge 0$ such that
$$\lim_{M\to \infty}L(M) = 0$$
and for each $n$, probability $L(M)$ is an upper bound to the probability that at least $M$ events out of the first $n$ events will happen, i.e. show that:
$$P\left\{ w \mid \exists n_1 < n_2 < ... < n_M \leq n \text{ s.t } w \in \bigcap_{i=1}^M {A_n}_i\right\} \leq L(M).$$
Hint: for each $M, n$, use markov inequality for the random variable $\sum_{k=1}^n 1_{A_k}$.
To be honest I've no idea what am I suppose to do, could use some help to get me going.
Thanks!