I'm learning discrete maths as a hobby at the moment and I got stuck when the tutor starting relating the binomial theorem to the principles of inclusion and exclusion. The video I was watching is https://www.youtube.com/watch?v=GS7dIWA6Hpo&list=PLDDGPdw7e6Aj0amDsYInT_8p6xTSTGEi2&index=6 and the question starts at (14.25).
I understand the binomial theorem, and I see how combinatorics is used to calculate the coefficients. I've seen multiple online tutorials where the binomial theorem has been used to describe the nature of inclusion and exclusion and I just don't understand.
Exclusion/Inclusion formula:
|A1 ∪ A2 ∪ A3| = |A1| + |A2| + |A3| − |A1 ∩ A2| − |A1 ∩ A3| − |A2 ∩ A3| + |A1 ∩ A2 ∩ A3|
This makes sense because we have to exclude the cases where elements are counted twice (drawing venn diagrams helped me understand this).
Binomial Theorem:
$(A+B)^n = \sum_{k=0}^n {n\choose{k}} A^{n-k} B^{k}$
This formula makes sense to me again, but can someone please explain it to me in simple terms how the binomial theorem is even related to inclusion/exclusion?
I've also seen proofs where examples substitute the x = 1 and y = -1 and we end up getting the binomial expansion to equal 0. I just don't see how we can relate that to PIE.
Please help.
EDIT:
This part of the video is what confuses me (17.27). I don't get the ((1) + (-1)) part, what is he trying to show from that?
Referring to the example of finding the number of numbers not divisible by $2,3,5$, the inclusion-exclusion principle is: $$\bar{N}=N-N(2)-N(3)-N(5)+N(2,3)+N(2,5)+N(3,5)+N(2,3,5)=\\ 100-50-33-20+16+10+6-3=26.$$ In this problem let's see how many times the central region (which contains the numbers divisible by $2,3,5$ simultaneously) is counted. The teacher calls this region by $x$. By $r$ the teacher considers the number of numbers (i.e. $2,3,5$), that is $r=3$. So: $${r\choose 0}={3\choose 0}=1 \ \ \ \text{in} \ N \ \\ \text{(i.e. in the whole universal set)};\\ {r\choose 1}={3\choose 1}=3 \ \ \text{in} \ N(2)+N(3)+N(4) \ \\ \text{(i.e. in each of the three regions)};\\ {r\choose 2}={3\choose 2}=3 \ \ \text{in} \ N(2,3)+N(2,5)+N(3,5) \ \\ \text{(i.e. in each of the pairwise intersections of the three regions)};\\ {r\choose 3}={3\choose 3}=1 \ \ \text{in} \ N(2,3,5) \ \\ \text{(i.e. in the common intersection of the three regions)}.$$ Now the inclusion-exclusion formula for the number of times the region $x$ is counted looks like: $$\begin{align}x&={r\choose 0}-{r\choose 1}+{r\choose 2}-{r\choose 3}=\\ &={3\choose 0}-{3\choose 1}+{3\choose 2}-{3\choose 3}=\color{red}{1-3+3-1=0}=\\ &={3\choose 0}\cdot 1^3\cdot (-1)^0+{3\choose 1}\cdot 1^2\cdot (-1)^1+{3\choose 2}\cdot 1^1\cdot (-1)^2+{3\choose 3}\cdot 1^0\cdot (-1)^3=\\ &=(1-1)^3=0.\end{align}$$ The aim of the teacher for using the binomial expansion of $(1-1)^3$ is to explain in an easy way that the sum is zero, $\color{red}{\text{rather than calculating each term and adding}}$.