Number of values of natural numbers n≥1 such that n3+3n2+7 is also an integer is
We may write
n3+3n2+7=7−7n−3n2+7
So, n3+3n2+7 is an integer if and only if 7n−3n2+7 is an integer.
Now 7n−3n2+7≤7nn2≤7n≤1 if n≥7.
Tabulating the values of 7n−3n2+7 for n=1,2,⋯,6 we get that for n=2 and n=5 only 7n−3n2+7 is an integer being equal to 1.
Thus n2+3n3+7 is the integer 2−1=1 or 5−1=4 when n=2 or n=5 respectively.
Hence two valus of n satisfy the reqiored condition.