I am new to GAP ( - Groups, Algorithms, Programming - a System for Computational Discrete Algebra).
I want to calculate the length of a cycle $(i_1,i_2,\dots,i_k)\in S_n$. (I want to get $k$ from $(i_1,i_2,\dots,i_k)\in S_n$.)
Please tell me how to calculate the length of a cycle $(i_1,i_2,\dots,i_k)\in S_n$ in GAP?
Length(1,2,3);
didn't work.
Order(1,2,3);
worked.
But is this a right way to calculate the length of a cycle in GAP?