what I have so far is that:

$n = 3q+r$,

$r≠0 $ (otherwise it is divisible by 3)

$r=1$ (when $q$ even)

$r=2$ (when $q$ is odd)

So, $n_1 = 3(2k+1)+2 = 6k+5$

$n_2 = 3(2k)+1 = 6k+1$

$n_1^2 = 36k^2 +60k +25 = 12(3k^2 + 5k + 2) + 1$

$n_2^2 = 36k^2 +12k +1 = 12(3k^2 + k) + 1$

Then I don't know where to go from here as this only shows that they are congruent to 1 mod 12.