The variance of gap-alternating subsequences of random permutations
Loading original first page…
Abstract
Let A(n, k) be the maximum length of a subsequence of a uniformly random permutation of {1, …, n} that alternates down, up, down, … with every step of size at least k. Whenever n − k tends to infinity, the variance of A(n, k) is asymptotic to n v(k/n), and its standardized value converges to a standard normal law. For 0 ≤ a < 1, the variance rate is v(a) = (1 − a)(92/315 − 4t⁵/15 + 8t⁶/45 − 8t⁷/315), where t = max(1 − 2a, 0)/(1 − a). The rate is largest at a gap density of approximately 0.195887. For k ≥ n/2, A(n, k) has exactly the distribution at order 2(n − k) and gap n − k. If k/n tends to one and n − k tends to infinity, the variance is asymptotic to (92/315)(n − k). When n − k is fixed the distribution stays fixed. For n ≥ 6 and 1 ≤ k − 1 ≤ n/2 we prove the uniform expansion Var A(n, k) = 8n/45 − 13/180 + 4(k − 1)/15 + O(k²/n). At gap two the exact variance is 8n/45 + 7/36 − 16/(15n) for n ≥ 6. These results correct the variance conjectured by Çiçeksiz, Demirci and Işlak. At n = 4 and k = 2 the variance is 23/36, and for every fixed k ≥ 2 it exceeds their conjectured 8(n − k)/45 + 19/180 by 4(k − 1)/9 + o(1). Their formula 2(n − k + 2)/45 for the variance of the number of k-peaks also fails whenever 2 ≤ k < n ≤ 8 and for every fixed k ≥ 2 at sufficiently large n. The exact variance at gap two is 2n/45 + 1/9 − 4/(15n) for n ≥ 6. The method compares a random permutation with the independent uniform marks of Pak and Pemantle and derives the finite-population correction due to the distinctness of ranks.
Read the full paper in the original PDF.
Edition files
- Gap_Alternating_Subsequence_Variance_Edition_2.pdf367.4 KiB · pdf
SHA-256
82fb540f74ff8da34e9853f67671bd5e15c7f679a084be37b8e497b43dde9566 - Gap_Alternating_Subsequence_Variance_Edition_2_Source_and_Verification.zip386.5 KiB · package
SHA-256
ce11c9a78c02e7a84024133b25fb219e4ba8387fada3571b968cff3bdd9f1a6b
Available editions
Research details
- Subjects
- Mathematics · Combinatorics
- Keywords
- alternating subsequence, k-alternating subsequence, k-peak, random permutation, variance, central limit theorem
- Manuscript date
- 2026-11-30
- DOI
- 10.5281/zenodo.24667935
- Reader reuse
- CC BY 4.0
Anyone may share and adapt this work, including commercially, if they credit the authors.
Scope
Variance asymptotics and a central limit theorem when n − k tends to infinity, finite-gap-deficit laws, a uniform small-gap expansion and the exact gap-two variance for longest gap-alternating subsequences of random permutations.
Disclosures
OpenAI Codex and Anthropic Claude assisted with derivations, proof development, computations, source checks and independent internal review. Scott Schubr directed the research and is responsible for the content.
Reproduction
Edition 2 corrects Corollary 1.3(3), the excluded pair in the proof of Proposition 2.2, and the statement of the variance asymptotic in the abstract. The source and verification package contains the manuscript PDF, LaTeX source, reproducibility instructions, program outputs and checksums.