I'm working on exercise II.6.1 in Hartshorne and I'm stuck on the following step. I would appreciate some help.
Let $ X $ be a Noetherian integral scheme. Let $ Z $ be a closed subscheme of $\mathbb{P}^n_{\mathbb{Z}} $ of codimension $1$. Then $X\times Z $ is of codimension $1$ in $\mathbb{P}^n_{X}$.
My intuition is to reduce to the affine case by taking an affine open cover of the projective space, but I can't set this up right.