I am required to prove that if $a$, $b$, and $c$ are integers such that $a^2 + b^2 = c^2$, then at least one of $a$ and $b$ is even. A hint has been provided to use contradiction.
I reasoned as follows, but drew a blank in no time:
Let us instead assume that both $a$ and $b$ are odd. This means that $a^2$ and $b^2$ are odd, which means that $c^2$ is even. Thus, $c$ is even. But this is not a contradiction -- it's the sum of two odd numbers, after all.
Suppose that $a$ and $b$ are both odd, and proceed as you did to conclude that $c$ is even. As $a$ is odd, we may write $a = 2k + 1$ for some $k$; similarly, $b = 2m + 1$. As $c$ is even, write $c = 2n$. This leads to
$$(2k + 1)^2 + (2m + 1)^2 = (2n)^2$$
or upon expanding and regrouping,
$$4(k^2 + k + m^2 + m) + 2 = 4n^2$$
Now the right side is divisible by 4, as is the first term on the left - but $2$ is not divisible by $4$. Do you now see how to derive a contradiction?