Factorize the polynomial $x^7-7x^6-x^5+7x^4+x^3-7^2-x+7$
So, I have to factorize this in $\Bbb R[x]$ and $\Bbb C[x]$, but when I'm trying to apply the Ruffini schema, I don't know how to put the coefficients in the cuadratic position.
I must to solve the $7^2$ and sum with the lineal term? or put the $7$ as a cuadratic term?
I think the polynomial should be $p(x)=x^7-7x^6-x^5+7x^4+x^3-7x^2-x+7$.
The possible rational roots of $p$ are $\pm7,\pm1$. Three of them are roots of $p$. Now divide $p(x)$ with $(x-1)\ldots$ to find the factorization over $\mathbb Q$. To find the factorization over $\mathbb R$ use that $x^4+1=(x^2+1)^2-2x^2$. To find the factorization over $\mathbb Q$ find the roots of $x^4+1=x^4+e^{\pi \rm{i}}$.