Let $P(x) = x^5 + a_1x^4 + a_2x^3+ a_3x^2+ a_4x + 14$
and $Q(x) = x^5 + b_1x^4 + b_2x^3+ b_3x^2+ b_4x + 42$
be polynomials with integral coefficients.
If $P(x)$ and $Q(x)$ have four distinct common rational roots.
Find all possible $Q(x)$.
Please check my answer.
$P(x) = (x-1)(x+1)(x+2)(x+7)(x-1)\Rightarrow Q(x) = (x-1)(x+1)(x+2)(x+7)(x-3)$
$P(x) = (x-1)(x+1)(x-2)(x-7)(x-1)\Rightarrow Q(x) = (x-1)(x+1)(x-2)(x-7)(x-3)$
$P(x) = (x-1)(x+1)(x-2)(x+7)(x+1)\Rightarrow Q(x) = (x-1)(x+1)(x-2)(x+7)(x+3)$
$P(x) = (x-1)(x+1)(x+2)(x-7)(x+1)\Rightarrow Q(x) = (x-1)(x+1)(x+2)(x-7)(x+3)$