Luminary Research Archive
Luminary Research ArchiveIndependent scholarship
Explore
Luminary Portal

The variance of gap-alternating subsequences of random permutations

Original PDF · First-page preview

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

Available editions

  1. Edition 2 · 2026-11-30
  2. Edition 1 · 2026-11-27

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.

References and related resources

  1. R. A. Çiçeksiz, Y. E. Demirci and Ü. Işlak, The variance and the asymptotic distribution of the length of longest k-alternating subsequences, Discrete Math. Theor. Comput. Sci. 25(1) (2023), paper 12 · references