\(q\left(x\right)=x^2+8x+12=0\Leftrightarrow\left(x+2\right)\left(x+6\right)=0\Leftrightarrow\orbr{\begin{cases}x=-2\\x=-6\end{cases}}\)
\(f\left(x\right)=\left(x+1\right)\left(x+3\right)\left(x+5\right)\left(x+7\right)+9\)
\(f\left(x\right)=q\left(x\right)p\left(x\right)+ax+b\)
suy ra
\(\hept{\begin{cases}f\left(-2\right)=-2a+b\\f\left(-6\right)=-6a+b\end{cases}}\Leftrightarrow\hept{\begin{cases}-2a+b=-6\\-6a+b=-6\end{cases}}\Leftrightarrow\hept{\begin{cases}a=0\\b=-6\end{cases}}\)
Vậy số dư cần tìm là \(-6\).