Properties and Relations (2)
FoataTransform produces a permutation Φ(p) whose number of descents matches the number of excedances in the original permutation p.
Generate a random permutation:
Apply FoataTransform onto the given permutation:
Verify the equidistribution property between two permutations, EXC(w)=DES(Φ(w)):
The indices of excedance from the original permutation and the descendent of the transformed permutation:
The number of elements are the same in each list:
Apply Foata transformation to all permutations in each symmetric group with n elements:
Count the number of permutation cycles by their length in each permutation group:
Largest cycle in each symmetric group:
Tabulate the occurrence of permutation cycle in each symmetric group:
Possible Issues (1)
The input must be a valid permutation of {1,2,3,…,n}, including all elements and no duplication. Otherwise the function returns unevaluated: