Case 1:
We assume that n is divisible by 3
=> n = 3p where p is an integern=3p
=> n+4=3p + 4Clearly 3q+1 also cannot be expressed in the form 3*(a number)
ie n+4 is not divisible by 3
Case 2:
We assume that n+2 is divisible by 3
=> n+2= 3x where x is an integern+2=3x
=> n+4=3x + 2Clearly 3x+2 also cannot be expressed in the form 3*(a number)
ie n+4 is not divisible by 3
Case 3:
We assume that n+4 is divisible by 3
n+4 = 3y where p is an integern+4=3y
n=3y- 4Clearly 3z+1 also cannot be expressed in the form 3*(a number)
ie n+4 is not divisible by 3
Hence exactly one out of n, n+2 and n+4 is divisible by 3.