Peter G. answered 10/14/16
Tutor
4.9
(90)
Driven to succeed? Learn from a professional mathematician
By Euclidean division, the remainder of n divided by 3 is 1 or 2, i.e. n can be written as
n = 3k+r,
where r is 1 or 2 and k is an integer.
(3k+1)2+2 = 9k2+6k+1+2
= 3(3k2+2k+1)
A similar argument shows that (3k+2)2+2 is divisible by 3.