I am proving by cases but am getting confused. I am not sure if this leads to a contradiction or not.
Here's what I have so far:
Direct Proof. Suppose $3$ does not divide $n$.
Case 1: remainder upon division is $1$ then $n=3k+1$, for some integer $k$ and $n^2=(3k+1)^2$ ... this is where I am getting confused.
Case 2: remainder upon division is $2$ then $n=3k+2$ for some integer $k$ and $n^2=(3k+2)^2$ ... and here.
Because the problem says "If $3$ does not divide $n$, then $n^2=1+3k$" but this is not what I am getting. So does this result in a contradiction or not? And so is the proof false and I need to provide a counter example?
A little lost, thanks!
Or rewrite your integers as $$3k-1 , 3k, 3k+1$$
and then $$(3k-1)^2=9k^2-6k+1=3(9k^2-6k)+1=3p+1$$ I hope you can handle the rest!