Skip to main content

2021 AIME II Problem 6

Problem 6 of 15IntermediateAlgebraCombinatorics

For any finite set S,S, let ∣S∣|S| denote the number of elements in S.S. Find the number of ordered pairs (A,B)(A, B) such that AA and BB are (not necessarily distinct) subsets of {1,2,3,4,5}\{1, 2, 3, 4, 5\} that satisfy ∣A∣⋅∣B∣=∣A∩B∣⋅∣A∪B∣.|A| \cdot |B| = |A \cap B| \cdot |A \cup B|.

Your answer

Integer from 0 to 999
Show solution

Solution

Let a=∣A∣,a = |A|, b=∣B∣,b = |B|, and i=∣A∩B∣,i = |A \cap B|, so ∣A∪B∣=a+b−i.|A \cup B| = a + b - i. The condition ab=i(a+b−i)ab = i(a + b - i) rearranges to ab−ia−ib+i2=(a−i)(b−i)=0, \begin{aligned} &ab - ia - ib + i^2 \\ &= (a - i)(b - i) = 0, \end{aligned} so ∣A∩B∣=∣A∣|A \cap B| = |A| or ∣A∩B∣=∣B∣.|A \cap B| = |B|. Since A∩BA \cap B is a subset of each, that means A⊆BA \subseteq B or B⊆A.B \subseteq A. For pairs with A⊆B,A \subseteq B, each of the 55 elements independently lies in neither set, in BB only, or in both: 35=2433^5 = 243 pairs. Likewise 243243 pairs satisfy B⊆A,B \subseteq A, and the pairs counted twice are exactly those with A=B,A = B, of which there are 25=32.2^5 = 32. The answer is 243+243−32=454.243 + 243 - 32 = 454.
AoPS wiki

Tagged: subsets · factoring · inclusion-exclusion

More practice