X ^ n + 1-2x ^ n + x ^ n-1, (n is greater than 1 and is a positive integer) factorization

X ^ n + 1-2x ^ n + x ^ n-1, (n is greater than 1 and is a positive integer) factorization

The original formula = x ^ (n-1) [x ^ 2-2x + 1) = x ^ (n-1) (x-1) ^ 2