The entries in a array include all the digits from through , arranged so that the entries in every row and column are in increasing order. How many such arrays are there?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
1 and 9 are fixed at the corners; the center must be 4, 5, or 6, and each case leaves two independent small ordering problems.
Solution
Write the cell in row , column as . Clearly is at and at . The center exceeds and is below , so the center is , , or .
Center . Then fill and in ways. The digits go to with only the constraints and : choose which two digits go to the top-right pair, ways. Total .
Center . Replacing each entry by and rotating swaps this case with center : also .
Center . Three of must fill and one of the corners or ; the other corner gets a digit from . Say : then can be any of ( ways) and the other two fill row in increasing order. The digits go to with : choose the digit for , ways. That is arrays; by the transpose symmetry, gives more. Total .
Altogether .
The answer is .
Why this works
Ordering constraints on a grid are best attacked at the most constrained cell, the center, which splits the digits into "before" and "after" sets. Each case then decomposes into small independent chains. Symmetries (transpose, complement ) halve the work and act as a check on the counts.
Alternative approach
These arrays are standard Young tableaux of a square, counted by the hook length formula: .
The trap
Assuming the center must be 5, or forgetting that entries in the two off-diagonal corners are not compared with each other.
Common mistakes
- Assuming the center must be 5, or forgetting that entries in the two off-diagonal corners are not compared with each other.
- Overcounting the center- case by allowing both corners and to be less than , which would need four digits below but only three exist.
Techniques
Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects