Hello, PermListList may be what you look for: gap> list1:= [ 34, 31, 29, 25, 28, 26 ];; gap> list2:= [ 31, 34, 25, 29, 28, 26 ];; gap> PermListList(list1,list2); (1,2)(3,4) Best regards, Marc