(a) State and prove the inclusion-exclusion formula.
(b) Let k and m be positive integers, let n=km, let A1,…,Ak be disjoint sets of size m, and let A=A1∪…∪Ak. Let B be the collection of all subsets B⊂A with the following two properties:
(i) ∣B∣=k;
(ii) there is at least one i such that ∣B∩Ai∣=3.
Prove that the number of sets in B is given by the formula
r=1∑⌊k/3⌋(−1)r−1(kr)(m3)r(n−rmk−3r)