Gapplet

Let Mr be the monoid of all maps {1,...,r} -> {1,...,r}. If you input an element, the submonoid of Mr that it generates is determined. In particular, the indices k, n are computed for which this cyclic submonoid is isomorphic to Ck,n.

Input a list, representing an element of Mr
e.g., [1,4,3,4,5,1] in case r = 6
</COMMENT>
 
</COMMENT>
 
The numbers k, n such that the submonoid generated by the element is isomorphic to Ck,n.
</COMMENT>