Solution 1
By PIE, ∣A∣+∣B∣−∣A∩B∣=∣A∪B∣. Substituting into the equation and factoring, we get that (∣A∣−∣A∩B∣)(∣B∣−∣A∩B∣)=0, so therefore A⊆B or B⊆A. WLOG A⊆B, then for each element there are 3 possibilities, either it is in both A and B, it is in B but not A, or it is in neither A nor B. This gives us 35 possibilities, and we multiply by 2 since it could have also been the other way around. Now we need to subtract the overlaps where A=B, and this case has 25=32 ways that could happen. It is 32 because each number could be in the subset or it could not be in the subset. So the final answer is 2⋅35−25=454.
~math31415926535
Solution 2
We denote Ω={1,2,3,4,5}. We denote X=A∩B, Y=A\(A∩B), Z=B\(A∩B), W=Ω\(A∪B).
Therefore, X∪Y∪Z∪W=Ω and the intersection of any two out of sets X, Y, Z, W is an empty set. Therefore, (X,Y,Z,W) is a partition of Ω.
Following from our definition of X, Y, Z, we have A∪B=X∪Y∪Z.
Therefore, the equation
∣A∣⋅∣B∣=∣A∩B∣⋅∣A∪B∣
can be equivalently written as
(∣X∣+∣Y∣)(∣X∣+∣Z∣)=∣X∣(∣X∣+∣Y∣+∣Z∣).
This equality can be simplified as
∣Y∣⋅∣Z∣=0.
Therefore, we have the following three cases: (1) ∣Y∣=0 and ∣Z∣=0, (2) ∣Z∣=0 and ∣Y∣=0, (3) ∣Y∣=∣Z∣=0. Next, we analyze each of these cases, separately.
Case 1: ∣Y∣=0 and ∣Z∣=0.
In this case, to count the number of solutions, we do the complementary counting.
First, we count the number of solutions that satisfy ∣Y∣=0.
Hence, each number in Ω falls into exactly one out of these three sets: X, Z, W. Following from the rule of product, the number of solutions is 35.
Second, we count the number of solutions that satisfy ∣Y∣=0 and ∣Z∣=0.
Hence, each number in Ω falls into exactly one out of these two sets: X, W. Following from the rule of product, the number of solutions is 25.
Therefore, following from the complementary counting, the number of solutions in this case is equal to the number of solutions that satisfy ∣Y∣=0 minus the number of solutions that satisfy ∣Y∣=0 and ∣Z∣=0, i.e., 35−25.
Case 2: ∣Z∣=0 and ∣Y∣=0.
This case is symmetric to Case 1. Therefore, the number of solutions in this case is the same as the number of solutions in Case 1, i.e., 35−25.
Case 3: ∣Y∣=0 and ∣Z∣=0.
Recall that this is one part of our analysis in Case 1. Hence, the number solutions in this case is 25.
By putting all cases together, following from the rule of sum, the total number of solutions is equal to
(35−25)+(35−25)+25=2⋅35−25=454.
~ Steven Chen (www.professorchenedu.com)
Solution 3 (Principle of Inclusion-Exclusion)
By the Principle of Inclusion-Exclusion (abbreviated as PIE), we have ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣, from which we rewrite the given equation as
∣A∣⋅∣B∣=∣A∩B∣⋅(∣A∣+∣B∣−∣A∩B∣).
Rearranging and applying Simon's Favorite Factoring Trick give
∣A∣⋅∣B∣∣A∣⋅∣B∣−∣A∩B∣⋅∣A∣−∣A∩B∣⋅∣B∣(∣A∣−∣A∩B∣)⋅(∣B∣−∣A∩B∣)=∣A∩B∣⋅∣A∣+∣A∩B∣⋅∣B∣−∣A∩B∣2=−∣A∩B∣2=0,
from which at least one of the following is true:
-
∣A∣=∣A∩B∣
-
∣B∣=∣A∩B∣
Let ∣A∩B∣=k. For each value of k∈{0,1,2,3,4,5}, we will use PIE to count the ordered pairs (A,B):
Suppose ∣A∣=k. There are (k5) ways to choose the elements for A. These k elements must also appear in B. Next, there are 25−k ways to add any number of the remaining 5−k elements to B (Each element has 2 options: in B or not in B.). There are (k5)25−k ordered pairs for ∣A∣=k. Similarly, there are (k5)25−k ordered pairs for ∣B∣=k.
To fix the overcount, we subtract the number of ordered pairs that are counted twice, in which ∣A∣=∣B∣=k. There are (k5) such ordered pairs.
Therefore, there are
2(k5)25−k−(k5)
ordered pairs for ∣A∩B∣=k.
Two solutions follow from here:
Solution 3.1 (Binomial Theorem)
The answer is
k=0∑5[2(k5)25−k−(k5)]=2k=0∑5(k5)25−k−k=0∑5(k5)=2(2+1)5−(1+1)5=2(243)−32=454.
~MRENTHUSIASM
Solution 3.2 (Bash)
The answer is
k=0∑5[2(k5)25−k−(k5)]=[2(05)25−0−(05)]+[2(15)25−1−(15)]+[2(25)25−2−(25)]+[2(35)25−3−(35)]+[2(45)25−4−(45)]+[2(55)25−5−(55)]=[2(1)25−1]+[2(5)24−5]+[2(10)23−10]+[2(10)22−10]+[2(5)21−5]+[2(1)20−1]=63+155+150+70+15+1=454.
~MRENTHUSIASM
Solution 4 (Simple Bash)
Proceed with Solution 1 to get (∣A∣−∣A∩B∣)(∣B∣−∣A∩B∣)=0. WLOG, assume ∣A∣=∣A∩B∣. Thus, A⊆B.
Since A⊆B, if ∣B∣=n, there are 2n possible sets A, and there are also (n5) ways of choosing such B.
Therefore, the number of possible pairs of sets (A,B) is
k=0∑52n(n5)
We can compute this manually since it's only from k=0 to 5, and computing gives us 243. We can double this result for B⊆A, and we get 2(243)=486.
However, we have double counted the cases where A and B are the same sets. There are 32 possible such cases, so we subtract 32 from 486 to get 454.
~ adam_zheng
Video Solution by Interstigation
https://youtu.be/jEghPVjyHoc
~Interstigation
Video Solution & Set Theory Review
https://youtu.be/3vcLujj74RM
~MathProblemSolvingSkills.com