This question was asked in Ex 1.1, 4
show that one and only out of n, n 2 or n 4 is divisible by 3, where n is any positive integer. 
Banuteja Ch's image