So, that's my first time attempting a problem of this kind. I followed the steps of the Euclidean algorithm and got the following:
By long division for polynomials we have:
$x^6+x^4+x^3+x^2+x+1$ = $x(x^5+2x^3+x^2+x+1)+(-x^4+1)$
then we repeat the steps to get:
$x^5+2x^3+x^2+x+1$ = $-x(-x^4+1) + (2x^3+x^2+2x+1)$
I'm fine up to that point. But then when I moved on, I saw that my solution is different than the correct answer. Basically I divided $-x^4+1$ by $2x^3+x^2+2x+1$
but I got that: $-x^4+1$ = $-x/2(2x^3+x^2+2x+1) + x^3/2 + x/2 + 1$
whereas the solution says
$-x^4+1$ = $-(x/2 + 1/4) (2x^3+x^2+2x+1) + (3/4 x^2 + 3/4)$
How do they obtain that result? and where am I going wrong?