Changing function to generate # of permutations first factorad numbers