I was working my way through some number theory problems , when I came across the following question :
Find all solutions to the equation $a^2 + b^2 = 4c + 3$
My Solution (partial) :
- If $a$ is odd then it is of the form $4k+1$ or $4k+3$ , so remainder is 1
- If $a$ is even then remainder is $0$
- How does this help me ?
I am all thumbs , can someone help me out ? Maybe a hint ...
Here I'm using the conventional modular arithmetic notation $a\equiv b\pmod {n}\Leftrightarrow n\mid a-b$, or i.e. $a,b$ leave the same remainders when divided by $n$.
If $a$ is odd, then $a=4k\pm 1$ and $a^2\equiv 16k^2\pm8k +1\equiv 1\pmod{4}$.
If $a$ is even, then $a=2k$ and $a^2\equiv 4k^2\equiv 0\pmod {4}$.
So $a^2\equiv \{0,1\}\pmod {4}$ (same for $b$) and so $a^2+b^2\equiv \{0,1,2\}\pmod {4}$
The above holds for any integers $a,b$. Now, coming back to the problem we see that it is given that $a^2+b^2\equiv 4c+3\equiv 3\pmod {4}$, which is impossible by the above properties of integers.