[#P2536] Monotonicity of consecutive-adjacency avoidance in random permutations
Problem. Let \(p_n\) be the probability that a uniformly random permutation \(\pi\) of \(\{1,\ldots,n\}\) satisfies \(|\pi_{i+1}-\pi_i|\ne1\) for every \(i\). Is \(p_{n+1}>p_n\) for every \(n\ge4\)?
1Context
The limit is expected to reflect a Poisson law for the roughly two appearances of forbidden adjacencies, but an asymptotic limit alone does not settle every finite comparison.
2Definitions
Definition 1 (Adjacency refers to neighboring positions in the one-line permutation). Adjacency refers to neighboring positions in the one-line permutation.
Definition 2 (The forbidden unordered value pairs). The forbidden unordered value pairs are \(\{1,2\},\ldots,\{n-1,n\}\).
3What counts as a solution
- Prove strict monotonicity for every n at least 4, or give a specific n at least 4 with \(p_{n+1}\le p_n\).
1The answerSupportednot Lean-verified
Answer (Direct answer and proof for Monotonicity of consecutive-adjacency avoidance in random permutations). For every integer n at least 4, p_(n+1) is strictly greater than p_n, so the avoidance probability is strictly increasing.[1]
Resolution argument
Let \(a_n\) count the admissible permutations and put \(p_n=a_n/n!\). The exact recurrence in the companion claim is \[ a_n=(n+1)a_{n-1}-(n-2)a_{n-2}-(n-5)a_{n-3}+(n-3)a_{n-4}\qquad(n\geq4), \] with \(a_0=a_1=1\) and \(a_2=a_3=0\).
Set \(\Delta_n=p_n-p_{n-1}\). Dividing the recurrence by \(n!\), subtracting \(p_{n-1}\), and collecting terms gives \[ n\Delta_n=\Delta_{n-1}+ \frac{(n-2)p_{n-2}-(n-5)p_{n-3}+p_{n-4}} {(n-1)(n-2)}. \tag{1} \] The numerator in the fraction has the useful form \[ 3p_{n-3}+p_{n-4}+(n-2)(p_{n-2}-p_{n-3}). \tag{2} \]
Now \(p_2=p_3=0\) and \(p_4=2/4!=1/12\), so \(\Delta_4>0\). For \(n=5\), the comparison needed in (2) is \(p_3\geq p_2\). At every later step it follows from the preceding induction cases. All probabilities are nonnegative, so (2) is nonnegative. Equation (1) then gives \(\Delta_n>0\) from \(\Delta_{n-1}>0\). Induction proves \(p_n>p_{n-1}\) for every \(n\geq4\). Replacing \(n\) by \(n+1\) answers the stated question: \[ \boxed{p_{n+1}>p_n\quad\text{for every }n\geq4.} \]
1Records
Notes and companion material
Original intake status. SOLVED in the reviewed TheoremDB packet as of 2026-08-01. Riordan's four-term recurrence yields a positive recurrence for the first differences of a(n)/n!.
- The attractive route inserts n+1 into a good permutation of size n.
- The obstruction is that deleting n+1 can create a new forbidden adjacency across the deletion site, so the obvious insertion-deletion coupling does not compare the events cleanly. Record any refined coupling by the two exposed neighbors.
- Fresh exact-title, parameter, source, and corpus searches were completed on 2026-08-01.
Recorded example 1. There are 2 good permutations at n=4 and 14 at n=5.
Computational notes
- Complete permutation enumeration gave good counts 2, 14, 90, 646, 5242, 47622, and 479306 for \(4\le n\le10\). Dividing by n! gives approximately 0.0833333, 0.116667, 0.125, 0.128175, 0.130010, 0.131233, and 0.132084, strictly increasing on this checked range.
How the 4 records connect
ProblemMonotonicity of consecutive-adjacency avoidance in random permutations
2See also
How to cite
TheoremDB contributors, “Monotonicity of consecutive-adjacency avoidance in random permutations,” TheoremDB research memory, snapshot of July 24, 2026. https://theoremdb.org/statements/permutation-no-consecutive-adjacency-monotoneThis page as plain text: permutation-no-consecutive-adjacency-monotone.md
This problem includes 4 records joined by 7 typed links, sourced from oeis.org[6], current as of July 24, 2026.
1Lean verification
Lean formalization needed
An informal proof is recorded. A Lean formalization still needs to be attached. TheoremDB Researcher can start from the exact statement and pinned world.
Open TheoremDB ResearcherThe prefilled request prepares the target and checks drafts. It submits the accepted proof and polls verification through any packet-review handoff.
1References
- John Riordan, “A Recurrence for Permutations without Rising or Falling Successions”. The Annals of Mathematical Statistics 36(2) (1965), 708-710. DOI 10.1214/aoms/1177700181. Pages 708-710, recurrence and derivation. ↗journal article · primary source · version of record · checked 2026-08-01Source use: original summary.This is the primary or maintained source used to check the formulation, neighboring results, and current research boundary.Also cited at Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations.For Monotonicity of consecutive-adjacency avoidance in random permutations, the reviewed source scope is Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations.. The packet makes no inference beyond that cited scope.
- Philippe Flajolet and Robert Sedgewick, Analytic Combinatorics, Cambridge University Press, 2009. page 373. ↗book · secondary source · PDF checked 2026-08-01 · checked 2026-08-01Source use: citation only.For Monotonicity of consecutive-adjacency avoidance in random permutations, the reviewed source scope is page 373. The packet makes no inference beyond that cited scope.
- Yiting Li, “Ménage Numbers and Ménage Permutations,” Journal of Integer Sequences 18 (2015), article 15.6.8; arXiv:1502.06068v1. definitions and enumerative results for ménage permutations. ↗preprint · secondary source · arXiv:1502.06068v1 · checked 2026-08-01Source use: citation only.For Monotonicity of consecutive-adjacency avoidance in random permutations, this source describes a different permutation-restriction family that the source review checked and excluded; it is analogy only.
- Morton Abramson and W. O. J. Moser, “Permutations without Rising or Falling $\omega$-Sequences”. The Annals of Mathematical Statistics 38(4) (1967), 1245-1254. DOI 10.1214/aoms/1177698793. Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations. ↗journal article · primary source · version of record · checked 2026-08-01Source use: citation only.For Monotonicity of consecutive-adjacency avoidance in random permutations, the reviewed source scope is Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations.. The packet makes no inference beyond that cited scope.
- Anders Claesson, “From Hertzsprung’s problem to pattern-rewriting systems”. Algebraic Combinatorics 5(6) (2022), 1257-1277. DOI 10.5802/alco.202. Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations. ↗journal article · secondary source · version of record · checked 2026-08-01Source use: citation only.For Monotonicity of consecutive-adjacency avoidance in random permutations, the reviewed source scope is Full journal article relevant to Monotonicity of consecutive-adjacency avoidance in random permutations.. The packet makes no inference beyond that cited scope.
- Packet source. OEIS Foundation Inc., The On-Line Encyclopedia of Integer Sequences, A002464, “Hertzsprung's problem: permutations without rising or falling successions”, entry checked 2026-08-01. OEIS A002464 definition, formulas, and references; Riordan (1965); Flajolet and Sedgewick, Analytic Combinatorics (2009), page 373. ↗reference database · reference source · web version checked 2026-08-01 · checked 2026-07-24Source use: citation only.Records the exact sequence, recurrence, and generating function used to identify and cross-check the Hertzsprung enumeration.Also cited at Inline CPython source below, executed on 2026-07-24.
Original monotonicity question for a canonical forbidden-adjacency event.