Question 4Find necessary and sufficient conditions for the function $f(t)=mt^3+nt^2+pt+q$ to have an integer value for every value of $t$.