LMY and YY are mathematics lovers. They like to find and solve interesting mathematic problems together. One day, they found that the polynomial “x^n-1” can be factorized into a large number of long polynomials, although the polynomial “x^n-1” looks simple. They were interested in how to factorize it into irreducible polynomials.
By “irreducible” we mean that it has co-prime coefficients and cannot be further factorized.
Now your task is to help LMY and YY to factorize x^n-1 into several irreducible polynomials over the integers.