I have a small hitch in showing $(3,x^3-x^2+2x-1)$ is not principal in $\mathbb{Z}[x]$. Towards the contrary, I suppose $(3,x^3-x^2+2x-1):=(3,f)=(g)$ is principal. Then $3\in (g)$, so $3=gh$ for some $g,h\in\mathbb{Z}[x]$. Thus $g,h$ must be constant, and $g\mid 3$, so $g=1,3$. But $g$ cannot be $3$, since $f\neq 3p$ for any $p\in\mathbb{Z}[x]$, since the coefficients are not all divisible by $3$.
If $g=1$, then $(3,f)=\mathbb{Z}[x]$. I don't think this is true, but I don't know how to make it rigorous. I tried supposing $1=pf+3r$ where $p,r\in\mathbb{Z}[x]$ to reach a contradiction and show that $1\notin(3,f)$, but I don't how to more formally prove it. What can I do? Thanks.