Counting alternating permutations with restricted prefix and suffix
Ran Pan, Jeffrey Remmel
TL;DR
This work develops a systematic framework for counting alternating permutations with restricted prefixes and suffixes by leveraging Hasse diagrams and generating functions. It derives explicit formulas and exponential generating functions for prefixes of lengths 3 and 4, including patterns 231, 132, 1324, 1423, and 3412, and studies joint prefix-suffix restrictions via inclusion-exclusion. Core results include closed-form EGFs such as $f^{231}(x)=(x-1)(\sec x+\tan x)$, $f^{132}(x)=(2-x)(\sec x+\tan x)$, and various length-4 cases, along with asymptotic comparisons among patterns. The methodology generalizes to longer prefixes/suffixes and sets of patterns, providing a foundation for broader enumerative investigations of constrained alternating permutations and related statistics.
Abstract
In this paper, we use Hasse diagrams and generating functions to count alternating permutations with restricted prefix and suffix of lengths 3 and 4. In other words, for an alternating permutation $σ=σ_1σ_2σ_3\cdotsσ_{n}\in S_{n}$, we restrict length-3 prefixes $σ_1σ_2σ_3$ to follow certain patterns, such as $231$ and $132$, or follow certain restrictions such as $σ_2 \geq \max\{σ_1,σ_3\}+2$, similarly for prefixes of length 4. We also study the enumeration of alternating permutations with restrictions on both prefix and suffix.
