返回题库

AIME 2022 I · 第 12 题

AIME 2022 I — Problem 12

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

For any finite set XX, let X| X | denote the number of elements in XX. Define

Sn=AB,S_n = \sum | A \cap B | , where the sum is taken over all ordered pairs (A,B)(A, B) such that AA and BB are subsets of {1,2,3,,n}\left\{ 1 , 2 , 3, \cdots , n \right\} with A=B|A| = |B|. For example, S2=4S_2 = 4 because the sum is taken over the pairs of subsets

(A,B){(,),({1},{1}),({1},{2}),({2},{1}),({2},{2}),({1,2},{1,2})},(A, B) \in \left\{ (\emptyset, \emptyset) , ( \{1\} , \{1\} ), ( \{1\} , \{2\} ) , ( \{2\} , \{1\} ) , ( \{2\} , \{2\} ) , ( \{1 , 2\} , \{1 , 2\} ) \right\} , giving S2=0+1+0+0+1+2=4S_2 = 0 + 1 + 0 + 0 + 1 + 2 = 4. Let S2022S2021=pq\frac{S_{2022}}{S_{2021}} = \frac{p}{q}, where pp and qq are relatively prime positive integers. Find the remainder when p+qp + q is divided by 1000.

解析

Solution 1 (Easy to Understand)

Let's try out for small values of nn to get a feel for the problem. When n=1,Snn=1, S_n is obviously 11. The problem states that for n=2,Snn=2, S_n is 44. Let's try it out for n=3n=3.

Let's perform casework on the number of elements in A,BA, B.

Case 1:A=B=1\textbf{Case 1:} |A| = |B| = 1

In this case, the only possible equivalencies will be if they are the exact same element, which happens 33 times.

Case 2:A=B=2\textbf{Case 2:} |A| = |B| = 2

In this case, if they share both elements, which happens 33 times, we will get 22 for each time, and if they share only one element, which also happens 66 times, we will get 11 for each time, for a total of 1212 for this case.

Case 3:A=B=3\textbf{Case 3:} |A| = |B| = 3

In this case, the only possible scenario is that they both are the set {1,2,3}\{1,2,3\}, and we have 33 for this case.

In total, S3=18S_3 = 18.

Now notice, the number of intersections by each element 131 \ldots 3, or in general, 1n1 \ldots n is equal for each element because of symmetry - each element when n=3n=3 adds 66 to the answer. Notice that 6=(42)6 = \binom{4}{2} - let's prove that Sn=n(2n2n1)S_n = n \cdot \binom{2n-2}{n-1} (note that you can assume this and answer the problem if you're running short on time in the real test).

Let's analyze the element kk - to find a general solution, we must count the number of these subsets that kk appears in. For kk to be in both AA and BB, we need both sets to contain kk and another subset of 11 through nn not including kk. (A={k}AA{1,2,,n}A⊄{k}A = \{k\} \cup A'| A' \subset \{1,2,\ldots,n\} \land A' \not \subset \{k\} and B={k}BB{1,2,,n}B⊄{k}B = \{k\} \cup B'| B' \subset \{1,2,\ldots,n\} \land B' \not \subset \{k\})

For any 0ln10\leq l \leq n-1 that is the size of both AA' and BB', the number of ways to choose the subsets AA' and BB' is (n1l)\binom{n-1}{l} for both subsets, so the total number of ways to choose the subsets are (n1l)2\binom{n-1}{l}^2. Now we sum this over all possible ll's to find the total number of ways to form sets AA and BB that contain kk. This is equal to l=0n1(n1l)2\sum_{l=0}^{n-1} \binom{n-1}{l}^2. This is a simplification of Vandermonde's identity, which states that k=0r(mk)(nrk)=(m+nr)\sum_{k=0}^{r} \binom{m}{k} \cdot \binom{n}{r-k} = \binom{m+n}{r}. Here, mm, nn and rr are all n1n-1, so this sum is equal to (2n2n1)\binom{2n-2}{n-1}. Finally, since we are iterating over all kk's for nn values of kk, we have Sn=n(2n2n1)S_n = n \cdot \binom{2n-2}{n-1}, proving our claim.

We now plug in SnS_n to the expression we want to find. This turns out to be 2022(40422021)2021(40402020)\frac{2022 \cdot \binom{4042}{2021}}{2021 \cdot \binom{4040}{2020}}. Expanding produces 20224042!2020!2020!20214040!2021!2021!\frac{2022 \cdot 4042!\cdot 2020! \cdot 2020!}{2021 \cdot 4040! \cdot 2021! \cdot 2021!}.

