analyzingpermutations