返回题库

AIME 2016 II · 第 13 题

AIME 2016 II — Problem 13

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Beatrix is going to place six rooks on a 6×66 \times 6 chessboard where both the rows and columns are labeled 11 to 66; the rooks are placed so that no two rooks are in the same row or the same column. The valuevalue of a square is the sum of its row number and column number. The scorescore of an arrangement of rooks is the least value of any occupied square. The average score over all valid configurations is pq\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+qp+q.

解析

Solution 1

We casework to find the number of ways to get each possible score. Note that the lowest possible score is 22 and the highest possible score is 77. Let the bijective function f(x)={1,2,3,4,5,6}{1,2,3,4,5,6}f(x)=\{1,2,3,4,5,6\} \to \{1,2,3,4,5,6\} denote the row number of the rook for the corresponding column number.

  • For a score of 22, we must have f(1)=1f(1)=1, and we can arrange the rest of the function however we want, so there are 5!=1205!=120 ways.

  • For a score of 33, we must have either f(1)=2f(1)=2 or f(2)=1f(2)=1, and we can arrange the rest of the rooks however we want, so by PIE the number of ways is 5!+5!4!=2165!+5!-4!=216.

  • For a score of 44, we must have f(1)=3f(1)=3, f(2)=2f(2)=2, or f(3)=1f(3)=1. If f(1)=3f(1)=3, we just don't want f(2)=1f(2)=1, if f(2)=2f(2)=2, we don't want f(1)=1f(1)=1, or if f(3)=1f(3)=1, we don't want f(1)=2f(1)=2, otherwise we can arrange the function however we like. If at least 22 of the values rooks have a value of 44, we can arrange the rest of the rooks however we like, so there are 3(5!4!)3(4!)+3!=2223(5!-4!)-3(4!)+3!=222 by PIE.

  • If the score is 55, then we have either f(4)=1f(4)=1, f(3)=2f(3)=2, f(2)=3f(2)=3, or f(1)=4f(1)=4. If we have the first case, we don't want f(2)=2f(2)=2, f(1)=2f(1)=2, or f(1)=3f(1)=3, so by PIE the number of bad cases is 4!+4!+4!3!=664!+4!+4!-3!=66. If we have the second case, then we don't want f(2)=1f(2)=1, f(1)=1f(1)=1, or f(1)=3f(1)=3, so similarly there are 6666 bad cases. This is true for the other two cases as well. Therefore, there are a total of 12066=54120-66=54 good cases for each one. The number of ways to get f(4)=1,f(1)=4f(4)=1, f(1)=4 is 4!3!=184!-3!=18 because we don't want f(2)=2f(2)=2, the number of ways to get f(4)=1,f(2)=3f(4)=1, f(2)=3 is 1818 ways because we don't want f(1)=2f(1)=2, the number of ways to get f(4)=1,f(3)=2f(4)=1, f(3)=2 is 1818 ways because we don't want f(1)=3f(1)=3, the number of ways to get f(3)=2,f(1)=4f(3)=2, f(1)=4 is 1818 ways because we don't want f(2)=1f(2)=1, the number of ways to get f(3)=2,f(2)=3f(3)=2, f(2)=3 is 1818 ways because we don't want f(1)=1f(1)=1, and the number of ways to get f(1)=4,f(2)=3f(1)=4, f(2)=3 is 1818 ways because we don't want f(3)=1f(3)=1. The number of ways to get at least 33 cases satisfied is 3!43! \cdot 4 because we can arrange the remaining rooks however we like, and the number of ways to get all 44 cases satisfied is 2!=22!=2 ways because we can arrange the remaining rooks however we like, so by PIE we have 544186+3!42!=13054 \cdot 4-18 \cdot 6 + 3! \cdot 4-2!=130 ways to get a score of 55.

  • The only way to get a score of 77 is to have all the rooks run on the antidiagonal. Therefore, the number of ways to get a sum of 66 is 6!1202162221301=316!-120-216-222-130-1=31.

Thus, the expected sum is 1202+2163+2224+1305+316+17720=2619720=29180\dfrac{120 \cdot 2 + 216 \cdot 3 + 222 \cdot 4 + 130 \cdot 5 + 31 \cdot 6 + 1 \cdot 7}{720}= \dfrac{2619}{720}=\dfrac{291}{80}, so the desired answer is 291+80=371291+80=\boxed{371}.

Solution 2

If the score is n+1n+1, then one of the rooks must appear in the nnth antidiagonal, and this is the first antidiagonal in which a rook can appear. To demonstrate this, we draw the following diagram when n=4n=4.

AIME diagram

We first count the number of arrangements that avoid the squares above the nnth diagonal, and then we subtract from these the number of arrangements that avoid all squares above the (n+1)(n+1)th diagonal. In the first column, there are 7n7-n rows in which to place the rook. In the second column, there is one more possible row, but one of the rows is used up by the rook in the first column, hence there are still 7n7-n places to place the rook. This pattern continues through the nnth column, so there are (7n)n(7-n)^n ways to place the first nn rooks while avoiding the crossed out squares. We can similarly compute that there are (6n)n(6-n)^n ways to place the rooks in the first nn columns that avoid both the crossed out and shaded squares. Therefore, there are (7n)n(6n)n(7-n)^n-(6-n)^n ways to place the first nn rooks such that at least one of them appears in a shaded square.

After this, there are (6n)(6-n) rows and (6n)(6-n) columns in which to place the remaining rooks, and we can do this in (6n)!(6-n)! ways. Hence the number of arrangements with a score of nn is ((7n)n(6n)n)(6n)!((7-n)^n-(6-n)^n)\cdot(6-n)!. We also know that nn can range from from 11 to 66, so the average score is given by

2(6151)5!+3(5242)4!+4(4333)3!+5(3424)2!+6(2515)1!+7(1606)0!6!=29180.\frac{2\cdot(6^1-5^1)\cdot5!+3\cdot(5^2-4^2)\cdot4!+4\cdot(4^3-3^3)\cdot3!+5\cdot(3^4-2^4)\cdot 2!+6\cdot(2^5-1^5)\cdot 1!+7\cdot(1^6-0^6)\cdot 0!}{6!}=\frac{291}{80}. Thus the answer is 371\boxed{371}.

Solution 3

So we first count the number of permutations with score 2\ge 2. This is obviously 6!=7206!=720. Then, the number of permutations with score 3\ge 3 can also be computed: in the first column, there are five ways to place a rook- anywhere but the place with score 11. In the next column, there are 55 ways to place a rook- anywhere but the one in the same row as the previous row. We can continue this to obtain that the number of permutations with score 3\ge 3 is 600600. Doing the same for scores 4\ge 4, 5\ge 5, 6\ge 6, and 7\ge 7 we obtain that these respective numbers are 384384, 162162, 3232, 11.

Now, note that if aka_k is the number of permutations with score k\ge k, then akak1=bka_k-a_{k-1}=b_{k}, where bkb_k is the number of permutations with score exactly kk. Thus, we can compute the number of permutations with scores 22, 33, etc as 120,216,222,130,31,1120,216,222,130,31,1. We then compute

120(2)+216(3)+222(4)+130(5)+31(6)+1(7)720=29180\frac{120(2)+216(3)+222(4)+130(5)+31(6)+1(7)}{720}=\frac{291}{80} leading us to the answer of 291+80=371291+80=\boxed{371}. \blacksquare

Note

This problem is pretty bashy. There isn't a clever way to solve it.

Solution 4 (builds off Solution 3)

The problem is asking us to compute E[S]\mathbb{E}[S], where SS is the random variable that takes an arrangement of rooks and outputs its score, which is a non-negative integer quantity. For any random variable SS with non-negative integer values, we have the tail sum formula

E[S]=n=1P(Sn).\mathbb{E}[S] = \sum_{n = 1}^{\infty}\mathbb{P}(S\geq n). These probabilities can be computed as in Solution 3, giving us the following table.

Probabilities (out of 720)

nn 11 22 33 44 55 66 77 8\geq 8 P(Sn)\mathbb{P}(S\geq n) 720720 720720 600600 384384 162162 3232 11 00

Hence

E[S]=720+720+600+384+162+32+1720=2+1179720=2+13180=29180,\begin{aligned} \mathbb{E}[S] &= \frac{720 + 720 + 600 + 384 + 162 + 32 + 1}{720} \\ &= 2 + \frac{1179}{720} = 2 + \frac{131}{80} = \frac{291}{80}, \end{aligned} and the final answer is 291+80=371291 + 80 = \boxed{371} as above.

Tail sum formula

The definition of expected value corresponds to summing the entries of the grid going column by column first, then adding up the column sums, whereas the tail sum formula corresponds to summing the entries of the grid going row by row first, then adding up the row sums. (Since all entries are non-negative, rearrangement of a potentially-infinite sum is no issue.)

P(S=1)P(S=2)P(S=3)P(S=4)P(S=5)P(S=2)P(S=3)P(S=4)P(S=5)P(S=3)P(S=4)P(S=5)P(S=4)P(S=5)P(S=5)\begin{array}{cccccc} \mathbb{P}(S = 1) & \mathbb{P}(S = 2) & \mathbb{P}(S = 3) & \mathbb{P}(S = 4) & \mathbb{P}(S = 5) & \cdots \\ {} & \mathbb{P}(S = 2) & \mathbb{P}(S = 3) & \mathbb{P}(S = 4) & \mathbb{P}(S = 5) & \cdots \\ {} & {} & \mathbb{P}(S = 3) & \mathbb{P}(S = 4) & \mathbb{P}(S = 5) & \cdots \\ {} & {} & {} & \mathbb{P}(S = 4) & \mathbb{P}(S = 5) & \cdots \\ {} & {} & {} & {} & \mathbb{P}(S = 5) & \cdots \\ {} & {} & {} & {} & {} & \cdots \\ \end{array}

Video Solution

2016 AIME II #13

MathProblemSolvingSkills.com