After cancellation, we have

202240424041202120212021    4044404120212021\frac{2022 \cdot 4042 \cdot 4041}{2021 \cdot 2021 \cdot 2021} \implies \frac{4044\cdot 4041}{2021 \cdot 2021} 40444044 and 40414041 don't have any common factors with 20212021, so we're done with the simplification. We want to find 40444041+20212(mod1000)4441+212(mod1000)1804+441(mod1000)2245(mod1000)2454044 \cdot 4041 + 2021^2 \pmod{1000} \equiv 44 \cdot 41 + 21^2 \pmod{1000} \equiv 1804+441 \pmod{1000} \equiv 2245 \pmod{1000} \equiv \boxed{245}

~KingRavi ~Edited by MY-2

Solution 2 (Linearity of Expectation)

We take cases based on the number of values in each of the subsets in the pair. Suppose we have kk elements in each of the subsets in a pair (for a total of n elements in the set). The expected number of elements in any random pair will be nknknn \cdot \frac{k}{n} \cdot \frac{k}{n} by linearity of expectation because for each of the nn elements, there is a kn\frac{k}{n} probability that the element will be chosen. To find the sum over all such values, we multiply this quantity by (nk)2\binom{n}{k}^2. Summing, we get

k=1nk2n(nk)2\sum_{k=1}^{n} \frac{k^2}{n} \binom{n}{k}^2 Notice that we can rewrite this as

k=1n1n(kn!(k)!(nk)!)2=k=1n1nn2((n1)!(k1)!(nk)!)2=nk=1n(n1k1)2=nk=1n(n1k1)(n1nk)\sum_{k=1}^{n} \frac{1}{n} \left(\frac{k \cdot n!}{(k)!(n - k)!}\right)^2 = \sum_{k=1}^{n} \frac{1}{n} n^2 \left(\frac{(n-1)!}{(k - 1)!(n - k)!}\right)^2 = n \sum_{k=1}^{n} \binom{n - 1}{k - 1}^2 = n \sum_{k=1}^{n} \binom{n - 1}{k - 1}\binom{n - 1}{n - k} We can simplify this using Vandermonde's identity to get n(2n2n1)n \binom{2n - 2}{n - 1}. Evaluating this for 20222022 and 20212021 gives

2022(40422021)2021(40402020)=20224042404120213=20222404120212\frac{2022\binom{4042}{2021}}{2021\binom{4040}{2020}} = \frac{2022 \cdot 4042 \cdot 4041}{2021^3} = \frac{2022 \cdot 2 \cdot 4041}{2021^2} Evaluating the numerators and denominators mod 10001000 gives 804+441=1245804 + 441 = 1\boxed{245}

- pi_is_3.14

Solution 3 (Rigorous)

For each element ii, denote xi=(xi,A,xi,B){0,1}2x_i = \left( x_{i, A}, x_{i, B} \right) \in \left\{ 0 , 1 \right\}^2, where xi,A=I{iA}x_{i, A} = \Bbb I \left\{ i \in A \right\} (resp. xi,B=I{iB}x_{i, B} = \Bbb I \left\{ i \in B \right\}).

Denote Ω={(x1,,xn):i=1nxi,A=i=1nxi,B}\Omega = \left\{ (x_1, \cdots , x_n): \sum_{i = 1}^n x_{i, A} = \sum_{i = 1}^n x_{i, B} \right\}.

Denote Ωj={(x1,,xj1,xj+1,,xn):ijxi,A=ijxi,B}\Omega_{-j} = \left\{ (x_1, \cdots , x_{j-1} , x_{j+1} , \cdots , x_n): \sum_{i \neq j} x_{i, A} = \sum_{i \neq j} x_{i, B} \right\}.

Hence,

