Let $a$ and $b$ be two polynomials in $\mathbb{Q}[X]$, where $$ a = X^2+X+1 $$ $$ b = X - 1 $$
Show that the $\gcd(a, b) = 1$.
I use the euclidean algorithm to compute $\gcd(a,b)$, so I have to perform a long division on $a$ with $b$. This yielded
$$ a = (X+2)(X-1)+3$$ so $q = (X+2)$, and $r= 3$. Since my remainder is still not equal to $0$, I have to continue, but now I need to compute the $\gcd(b,r) = \gcd(X-1, 3)$.
After applying the long division again, I get a remainder of $0$ and the qoutient being equal to $\frac{1}{3}X - \frac{1}{3}$. Therefore my answer is the last non zero remainder, which is 3. Clearly I am making a mistake somewhere or missing some steps at the end of my calculation.