I am going through the Book of Proof by Richard Hammack, and in the Chapter on Proof by contradiction, I came across the following exercise:
Prove that if $a,b\in\mathbb{Z}$, then $a^{2}-4b-3\neq 0$ by contradiction.
My solution went on a different aproach as the solution provided in the end of the book, so I would like some help to evaluate if it is correct, and tips for improvement.
My proof was as following:
For the sake of contradiction, suppose $a,b\in\mathbb{Z}$ and $a^{2}-4b-3= 0$. Hence, $a^{2}-3=4b$, which means $a^{2}\equiv 3(\textrm{mod }4)$.
Note that $a$ is either even or odd.
Suppose $a$ is even. Thus, there is an integer $k_1$ such that $a=2k_1$. So, $a^{2}=4k_1^{2}$, which means $a^{2}\equiv 0(\textrm{mod }4)$, a contradiction. Hence, $a$ is not even. Therefore, $a$ is odd.
Since $a$ is odd, there is an integer $k_2$ such that $a=2k_2+1$. Hence, $a^{2}=(2k_2+1)^{2}=4k_2^2+4k_2+1=4(k-2^{2}+k_2)+1$. Thus $a^{2}\equiv 1(\textrm{mod }4)$, a contradiction. Thus, $a^{2}-4b-3\neq 0$. $\blacksquare$
Is this correct? Any tips on improving?