Problem:
For any positive integer , be the set of all permutations of . For each permutation , let be the number of ordered pairs for which and . Further define to be the number of positive integers such that . Compute
, 2016
Solution
Solution:
Define an matrix with entries if and 1 otherwise. Let (here gives the sign of the permutation ). Note by construction that .
We find that the eigenvalues of are (eigenvector of all ones) and , where , for . Since the determinant is the product of the eigenvalues,
Evaluate the product and plug in to finish. (As an aside, this approach also tells us that the sum is 0 whenever is a multiple of 4.)
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.