AC: PermutationSequence

Math.