Permutations in groups of 3