Let n be an integer. Prove that n^2 is divisible by 3 if and only if n is divisible by 3. (The "if and only if" part means that you have to prove two directions: if n^2 is divisible by 3 then n is divisible by 3 and if n is divisible by 3 then n^2 is divisible by 3.)