Understanding the physical sense of Inclusion–exclusion principle

130 Views Asked by At

The man wants to paint $15$ benches in red, green and blue colours. How many ways he can paint the benches, such that he must paint at least one bench in each colour. We can't rearrange benches after painting.

My solution: There are $3^{15}$ ways to paint all benches, using 3 colours. There are $3 \cdot 2^{15}$ ways to paint all benches, using 2 colours. There are $3$ ways to paint all benches, using 1 colour.

So the answer is $3^{15} - 3\cdot 2^{15} + 3 = 14 250 606$, because we first must subtract all ways to paint using two colours, which also contain the ways to paint using one colour, so we also have to add $3$ at the end.

Another explanation can be done using Euler's diagrams.

I know this problem can be tackled using the Inclusion–exclusion principle.

Namely, the formula $|A \cap B \cap C| = |A| + |B| + |C| - |A \cup B| - |A \cup C| - |B \cup C| + |A \cup B \cup C|$.

The problem is I don't really understand the physical sense of sets $A, B, C$. What do they represent? What are the elements they consist of?

But the most absurd thing for me is that it seems like $|A| = |B| = |C| = 1$, but in the same time $|A \cup B|$ and $ |A \cup C|$ are significantly bigger then $|A| = |B| = |C| = 1$.

I know it's wrong, but I don't have any other ideas.

1

There are 1 best solutions below

4
On BEST ANSWER

$|A| \ne 1$. Sense is the following. Let $A$ be a set of all paints with at least one red bench, $B$ be a set of all paints with at least one blue bench and $C$ be a set of all paints with at least one green bench. Then we have $$|A \cap B \cap C| = |A| + |B| + |C| - |A \cup B| - |A \cup C| - |B \cup C| + |A \cup B \cup C|$$ that is number of paints with all three properties equals to sum of numbers of paints with any one properties minus sum of numbers of paints with at least two properties, since all these paints were added twice plus numbere of paints with all three properties since they where added $3 - 3 = 0$ times.