I can show that $(x^m-1, x^n-1) \subseteq (x^{(m,n)} - 1)$, but I am stuck with the other inclusion. i.e. showing there exist polynomials $p, q \in \mathbb{Z}[X]$ such that $p(x)(x^m-1) + q(x)(x^n-1) = x^{(m,n)}-1$.
I can't use Bezout's identity because $\mathbb{Z}[X]$ is not a PID.
I computed some examples but I can't see a general patttern.
e.g.
\begin{align} (x^5-1) - (x^3 + x)(x^2-1) &= x-1 \\ (x^2-1)(x^5-1) -(x^4+x^2+x)(x^3-1) &= x-1 \\ (x^4-1) -x^2(x^2-1) &= x^2-1 \end{align}
Thanks in advance.