Given a universal set and sets that are subsets of
Inclusion–exclusion principle
Intersction form
or
The number of elements that are not in any of the other sets
Search
Given a universal set S and n sets A1,A2,…,An that are subsets of S
∣⋃i=1nAi∣=∑i=1n∣Ai∣−∑1⩽i<j⩽n∣Ai∩Aj∣+∑1⩽i<j<k⩽n∣Ai∩Aj∩Ak∣−⋯+(−1)n+1∣A1∩⋯∩An∣
⋂i=1nAi∁=∣S∖⋃i=1nAi∣=∣S∣−∑i=1n∣Ai∣+∑1⩽i<j⩽n∣Ai∩Aj∣−⋯+(−1)n∣A1∩⋯∩An∣ or ∣⋂i=1nAi∣=S∖⋃i=1nAi∁=∣S∣−∑i=1n∣Ai∁∣+∑1⩽i<j⩽n∣Ai∁∩Aj∁∣−⋯+(−1)n∣A1∁∩⋯∩An∁∣
Ai∖j=i⋃Aj=∣Ai∣−j=i∑∣Ai∩Aj∣+1⩽j<k⩽n∑∣Ai∩Aj∩Ak∣−⋯