Proving divisibility of integers

96 Views Asked by At

Given integers $x$ and $y$ and a prime number $k>3$. It turned out that $x + y$ and $x^2 + y^2$ are simultaneously divisible by $k$. Prove that $x^2 + y^2$ is divisible by $k^2$?

2

There are 2 best solutions below

1
On BEST ANSWER

We write $x^2+y^2=(x+y)^2-2xy$, and notice that since $k$ divides $x^2+y^2$ and $(x+y)$, then $k$ should also divide $2xy$. Since $k>3$, $k$ should divide at least $x$ or $y$. Because $k$ divides $x+y$ and $x$ or $y$, we conclude that $k$ divides $x$ and $k$ divides $y$.

We now again return to the expression $(x+y)^2-2xy$, and notice that $k^2$ obviously divides $(x+y)^2$, and that $k^2$ also divides $2xy$ because $k$ divides $x$ and $k$ also divides $y$. Hope this is clear!

1
On

Note that the first statement implies $x \equiv -y \pmod k$, and the second implies $x^2 + (-x)^2 \equiv 0 \mod k$. So we get $k \mid 2x^2$ which implies $k \mid x^2$, in turn implying $k \mid x$ since $k$ is prime. So $k \mid x, k\mid y$ gives $k^2 \mid x^2 + y^2$.