# International Mathematics Competition for University Students 2016

Select Year:

IMC 2019
 Information Results/Prizes Problems & Solutions Photos

## IMC2016: Day 1, Problem 5

5. Let $S_n$ denote the set of permutations of the sequence $(1,2,\dots,n)$. For every permutation $\pi=(\pi_1,\dots,\pi_n)\in S_n$, let $\mathrm{inv}(\pi)$ be the number of pairs $1\le i\lt j\le n$ with $\pi_i\gt \pi_j$; i.e. the number of inversions in $\pi$. Denote by $f(n)$ the number of permutations $\pi\in S_n$ for which $\mathrm{inv}(\pi)$ is divisible by $n+1$.

Prove that there exist infinitely many primes $p$ such that $f(p-1)\gt \dfrac{(p-1)!}p$, and infinitely many primes $p$ such that $f(p-1)\lt \dfrac{(p-1)!}p$.

Proposed by Fedor Petrov, St. Petersburg State University

 IMC1994 IMC1995 IMC1996 IMC1997 IMC1998 IMC1999 IMC2000 IMC2001 IMC2002 IMC2003 IMC2004 IMC2005 IMC2006 IMC2007 IMC2008 IMC2009 IMC2010 IMC2011 IMC2012 IMC2013 IMC2014 IMC2015 IMC 2016 IMC2017 IMC2018 IMC2019