Maths Olympiad Prep

Library / /330 of 377

Combinatorics Difficulty 5.7 AIME, harder Prove it United States

Problem:

For positive odd integer nn, let f(n)f(n) denote the number of matrices AA satisfying the following conditions:
- AA is n×nn \times n.
- Each row and column contains each of 1,2,,n1,2, \ldots, n exactly once in some order.
- AT=AA^{T}=A. (That is, the element in row ii and column jj is equal to the one in row jj and column ii, for all 1i,jn1 \leq i, j \leq n.)
Prove that f(n)n!(n1)!φ(n)f(n) \geq \frac{n!(n-1)!}{\varphi(n)}.

Solution

Solution:

We first note that the main diagonal (the squares with row number equal to column number) is a permutation of 1,2,,n1,2, \ldots, n. This is because each number ii (1in1 \leq i \leq n) appears an even number of times off the main diagonal, so must appear an odd number of times on the main diagonal. Thus, we may assume that the main diagonal's values are 1,2,,n1,2, \ldots, n in that order. Call any matrix satisfying this condition and the problem conditions good. Let g(n)g(n) denote the number of good matrices. It now remains to show that g(n)(n1)!φ(n)g(n) \geq \frac{(n-1)!}{\varphi(n)}.

Now, consider a round-robin tournament with nn teams, labeled from 11 through nn, with the matches spread over nn days such that on day ii, all teams except team ii play exactly one match (so there are n12\frac{n-1}{2} pairings), and at the end of nn days, each pair of teams has played exactly once. We consider two such tournaments distinct if there is some pairing of teams i,ji, j which occurs on different days in the tournaments. We claim that the tournaments are in bijection with the good matrices.

Proof of Claim: Given any good matrix AA, we construct a tournament by making day kk have matches between team ii and jj for each i,ji, j such that Ai,j=kA_{i, j}=k, besides (i,j)=(k,k)(i, j)=(k, k). Every pair will play some day, and since each column and row contains exactly one value of each number, no team will play more than once a day. Furthermore, given two distinct good matrices, there exists a value (off the main diagonal) on which they differ; this value corresponds to the same pair playing on different dates, so the corresponding tournaments must be distinct. For the other direction, take any tournament. Make a matrix AA with the main diagonal as 1,2,,n1,2, \ldots, n, and for each kk, set Ai,j=kA_{i, j}=k for each i,ji, j such that teams i,ji, j play each other on day kk. This gives a good matrix. Similarly, given any two distinct tournaments, there exists a team pair i,ji, j which play each other on different days; this corresponds to a differing value on the corresponding good matrices.

It now suffices to exhibit (n1)!φ(n)\frac{(n-1)!}{\varphi(n)} distinct tournaments. (It may be helpful here to think of the days in the tournament as an unordered collection of sets of pairings, with the order implicitly imposed by the team not present in the set of pairings.) For our construction, consider a regular nn-gon with center OO. Label the points as A1,A2,,AnA_{1}, A_{2}, \ldots, A_{n} as an arbitrary permutation (so there are n!n! possible labelings). The team kk will be represented by AkA_{k}. For each kk, consider the line AkOA_{k} O. The remaining n1n-1 vertices can be paired into n12\frac{n-1}{2} groups which are perpendicular to this line; use these pairings for day kk. Of course, this doesn't generate n!n! distinct tournaments—but how many does it make?

Consider any permutation of labels. Starting from an arbitrary point, let the points of the polygon be Aπ(1),Aπ(2),,Aπ(n)A_{\pi(1)}, A_{\pi(2)}, \ldots, A_{\pi(n)} in clockwise order. Letting π(0)=π(n)\pi(0)=\pi(n) and π(n+1)=π(1)\pi(n+1)=\pi(1), we note that π(i1)\pi(i-1) and π(i+1)\pi(i+1) play each other on day π(i)\pi(i). We then see that any other permutation of labels representing the same tournament must have Aπ(i1)Aπ(i)=Aπ(i)Aπ(i+1)A_{\pi(i-1)} A_{\pi(i)}=A_{\pi(i)} A_{\pi(i+1)} for all ii. Thus, if Aπ(1)A_{\pi(1)} is kk vertices clockwise of Aπ(0)A_{\pi(0)}, then Aπ(2)A_{\pi(2)} is kk vertices clockwise of Aπ(1)A_{\pi(1)}, and so on all the way up to Aπ(n1)A_{\pi(n-1)} being kk vertices clockwise of Aπ(n)A_{\pi(n)}. This is only possible if kk is relatively prime to nn, so there are φ(n)\varphi(n) choices of kk. There are nn choices of the place to put Aπ(1)A_{\pi(1)}, giving nφ(n)n \varphi(n) choices of permutations meeting this condition. It is clear that each permutation meeting this condition provides the same tournament, so the n!n! permutations can be partitioned into equivalence classes of size nφ(n)n \varphi(n) each. Thus, there are n!nφ(n)\frac{n!}{n \varphi(n)} distinct equivalence classes, and we are done.

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.