Skip to main content

2016 AIME II Problem 13

Problem 13 of 15HarderCombinatoricsProbability & Statistics

Beatrix is going to place six rooks on a 6×66 \times 6 chessboard where both the rows and columns are labeled 11 to 6;6; the rooks are placed so that no two rooks are in the same row or the same column. The value of a square is the sum of its row number and column number. The score 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+q.p + q.

Your answer

Integer from 0 to 999
Show solution

Solution

There are 6!=7206! = 720 arrangements, and every score lies between 22 and 7.7. Let bnb_n be the number of arrangements with score at least n.n. Since each score ss satisfies s=2+#{n≥3:s≥n},s = 2 + \#\{n \ge 3 : s \ge n\}, the total of all 720720 scores is 2⋅720+b3+b4+b5+b6+b7.2 \cdot 720 + b_3 + b_4 + b_5 + b_6 + b_7. Score ≥n\ge n means no rook occupies a square with row + column <n.\lt n. Place the rooks row by row. For b3,b_3, only (1,1)(1,1) is banned: 5⋅5!=600.5 \cdot 5! = 600. For b4,b_4, row 11 has 44 allowed columns, then row 22 has 44 (column 11 and the used column are excluded): 4⋅4⋅4!=384.4 \cdot 4 \cdot 4! = 384. Similarly b5=3⋅3⋅3⋅3!=162,b_5 = 3 \cdot 3 \cdot 3 \cdot 3! = 162, b6=2⋅2⋅2⋅2⋅2!=32,b_6 = 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2! = 32, and b7=1b_7 = 1 (all rooks on the anti-diagonal). The total is 1440+600+3841440 + 600 + 384 +162+32+1=2619,+ 162 + 32 + 1 = 2619, so the average is 2619720=29180,\frac{2619}{720} = \frac{291}{80}, and p+q=291+80=371.p + q = 291 + 80 = 371.
AoPS wiki

Tagged: expected value · permutations · arrangements with restrictions

More practice