Create Permutation Sequence (Math Solution)