With $n\in \mathbb Z$, what values can $\gcd(n^2-n+1,n+2)$ take?
My attempt:
I have tried to solve the Diophantine equation: $$\gcd(n^2-n+1,n+2)=x(n^2-n+1)+y(n+2)$$ but, of course, for every value of $n$ there's an equation. The only thing I can calculate is the $\gcd$ of the two polynomials, but that seems to lead nowhere.