Question 1205094
Determine the length of the cycle in a given permutation<pre>
a.{{{matrix(2,10,
"[",1,2,3,4,5,6,7,8,"]",
"[",4,1,5,6,7,8,3,2,"]")}}}

First we determine its orbits:
1->4->6->8->2->1 so the first orbit is 
[1 4 6 8 2]

3->5->7->3 so the second orbit is
[3 5 7]

All the numbers 1-8 are used so that's all the orbits. There are 2 orbits.

{{{(matrix(5,1,The,length,of,the,cycle))}}}{{{""=""}}}{{{(matrix(7,1,
the, number, of, elements, in, the, permutation))}}}{{{""-""}}}{{{(matrix(8,1,
the, number, of, orbits, contained, in, the, permutation))}}}

Therefore 

{{{(matrix(5,1,The,length,of,the,cycle))}}}{{{""=""}}}{{{8}}}{{{""-""}}}{{{2}}}{{{""=""}}}{{{6}}}


b. [1 2 3 4 5 6 7 8] 
   [3 6 5 1 4 8 2 7]

Do this one the same way.

Edwin</pre>