Let A,B in $\mathbb{Q}[X]$,A and B are monic polynomials. suppose P=AB $\in$ $\mathbb{Z}[X]$. Prove that A, B $\in\mathbb{Z}[X]$.
What I did : let $a,b \in \mathbb{Z}$ such as $a = min\left\{ k \in \mathbb{Z}, aA \in \mathbb{Z}\right\}$ and $b = min\left\{ k \in \mathbb{Z}, bB \in \mathbb{Z}\right\}$ ( or a = LCM of the denominators of the coefficients of A, same for b).
Then : $abP = aAbB$.
Here, if I have to show that $aA$ and $bB$ are "primitives" (that means $cont(aA)= 1$ and $cont(bB)=1$), then I can end my proof, because that involve a=b=1.
How to show that?
(Notations : if $Q=\sum_{k=0}^n{q_k}X^k$, the content of Q is $cont(Q)=GCD(a_1,a2,...,a_n)$)