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
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 σ).
If Mπ and Mσ are the permutation matrices corresponding to π and σ, respectively, then the permutation matrix corresponding to the skew sum is given by
and the permutation matrix corresponding to the direct sum is given by