Sn=(x1,,xn)Ωi=1nI{xi,A=xi,B=1}=i=1n(x1,,xn)ΩI{xi,A=xi,B=1}=i=1n(x1,,xi1,xi+1,,xn)Ωi1=i=1nj=0n1((n1j))2=nj=0n1((n1j))2=nj=0n1(n1j)(n1n1j)=n(2n2n1).\begin{aligned} S_n & = \sum_{(x_1, \cdots , x_n) \in \Omega} \sum_{i = 1}^n \Bbb I \left\{ x_{i, A} = x_{i, B} = 1 \right\} \\ & = \sum_{i = 1}^n \sum_{(x_1, \cdots , x_n) \in \Omega} \Bbb I \left\{ x_{i, A} = x_{i, B} = 1 \right\} \\ & = \sum_{i = 1}^n \sum_{(x_1, \cdots , x_{i-1} , x_{i+1} , \cdots , x_n) \in \Omega_{-i}} 1 \\ & = \sum_{i = 1}^n \sum_{j=0}^{n-1} \left( \binom{n-1}{j} \right)^2 \\ & = n \sum_{j=0}^{n-1} \left( \binom{n-1}{j} \right)^2 \\ & = n \sum_{j=0}^{n-1} \binom{n-1}{j} \binom{n-1}{n-1-j} \\ & = n \binom{2n-2}{n-1} . \end{aligned} Therefore,

S2022S2021=2022(40422021)2021(40402020)=4044404120212.\begin{aligned} \frac{S_{2022}}{S_{2021}} & = \frac{2022 \binom{4042}{2021}}{2021 \binom{4040}{2020}} \\ & = \frac{4044 \cdot 4041}{2021^2} . \end{aligned} This is in the lowest term. Therefore, modulo 1000,

p+q40444041+202124441+212(245) .\begin{aligned} p + q & \equiv 4044 \cdot 4041 + 2021^2 \\ & \equiv 44 \cdot 41 + 21^2 \\ & \equiv \boxed{\textbf{(245) }} . \end{aligned} ~Steven Chen (www.professorchenedu.com)

Solution 4

Let's ask what the contribution of an element k{1,2,,n}k\in \{1,2,\cdots,n\} is to the sum Sn=AB.S_n = \sum | A \cap B |.

The answer is given by the number of (A,B)(A,B) such that A=B|A|=|B| and kABk \in A\cap B, which is given by (2n2n1)\binom{2n-2}{n-1} by the following construction: Write down 1 to nn except kk in a row. Do the same in a second row. Then choose n1n-1 numbers out of these 2n22n-2 numbers. kk and the numbers chosen in the first row make up AA. kk and the numbers not chosen in the second row make up BB. This is a one-to-one correspondence between (A,B)(A,B) and the ways to choose n1n-1 numbers from 2n22n-2 numbers.

The contribution from all elements is therefore

Sn=n(2n2n1).S_n = n\binom{2n-2}{n-1}. For the rest please see Solution 1 or 2.

~qyang

NOTE: you may have a concern, "what if we chose the same element twice in a set?" Let us look at an example. Suppose we are partioning S4,S_4, k=4,k=4, and we list out the rows top: 1,2,31,2,3 bottom: 1,2,31,2,3 If we chose 11 (top) 22 (top) and 11 (bottom), then we can distribute these numbers by sending the numbers in the top row that were chosen to set A,A, which would be 1,2,4,{1,2,4}, and set BB would be the numbers not chosen in the bottom row, which would be 2,3,4.{2,3,4}. To prove this rigourously, let xx be the number of elements in the top row chosen and yy be the number of elements chosen in the bottom row. Since we choose n1n-1 objects, x+y=n1.x+y=n-1. So the amount of elements in AA would be 1+x,1+x, and the amount of elements in BB would be 1+(n1y)=1+n1(n1x)=x+1.1+(n-1-y)=1+n-1-(n-1-x)=x+1.

~eqb5000

Solution 5 (No strange notation, proof of all combo lemmas provided)

Assume the subset AA of {1,2,3,,n}\{1, 2, 3, \dots, n\} has kk elements, where kk is some integer from 00 to nn, inclusive. Then, there are (nk)\tbinom{n}{k} ways to choose AA. Now, we find the amount of ways to choose BB, given AA. Assume that AA and BB have aa elements in common, where 0ak0 \le a \le k. Then, aa of the elements in BB are also in AA, so we can pick (ka)\tbinom{k}{a} elements here, and the remaining kak-a elements in BB are not\underline{\text{not}} in AA, so we can pick (nkka)\tbinom{n-k}{k-a} elements here. Therefore, there are (ka)(nkka)\tbinom{k}{a}\tbinom{n-k}{k-a} ways to select BB if AA and BB have aa elements in common.

However, if AA and BB have aa elements in common, the ordered pair (A,B)(A, B) will contribute aa to the total sum. Thus, we multiply by aa. Since the amount of ways to choose BB ranges over all 0ak0 \le a \le k, we seek the sum;

