This is LaTeX code:
[latex]
\displaystyle = \sum_{i=1}^{n}(P(A_i)+P(A_i^c)) = n
[/latex]