I am a little confused if my solution to the problem is correct. I tried to prove this by cases following a similar example where $n$ is negative, however I'm unsure if I'm correct in following this because in this problem, $n$ is positive.
Here's what I've tried to do so far:
Suppose that there exists an integer solution m of the equation $x^2 + x + n =0$ where n is an odd integer. We must observe 2 possible cases:
(i) m is odd and (ii) m is even
When m is odd, that is, there exists $j \in \mathbb{Z}$ such that $m = 2j + 1$.
Given that m is the root of the equation, we have $m^2+m+n = 0$
$\therefore (2j+1)^2 + (2j + 1) +n = 0$
$\therefore(4j^2+4j+1) + (2j+1)+n = 0$
$\therefore 4j^2 + 6j + 2 + n = 0$
$\therefore n = -4j^2 - 6k - 2$
$\therefore n = -2(2j^2 + 6j + 2)$
$\therefore n = -2k , k \in \mathbb{Z}$
This contradicts the hypothesis, since n is even.
I then followed a similar process for the second case, where I suppose that m is even, and I end my proof by concluding that there is no integer solution of the equation $x^2 + x + n = 0 $ when n is odd.
Is my process for this proof correct? Thank you very much in advanced for the help!
Yes, your proof is indeed correct. However, there is a much easier way to solve this problem.
$$x^2+x+n=0\implies x(x+1)=-n.$$
For $x\in \mathbb Z$, $x(x+1)$ is even and therefore, the equation has no integral solution.