TITLE: Neighboring number of a permutation
QUESTION [5 upvotes]: For any positive integer $n\in\mathbb{N}$ let $S_n$ denote the set of all bijective maps $\pi:\{1,\ldots,n\}\to\{1,\ldots,n\}$. For $n>1$ and $\pi\in S_n$ define the neighboring number $N_n(\pi)$ as the minimum distance of $\pi$-neighbors, or more formally: $$N_n(\pi) = \min \big(\big\{|\pi(k)-\pi(k+1)|:k\in\{1,\ldots,n-1\}\big\}\cup \big\{|\pi(1) - \pi(n)|\big\}\big).$$
For $n>1$ let $E_n$ be the expected value of the neighboring number of a member of $S_n$.
Question. Do we have $\lim\sup_{n\to\infty}\frac{E_n}{n} > 0$?

REPLY [4 votes]: Some quick simulation leads me to conjecture that $\lim_{n \to \infty} E_n$ exists and is around $1.15$.  
The number of permutations in $S_n$ with $N_n(\pi) = 1$ is https://oeis.org/A129535. It appears again from numerical evidence that $\lim_{n \to \infty} P(N_n > 1) = e^{-2}$, where $N_n$ is chosen uniformly at random from $S_n$.  This is consistent with heuristics.  Namely, for $k = 1, 2, \ldots, n-1$, let $X_k = |\pi(k) - \pi(k+1)|$ be a random variable, where $\pi$ is a permutation on $[n]$ chosen uniformly at random.  Then $P(X_k = 1) \approx 2/n$ and the $X_k$ are approximately independent, so $P(N_n > 1) = P(X_1 > 1, X_2 > 1, \ldots, X_{n-1} > 1) \approx (1-2/n)^{n-1} \approx e^{-2}$.
Furthermore $P(N_n > 2) = P(X_1 > 2, X_2> 2, \ldots, X_{n-2} > 2) \approx (1-4/n)^{n-1} \approx e^{-4}$ and similarly $P(N_n > k) \approx e^{-2k}$.  So $E_n$ should be a geometric random variable with $p = 1 - e^{-2}$ and we should have $\lim_{n \to \infty} E_n = 1/(1-e^{-2}) \approx 1.1565$.