I was trying to prove that $\mathbb{Z}[x]$ is noetherian, so every ideal in $\mathbb{Z}[x]$ is finitely generated.
I feel that all ideals in $\mathbb{Z}[x]$ are essentially generated by two elements - a polynomial and the smallest integer belonging to the ideal.
Let $a(x) \in I$, where $I$ is an ideal in $\mathbb{Z}[x]$, be a polynomial whose degree is the least. Let $b(x)$ be another polynomial whose degree is more than $a(x)$ then $r(x)=a(x)-b(x)q(x) \in I$ becomes the polynomial of the smallest degree (we first assume that $r(x)$ is a non constant polynomial). So $r(x)$ has to be zero.
If $r(x)$ is a constant in $\mathbb{Z}$ and let $r $ be the least positive integer in $\mathbb{Z}[x]$. If $r(x) \in (r)$ then we are done, or let $d=(r(x),r)$ then I will be generated by $(a(x),d)$. What I think is that I am going wrong in the last paragraph. Can someone point out my mistake.