How can we show that as groups $\mathbb Z[x] \times \mathbb Z \cong \mathbb Z[x] \times \mathbb Z \times \mathbb Z$?
I tried coming up with an isomorphism but I am stuck. One map I tried was $(p(x), n) \mapsto (p(x), n, \deg(p(x)))$, but this is not a homomorphism.
Hint: Use the fact that$$\begin{array}{ccc}\mathbb{Z}[x]\times\mathbb Z&\longrightarrow&\mathbb{Z}[x]\\\bigl(p(x),k\bigr)&\mapsto&k+xp(x)\end{array}$$is a group isomorphism.