(nk)a=0ka(ka)(nkka)\binom{n}{k}\sum_{a=0}^{k} a\binom{k}{a}\binom{n-k}{k-a}.

The (nk)\binom{n}{k} on the outside of the sum represents the amount of ways to choose AA. Now, we simplify the a(ka)a\tbinom{k}{a} term a little bit

Note that a(ka)=ak!a!(ka)!=k!(a1)!(ka)!=k(k1)!(a1)!(ka)!=k(k1a1)a\tbinom{k}{a}=a \cdot \frac{k!}{a!(k-a)!}=\frac{k!}{(a-1)!(k-a)!}=k \cdot \frac{(k-1)!}{(a-1)!(k-a)!}=k\binom{k-1}{a-1}

The reason we did this is because we want the aa in the combination expression, and not as a scale factor. Then, the sum simplifies to

(nk)a=0kk(k1a1)(nkka)\binom{n}{k} \sum_{a=0}^{k} k\binom{k-1}{a-1}\binom{n-k}{k-a}. We can take kk out of the sum (it's a constant in the sum), and the sum turns into

k(nk)a=0k(k1a1)(nkka)k\binom{n}{k}\sum_{a=0}^{k}\binom{k-1}{a-1}\binom{n-k}{k-a}.

Now, we use a combinatorial identity called Vandermode's Identity (This identity is well known, if you don't know it, learn it; it's useful for these types of problems). Consider x+yx+y people. We wish to form a committee with rr people. We can do this in (x+yr)\tbinom{x+y}{r} ways. However, we can choose kk people from the group of xx people and rkr-k people from the other yy people, for all 0kr0 \le k \le r.

This is done in k=0r(xk)(yrk)\sum_{k=0}^{r} \binom{x}{k} \binom{y}{r-k} ways, but this is also equal to (x+yr)\binom{x+y}{r}.

In our desired sum, we have x=k1x=k-1, y=nky=n-k, and r=(a1)+(ka)=k1r=(a-1)+(k-a)=k-1. Thus, the summation part is equal to (n1k1)\binom{n-1}{k-1}, and the total product is k(nk)(n1k1)k\binom{n}{k}\binom{n-1}{k-1}.

Now, we want to sum this over all possible kk, for 0kn0 \le k \le n.

This is k=0nk(nk)(n1k1)\sum_{k=0}^{n} k\binom{n}{k}\binom{n-1}{k-1}. We can do something with the k(nk)k\binom{n}{k} term that was similar to something we did last time to obtain that this is also equal to n(n1k1)n\binom{n-1}{k-1}.

Then, the sum simplifies to nk=0n(n1k1)(n1k1)=nk=0n(n1k1)2n\sum_{k=0}^{n} \binom{n-1}{k-1} \binom{n-1}{k-1}=n\sum_{k=0}^{n}\binom{n-1}{k-1}^{2}.

We can use Vandermode's again, with x=y=n1x=y=n-1 and r=(k1)+(k1)=2k2r=(k-1)+(k-1)=2k-2. Then, the sum is equal to n(2n2n1)n\binom{2n-2}{n-1}.

Now, the problem seeks S2022S2021\frac{S_{2022}}{S_{2021}}. This is equal to 2022(40422021)2021(40402020)=20224042!2021!2021!20214040!2020!2020!=20224042!2020!2020!20214040!2021!2021!=202240424041202120212021=20222404120212021\frac{2022\tbinom{4042}{2021}}{2021\tbinom{4040}{2020}}=\frac{\frac{2022 \cdot 4042!}{2021! \cdot 2021!}}{\frac{2021 \cdot 4040!}{2020! \cdot 2020!}}=\frac{2022 \cdot 4042! \cdot 2020! \cdot 2020!}{2021 \cdot 4040! \cdot 2021! \cdot 2021!}=\frac{2022 \cdot 4042 \cdot 4041}{2021 \cdot 2021 \cdot 2021}=\frac{2022 \cdot 2 \cdot 4041}{2021 \cdot 2021}.

We seek 202224041+20212021(mod1000)2022 \cdot 2 \cdot 4041 + 2021 \cdot 2021 \pmod{1000}. This is equivalent to 2282+2121804+441245(mod1000)22 \cdot 82 + 21 \cdot 21 \equiv 804+441 \equiv \boxed{245} \pmod{1000}, and we are done.

Video Solution

https://youtu.be/cXJmHV5BnfY ~MathProblemSolvingSkills.com

https://youtu.be/wTYXkE32v9o ~AMC & AIME Training