Gapplet

Let Sn be the monoid (actually, a group) of all invertible maps {1,...,n} -> {1,...,n}. Write

m =
n
2
.
Then there is a morphism f : Sn -> Sm  given by

f(g)({i,j}) = {g(i),g(j)}.

Later, we shall come back to this morphism. Here, we describe the image under f of an element you input.

Input a list, representing an element of Sn
e.g., [1,4,3,5,6,2] in case n = 6
</COMMENT>
 
Determine its image in Sm
</COMMENT>
 
</COMMENT>