With the upward-starting convention, an alternating permutation of has one-line entries satisfyingFor , the possibilities are and . Reversing every inequality gives the downward-starting convention; complementing each label by is a bijection between the two conventions.
These permutations are counted by the Euler zigzag numbers for one fixed initial direction. For , counting both directions doubles that count. For lengths zero and one, the inequality condition is vacuous, so the direction classes coincide instead.
Alternating refers to the succession of inequalities, not to membership in the alternating group. For example, is upward alternating but is an odd permutation: it swaps two labels. This distinguishes an order pattern from permutation parity.
Articles by others on the same topic
An alternating permutation is a specific type of permutation of a set of numbers where the elements alternate between being greater than and less than their neighbors.