DR.WANG Mathematics中文

2022 AIME I · Question 12

Counting & combinatorics · subsets · combinations · double counting · Vandermonde’s Convolution

Problem outline

For all ordered pairs (A,B)(A,B) of equally large subsets of {1,…,n}\{1,\ldots,n\}, let SnS_n be the total of ∣A∩B∣|A\cap B|. Reduce S2022/S2021=p/qS_{2022}/S_{2021}=p/q, then find (p+q) mod 1000(p+q)\bmod1000.

Show answer and methods 1 methods

Answer

245

Method 1 Mark an element of the intersection

Count triples consisting of A,BA,B and one marked common element. Choose the element in nn ways. On two disjoint copies of the remaining n−1n-1 elements choose AA’s other members from the first copy and the complement of BB’s other members from the second. Since the sizes of A,BA,B match, exactly n−1n-1 items in total are chosen, and any such choice works.

Thus Sn=n(2n−2n−1)S_n=n\binom{2n-2}{n-1}. Canceling factorials gives S2022/S2021=2(2022)(4041)/20212S_{2022}/S_{2021}=2(2022)(4041)/2021^2. The denominator is coprime to each of 22, 2022=2021+12022=2021+1 and 4041=2(2021)−14041=2(2021)-1.

The required residue is (2⋅22⋅41+212) mod 1000=245(2\cdot22\cdot41+21^2)\bmod1000=245.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)