Olympiad Maths Prep

Track / Stage 6 / 63 of 400 #1063 of 2000

Problem 1063

National olympiad, first round
Combinatorics Difficulty 6.1 Prove it

Theorem 1 (Principle of Inclusion-Exclusion) Let SS be a finite set, and S1,S2,,SnS_{1}, S_{2}, \cdots, S_{n} be subsets of SS, then
Sˉ1Sˉ2Sˉn=Si=1nSi+1i<jnSiSj+(1)k1i1<i2<<iknSi1Si2Sik++(1)nA1A2An. \begin{array}{l} \left|\bar{S}_{1} \cap \bar{S}_{2} \cap \cdots \cap \bar{S}_{n}\right|=|S|-\sum_{i=1}^{n}\left|S_{i}\right|+\sum_{1 \in i<j \leqslant n}\left|S_{i} \cap S_{j}\right|-\cdots+ \\ (-1)^{k}{ }_{1 \leqslant i_{1}<i_{2}<\cdots<i_{k} \leqslant n}\left|S_{i_{1}} \cap S_{i_{2}} \cap \cdots \cap S_{i_{k}}\right|+\cdots+ \\ (-1)^{n}\left|A_{1} \cap A_{2} \cap \cdots \cap A_{n}\right| . \\ \end{array}

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

To prove (contribution method) that for any xSx \in S, it is sufficient to prove that the number of times xx is counted on both sides of (1) is the same.

If xx does not belong to any of the sets S1,S2,,SnS_{1}, S_{2}, \cdots, S_{n}, then xx is counted 1 time on the left side of (1), and xx is counted 1 time in the first term S|S| on the right side of (1), while in the other summation terms on the right side of (1), xx is counted 0 times. Therefore, the total number of times xx is counted on the right side of (1) is also 1.

If xx belongs to exactly kk of the sets S1,,SnS_{1}, \cdots, S_{n}, where k1k \geqslant 1, then xx is counted 0 times on the left side of (1), and in the first term, second term, \cdots, (k+1)(k+1)-th term, \cdots, the last term on the right side, xx is counted 1,Ck11, C_{k}^{1}, Ck2,,Ckk,0,0,,0C_{k}^{2}, \cdots, C_{k}^{k}, 0, 0, \cdots, 0 times, respectively. Therefore, the total number of times xx is counted on the right side of (1) is
1Cn1+Cn2+(1)kCkk+0++0=(11)k=0. 1 - C_{n}^{1} + C_{n}^{2} - \cdots + (-1)^{k} C_{k}^{k} + 0 + \cdots + 0 = (1-1)^{k} = 0.

In summary, we know that for any xSx \in S, the number of times xx is counted on both sides of (1) (i.e., the contribution of xx to both sides of the equation) is the same. Therefore, (1) holds.

For any subset S1,S2,,SnS_{1}, S_{2}, \cdots, S_{n} of SS, since
S1S2Sn=Sˉ1Sˉ2Sˉn, \overline{S_{1} \cup S_{2} \cup \cdots \cup S_{n}} = \bar{S}_{1} \cap \bar{S}_{2} \cap \cdots \cap \bar{S}_{n},

we have S1S2Sn+Sˉ1Sˉ2Sˉn=S|S_{1} \cup S_{2} \cup \cdots \cup S_{n}| + | \bar{S}_{1} \cap \bar{S}_{2} \cap \cdots \cap \bar{S}_{n}| = |S|. Thus, Theorem 2 can be derived from Theorem 1.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.