Exercise 1725Combinatorics › Inclusion-exclusionL1Added 3 Nov 2026
Proof of inclusion-exclusion
#inclusion-exclusion#proof#indicator
Statement
Prove the inclusion-exclusion formula.
Hint
Use indicator functions: show , and sum.
Show solutionHide solution
Solution
Indicators. For a set , if , otherwise. Then iff some , i.e. .
Expand. (with giving ).
Thus. .
Sum over . Summing both sides: .
Conclusion. The formula holds.