SOLUTION: Show that only one of the numbers n, n+2, n+4 is divisible by 3.

Algebra ->  Real-numbers -> SOLUTION: Show that only one of the numbers n, n+2, n+4 is divisible by 3.      Log On


   



Question 254068: Show that only one of the numbers n, n+2, n+4 is divisible by 3.
Answer by solver91311(24713) About Me  (Show Source):
You can put this solution on YOUR website!


You didn't say, but the only way this works is if n is an integer. Use the modulo function. returns the remainder when n is divided by m. For positive integers, the range of the modulo function is , therefore for , the range is .

So there are three possibilities regardless of the value of n:







For each of the three possibilities, there is only one 0 result, hence only one of the numbers is divisible by 3.

If n is a negative integer, the range of is and the result is the same.

John