[math-fun] Factoring perm polys