Maths Olympiad Prep

Library / /392 of 1394

, 2023

Combinatorics Difficulty 5.1 AIME, harder Find the answer United States

Problem:

A random permutation a=(a1,a2,,a40)a = (a_{1}, a_{2}, \ldots, a_{40}) of (1,2,,40)(1, 2, \ldots, 40) is chosen, with all permutations being equally likely. William writes down a 20×2020 \times 20 grid of numbers bijb_{ij} such that bij=max(ai,aj+20)b_{ij} = \max(a_{i}, a_{j+20}) for all 1i,j201 \leq i, j \leq 20, but then forgets the original permutation aa. Compute the probability that, given the values of bijb_{ij} alone, there are exactly 2 permutations aa consistent with the grid.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:

We can deduce information about aa from the grid bb by looking at the largest element of it, say mm. If mm fills an entire row, then the value of aa corresponding to this row must be equal to mm. Otherwise, mm must fill an entire column, and the value of aa corresponding to this column must be equal to mm. We can then ignore this row/column and continue this reasoning recursively on the remaining part of the grid.

Near the end, there are two cases. We could have a 1×11 \times 1 remaining grid, where there are 2 permutations aa consistent with bb. We could also have a case where one of the dimensions of the remaining grid is 1, the other dimension is at least 2 (say kk), and the number k+1k+1 fills the entire remaining grid. In that case, there are k!k! ways to arrange the other elements 1,,k1, \ldots, k.

It follows that there are exactly 2 permutations aa consistent with the grid if and only if one of 11 and 22 is assigned to a row and the other is assigned to a column, or they are both assigned to the same type and 33 is assigned to the opposite type. The probability that this does not occur is the probability that 1,2,31, 2, 3 are all assigned to the same type, which happens with probability 19391838=18239=313\frac{19}{39} \cdot \frac{18}{38} = \frac{18}{2 \cdot 39} = \frac{3}{13}, so the answer is 1313=10131 - \frac{3}{13} = \frac{10}{13}.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.