Divisor proof with absolute values

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
reb659
Messages
64
Reaction score
0

Homework Statement


I reduced a much harder problem to the following:
Prove that if abs(a-b) is divisible by k, and if abs(b-c) is divisible by k, then abs(a-c) is divisible by k.

Homework Equations



none really.

The Attempt at a Solution



I tried setting abs(a-b)/k = n and abs(b-c)/k = m where m and n are integers and trying to construct abs(a-c) from that but to no avail.
By the definition of absolute value, I know abs(x) = x when x>0 and =-x when x<0. I think trying all of the four possible cases might work, but would there be an easier way?
 
Last edited:
Physics news on Phys.org
How do you get rid of the absolute values? If |x| is divisible by k, is x divisible by k?