(a) Let $\mathbb{P}(A)$ denote the probability of the occurrence of an event $A$. Prove carefully, for events $A_{1}, A_{2}, \ldots, A_{n}$, that
$$
\begin{aligned}
\mathbb{P}\left(\bigcup_{i=1}^{n} A_{i}\right)=\sum_{i} \mathbb{P}\left(A_{i}\right) &-\sum_{i<j} \mathbb{P}\left(A_{i} \cap A_{j}\right)+\sum_{i<j<k} \mathbb{P}\left(A_{i} \cap A_{j} \cap A_{k}\right)-\cdots \\
&+(-1)^{n+1} \mathbb{P}\left(\bigcap_{i} A_{i}\right)
\end{aligned}
$$
(b) One evening, a bemused lodge-porter tried to hang $n$ keys on their $n$ hooks, but only managed to hang them independently and at random. There was no limit to the number of keys which could be hung on any hook. Otherwise, or by using (a), find an expression for the probability that at least one key was hung on its own hook.
The following morning, the porter was rebuked by the Bursar, so that in the evening she was careful to hang only one key on each hook. But she still only managed to hang them independently and at random. Find an expression for the probability that no key was then hung on its own hook.
Find the limits of both expressions as $n$ tends to infinity.
You may assume that, for real $x$,