I'm trying to write a simple, informal proof to this problem. I know it would likely be simpler to tackle by showing a proof by contraposition, but I'm being asked specifically to write a proof by either contradiction or cases.
In proof by contraposition I think it might look something like this:
Let n be an integer.
If n^2 is not divisible by 9, there is no integer k such that n^2 = 9k.
9k = 3(3k).
Let 3k = m, where m is an integer.
Then there is no integer m such that n^2 = 3m.
Therefore n^2 is not divisible by 3.
Therefore if n^2 is not divisible by 9, it is not divisible by 3.
Therefore if n^2 is divisible by 3, it is divisible by 9.
But I'm not sure how you would move from that to proof by contradiction. For proof by contradiction I think you would start out by assuming that n^2 is not divisible by 9 and demonstrating that this creates a contradiction with n^2 being divisible by 3, but I am not sure.
Any help is appreciated, thanks!