Skew and direct sums of permutations

In combinatorics, the skew sum and direct sum of permutations are two operations to combine shorter permutations into longer ones. Given a permutation "π" of length "m" and the permutation "σ" of length "n", the skew sum of "π" and "σ" is the permutation of length "m" + "n" defined by
and the direct sum of "π" and "σ" is the permutation of length "m" + "n" defined by
Examples.
The skew sum of the permutations "π" = 2413 and "σ" = 35142 is 796835142 (the last five entries are equal to "σ", while the first four entries come from shifting the entries of "π") while their direct sum is 241379586 (the first four entries are equal to "π", while the last five come from shifting the entries of "σ").
Sums of permutations as matrices.
If "M""π" and "M""σ" are the permutation matrices corresponding to "π" and "σ", respectively, then the permutation matrix formula_3 corresponding to the skew sum formula_4 is given by
and the permutation matrix formula_6 corresponding to the direct sum formula_7 is given by
where here the symbol "0" is used to represent rectangular blocks of zero entries. Following the example of the preceding section, we have (suppressing all 0 entries) that
and
Role in pattern avoidance.
Skew and direct sums of permutations appear (among other places) in the study of pattern avoidance in permutations. Breaking permutations down as skew and/or direct sums of a maximal number of parts (that is, decomposing into indecomposable parts) is one of several possible techniques used to study the structure of, and so to enumerate, pattern classes.
Permutations whose decomposition by skew and direct sums into a maximal number of parts, that is, can be built up from the permutations (1), are called separable permutations; they arise in the study of sortability theory, and can also be characterized as permutations avoiding the permutation patterns 2413 and 3142.
Properties.
The skew and direct sums are associative but not commutative, and they do not associate with each other (i.e., for permutations "π", "σ" and "τ" we typically have formula_13).
Given permutations "π" and "σ", we have
Given a permutation "ω", define its "reverse" rev("ω") to be the permutation whose entries appear in the opposite order of those of "ω" when written in one-line notation; for example, the reverse of 25143 is 34152. (As permutation matrices, this operation is reflection across a horizontal axis.) Then the skew and direct sums of permutations are related by