\(y'=3\left(m-1\right)x^2+6mx+4m+4\)
Để hàm số đã cho đồng biến trên R \(\Leftrightarrow y'\ge0\) \(\forall x\in R\)
\(\Leftrightarrow\left\{{}\begin{matrix}3\left(m-1\right)>0\\\Delta'=\left(3m\right)^2-3\left(m-1\right)\left(4m+4\right)\le0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}m>1\\-3m^2+12\le0\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}m>1\\\left[{}\begin{matrix}m\ge2\\m\le-2\end{matrix}\right.\end{matrix}\right.\) \(\Rightarrow m\ge2\)
\(\Rightarrow m=\left\{2;3;4...2019\right\}\Rightarrow\) có \(2019-2+1=2018\) giá trị nguyên