P(A_1\cup\cdots\cup A_n)=\sum_{k=1}(-1)^{k-1}\sum_{1\leq i_1<\cdots