olymmath

HMMT 2016 A9

  • Algebra
  • Answer

For any positive integer n,Snn, S_{n} be the set of all permutations of {1,2,3,…,n}\{1,2,3, \ldots, n\}. For each permutation π∈Sn\pi \in S_{n}, let f(π)f(\pi) be the number of ordered pairs (j,k)(j, k) for which π(j)>π(k)\pi(j)>\pi(k) and 1≤j<k≤n1 \leq j<k \leq n. Further define g(π)g(\pi) to be the number of positive integers k≤nk \leq n such that π(k)≡k±1( mod n)\pi(k) \equiv k \pm 1(\bmod n). Compute

∑π∈S999(−1)f(π)+g(π)\sum_{\pi \in S_{999}}(-1)^{f(\pi)+g(\pi)}

Dataset text NuminaMath olympiads. Quoted with source.

Show the answer

995 \times 2^{998}

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Similar problems

These problems have the most words in common with this statement.

Locator hmmt/2016/a9 · Tag 654HK8P6WV · Edit this page on GitHub · Keys: j next, k previous