3

Recently I have come across a statement saying that if $x$ and $y$ are divisible by $a$, then $x - y$ is also divisible by $a$.

How can I prove this? Does it also apply to sum of $x$ and $y$ ?

Kapol
  • 175

2 Answers2

5

If $x=aq$ and $y=ap$ then $x-y=aq-ap=a(q-p)$ by the distributive law.

Mark Bennet
  • 100,194
4

So, we have integers $X,Y$ such that $$\frac xX=\frac yY=a$$

$$\implies x-y=a(X-Y)\iff\frac{x-y}a=X-Y$$ which is an integer

In fact we can prove $$cx-dy$$ is also divisible by $a$ for integers $c,d$

Here $c=d=1$