Changing permutations to combinations, which is important for getting every possible sequence