I have this really hard problem that I am working on and I just don't seem to get it. The question is: let $n$ be a positive integer; prove that there does not exist any integer $m$ such that $3n^2+3n+7=m^3$.
Please explain in detail otherwise I might not understand. I am also open for any methods that might help. Thank you. Please help.
Hint: Look at the equation modulo $9$.
Details: First we observe that for any $m$, we have $m^3$ is congruent to one of $0$, $1$, or $-1$ modulo $9$. To do this, it is sufficient to find the cubes of $0,1,2,3,4$ modulo $9$, since $(-m)^3\equiv -m^3\pmod{9}$.
Now we calculate $n^2+n$ modulo $3$. It is easy to verify that $n^2+n$ is congruent to $0$ or $-1$ modulo $3$. If $n^2+n$ is divisible by $3$, then $3n^2+3n+7\equiv 7\pmod{9}$. And if $n^2+n\equiv -1\pmod{3}$, then $n^2+n$ is of the shape $3k-1$, and therefore $3n^2+3n+7$ is of the shape $9k+4$, so is congruent to $4$ modulo $9$.
Comparing, we find that $3n^2+3n+7$ can never be congruent to $m^3$ modulo $9$, and therefore the equation $3n^2+3n+7=m^3$ cannot have a solution in integers.
Remark: Studying a Diophantine equation modulo some $q$ can be a useful method to show the equation does not have a solution. However, finding the appropriate modulus can be difficult. In addition, the method need not work. There are Diophantine equations that have no integer solution, but have a solution modulo every $q$.
The modulus $9$ can be useful when we are dealing with cubics, since $x^3$ takes on very few values modulo $9$.