I am still new to proofs and just getting some practice in so please be kind. I must use the direct method to prove this claim, as stated in the instructions. Any feedback would be much appreciated. Thanks in advance.
Claim: Prove that for all natural numbers $n, n^2-n$ is even.
Proof attempt: If $n^2-n$ is even, then $n^2-n=2k \Rightarrow n^2=2k+n$, for some $k \in \mathbb{Z}$. Multiplying both sides by $2$ we obtain $2n^2=4k+2n \Rightarrow 2n^2=2(2k+n)$. Since $k$ is some integer, $2k+n$ is also some integer. Let $2k+n=m$. Therefore, $2n^2=2m$, which is even.
I know there is something wrong with my proof, but I just can't pinpoint it. Please help!
Should I approach it this way?
If $n^2-n$ is even, then $n(n-1)=2k$, for some $k \in \mathbb{Z}$.
Here's a proof using case analysis on whether $n$ is even or odd:
Either $n$ is even or $n$ is odd. (This I assume that we already know.)
If $n$ is even, then $n = 2k$ for some integer $k$. Therefore $n(n+1) = 2k(2k+1)$ which contains a factor $2$ and is therefore even.
If $n$ is odd, then $n = 2k+1$ for some integer $k$. Therefore $n(n+1) = (2k+1)(2k+2) = 2(2k+1)(k+1)$ which contains a factor $2$ and is therefore even.
Thus, $n(n+1)$ is even.