Prove that:
If $x$ is an integer in the form $x=n^2+2$ for some integer $n$, then $x$ can also be expressed in the form of $4m+2$ or $4m+3$ for some integer $m$.
May I know what is the possible approach for this proof?
Prove that:
If $x$ is an integer in the form $x=n^2+2$ for some integer $n$, then $x$ can also be expressed in the form of $4m+2$ or $4m+3$ for some integer $m$.
May I know what is the possible approach for this proof?
Note that for any two $a, b\in \Bbb N$, we can find a $ q\in\Bbb N_0, r\in\{0,\ldots,b-1\}$ such that $a=qb+r$.
As a result of this important theorem, for any integer $n$ we have that $n=2k$ or $n=2k+1$, and also that $n=3k$ or $n=3k+1$ or $n=3k+2$, and so on and so forth. $k$ is, of course, an integer in every case.
Number theory proofs very often, if not almost always, rely on splitting the integers into groups in this fashion and proving that each case works. In this case, if we use that $n=2k$ or $n=2k+1$, we can see that $$(2k)^2+2=4k^2+2=4m+2 \text{ (where $m=k^2$)}$$ and $$(2k+1)^2+2=4k^2+4k+3=4m+3\text{ (where $m=k^2+k$)}$$