Let $p$ be an arbitrary odd prime and $\sigma(n)$ for $1 \le n \le p-1$ denote the inverse of $n \pmod p$. Show that the number of pairs $(a,b) \in \{1,2,\cdots,p-1\}^2$ with $a<b$ but $\sigma(a) > \sigma(b)$ is at least $$\left \lfloor \left(\frac{p-1}{4}\right)^2 \right \rfloor$$ usjl Note: Partial credits may be awarded if the $4$ in the statement is replaced with some larger constant
Problem
Source: IMOC 2021 N11
Tags: number theory
12.08.2021 02:51
I'm pretty proud of this problem I was kind of surprise that I could actually say something about the statistics of this seemingly random permutation. One thing that I could not do by myself is to estimate the length of its LIS or LDS---it looks easier to give a lower bound of the length of LDS, but both seem hard. I'd like to see some nontrivial bound on those two.
12.08.2021 17:31
The following solution is inspired by the magical properties of the function $x\mapsto 1-\frac{1}{x}$. Unfortunately, it does not elucidate further structure regarding the permutation $\sigma$.
12.08.2021 17:39
quotient8 wrote: The following solution is inspired by the magical properties of the function $x\mapsto 1-\frac{1}{x}$. Unfortunately, it does not elucidate further structure regarding the permutation $\sigma$.
Whoa this is surprising! This idea had never come to me, and this is strictly superior to my method in terms of the leading coefficient. Nice one!
18.09.2021 18:33
quotient8 wrote: The following solution is inspired by the magical properties of the function $x\mapsto 1-\frac{1}{x}$. Unfortunately, it does not elucidate further structure regarding the permutation $\sigma$.
Brilliant!!
13.03.2022 20:17
This solution uses properties about $j-\frac 1j$ and is rather clean. Lemma (ISL1990, SEIF 2022/5): let $\sigma$ be a permutation $[n]\to [n]$. Then $\sum_{k=1}^n |k-\sigma(k)|\le 2I$ where I is the number of inversions of $\sigma$ Proof: induct on I, swap two elements at a time Or count number of numbers smaller than an element with a larger index. Now, we know $j-\frac 1j$ goes through all values $k$ such that $k^2+4$ is a perfect square. There are at least $\frac{p-3}{2}$ such values. Therefore, the sum of all possible values of $j-\frac 1j$ is at least $1+...+\frac{p-3}{4}=\frac{p^2}{8})-O(p)$. The sum that is at most 2I is $\frac{p^2}{8}-O(p)$
09.05.2022 17:05
quotient8 wrote: The following solution is inspired by the magical properties of the function $x\mapsto 1-\frac{1}{x}$. Unfortunately, it does not elucidate further structure regarding the permutation $\sigma$.
such a nice solution