suivant: Product of disjoint cycles
précédent: Random permutation : randperm
Table des matières
permu2cycles takes as argument a permutation.
Decomposition as a product of disjoint cycles :
permu2cycles returns its decomposition as a product of
In the answer the cycles of size 1 are omitted, except if n - 1 is a
fixed point of the permutation (this is required to find the value of
n from the cycle decomposition).
giac documentation written by Renée De Graeve and Bernard Parisse