Find all integers $n$ such that $\frac{3n^2+4n+5}{2n+1}$ is an integer. Find all integers $n$ such that $\frac{3n^2+4n+5}{2n+1}$ is an integer.
Attempt:
We have
\begin{equation*}
\frac{3n^2+4n+5}{2n+1} = \frac{4n^2+4n+1 - (n^2-4)}{2n+1} = 2n+1 - \frac{n^2-4}{2n+1}.
\end{equation*}
So, we must have $(2n+1) \mid (n^2-4)$, so $n^2-4 = k(2n+1)$, for some $k \in \Bbb Z$. But, I did not be able to find $n$ from here.
Any ideas? Thanks in advanced.

Write $k=2n+1$ then $n=(k-1)/2$ so $$3n^2+4n+5= {3(k^2-2k+1) + 8(k-1)+20\over 4} ={3k^2+2k+15\over 4}$$ and thus $$4k\mid 3k^2+2k+15\implies k\mid 15$$
Now you have only few values of $k$...
