Alternating Numbers in Permutations
- Alternating numbers are a permutation statistic that counts the number of maximal consecutive monotone segments in a permutation.
- The study includes recurrence relations and explicit generating polynomials that relate alternating runs to classical descent and peak statistics.
- The framework connects alternating runs with derivative polynomials and central factorial numbers, deepening insights into combinatorial enumeration.
Searching arXiv for the primary permutation-statistic usage of “alternating number” and closely related work. Searching arXiv for the zigzag-number usage of “alternating numbers” to distinguish terminology. In permutation combinatorics, an alternating number is a run statistic: for a permutation written in one-line notation, it is the number of alternating runs, equivalently the number of maximal consecutive monotone segments, or one plus the number of interior changes of direction. If denotes the number of permutations of with alternating number , then the generating polynomial records the full distribution of this statistic on . In this sense, the alternating number is a distributional companion to descents, peaks, and related permutation statistics (Ma, 2011).
1. Definition and combinatorial interpretation
Let be a permutation of . A change of direction at a position , where , occurs if
or
0
These two cases are respectively a peak and a valley. If there are exactly 1 such positions, then 2 has 3 alternating runs. Equivalently, the plot of 4 decomposes into 5 maximal consecutive monotone pieces, and each change of direction starts a new run.
This definition makes the alternating number a natural measure of oscillation in a permutation. A monotone permutation has one alternating run, whereas a highly oscillatory permutation has many. The counting function
6
packages this statistic over the whole symmetric group, and the polynomial
7
encodes its distribution (Ma, 2011).
2. Recurrences and relation to descents
The classical recurrence, attributed to André, is
8
for 9, with initial conditions
0
At the polynomial level this becomes
1
with
2
The alternating-number distribution is also tied to the descent distribution. If 3 is the number of descents of 4, then the Eulerian polynomial is
5
Ma recalls the David–Barton identity, reformulated by Knuth,
6
This identifies alternating runs as a statistic transform of descents, rather than an isolated enumeration problem. It places 7 within the classical Eulerian framework of permutation statistics (Ma, 2011).
3. Explicit formula via derivative polynomials
A central result of Ma is an explicit representation of 8 in terms of derivative polynomials. Define
9
These derivative polynomials satisfy
0
and have degree 1. Writing
2
one has the parity relation
3
hence
4
For 5, Ma proves
6
Using the parity expansion of 7, this becomes
8
If 9 denotes the coefficient of 0 in 1, then
2
and therefore
3
The derivation proceeds through Carlitz’s trigonometric generating function, Taylor expansion of 4, coefficient comparison, and an algebraic change of variables from trigonometric to rational form. The resulting formulas replace recurrence-based computation with an explicit coefficient formula in terms of derivative-polynomial coefficients and binomial sums (Ma, 2011).
4. Central factorial numbers, peaks, and signed permutations
Subsequent work places alternating runs inside a broader algebraic framework built from central factorial numbers. Let 5 denote the central factorial numbers of even index. Then for 6,
7
and
8
These formulas correct Carlitz’s earlier central-factorial expressions and make the divisibility of 9 by powers of 0 transparent.
The same paper connects alternating runs with peak polynomials through
1
where 2 is the interior peak polynomial. It also gives parallel formulas for left peak polynomials in terms of odd-index central factorial numbers 3, and extends the theory to up signed permutations in the hyperoctahedral group 4, where alternating run polynomials 5 are expressed באמצעות the same 6-family.
A further consequence is an explicit representation of the derivative polynomials of 7 and 8 in terms of 9 and 0. This suggests that alternating runs, peaks, left peaks, and trigonometric derivative polynomials are different manifestations of a shared central-factorial structure (Fang et al., 2022).
5. Small values and structural properties
For small 1, the first alternating-run polynomials are
2
3
4
| 5 | 6 | Nonzero values |
|---|---|---|
| 2 | 7 | 8 |
| 3 | 9 | 0 |
| 4 | 1 | 2 |
| 5 | 3 | 4 |
For 5, the permutations 6 and 7 have one alternating run, while 8 each have two alternating runs. Thus 9 and 0.
The structure of 1 reflects deeper regularities. Ma records that Bóna–Ehrenborg showed 2 has a root at 3 of multiplicity 4, and formula
5
makes the divisibility by 6 visible. In probabilistic terms, this distribution describes how many monotone segments a random permutation decomposes into; the explicit formulas suggest asymptotic analysis of the mean and variance, although that direction is not developed in the short note (Ma, 2011).
6. Terminology and related but distinct usages
The phrase alternating number is not unique across combinatorics. A different and well-established usage concerns the alternating (zigzag) numbers 7, which count ascending alternating permutations
8
and have exponential generating function
9
Their first values are
0
These are the classical Euler zigzag numbers, also described as absolute Euler numbers on even indices and by a Bernoulli-number formula on odd indices (Pain, 17 Feb 2026).
This object is distinct from the alternating number 1 counted by 2. The zigzag number 3 counts a restricted class of permutations with a prescribed up–down pattern, whereas 4 distributes a run statistic over all permutations of size 5. Related literature on alternating permutations often uses “alternating” in the up–down or down–up sense. For example, Euler numbers 6 count up–down permutations and admit refinements by the relative positions of 7, 8, and 9 (Kobayashi, 2019). The distinction between alternating permutations and alternating runs is therefore terminologically essential: the former specifies a global inequality pattern, while the latter measures how often the monotonicity direction changes inside an arbitrary permutation.