Proof about Pythagorean triples

180 Views Asked by At

Show that if $(x,y,z)$ is a Pythagorean triple, then $10\mid xyz$

Proof

First, if $x$, $y$, $z$ are all odd, then so are $x^2$, $y^2$, $z^2$, so $x^2+y^2$ is even, which means that $x^2+y^2 \neq z^2 $. Hence, at least one of $x$, $y$, $z$ is even, so $2\mid xyz$ (clear).

Next, for any $n \in Z$, if $5$ doesn't divide $n$, then $(n^2)^2=n^4 \equiv 1\pmod{5}$ (as you can check or quote Euler's theorem), and therefore $n^2 \equiv \pm 1\pmod{5}$. Now, if $5$ doesn't divide $xy$, then $x^2 \equiv \pm 1\pmod{5}$ and $y^2 \equiv \pm 1\pmod{5}$, so

$$x^2+y^2 \equiv -2,0,2 \pmod{5}$$

Therefore if $x^2+y^2=z^2$ and $5$ doesn't divide $xy$ then $z^2=x^2+y^2 \equiv -2,0,2\pmod{5}$, so $5\mid z^2$ (why? it looks weird to me because $z^2$ can be also congruent to $2$ and $-2$) and hence $5\mid z$ (otherwise $z^2 \equiv \pm 1\pmod{5}$). It follows that $x^2+y^2=z^2$, then either $5\mid xy$ or $5\mid z$ (how does this follow? if $5$ doesn't divide $z$ then how can $5$ divide $xy$), so in any case $5\mid xyz$

Finally, we can conclude that if $x^2+y^2=z^2$ then $2\mid xyz$ and $5\mid xyz$, so $10\mid xyz$ (intuitively it looks right but I can't prove it!)

3

There are 3 best solutions below

1
On

The general solution of the above Diophantine Equation is: $x = m^2 - n^2, y = 2mn, z = m^2+n^2$. Its better if you start at this point. Then your analysis yields the followings: $m^2 = \pm 1 \pmod 5, n^2 = \pm 1 \pmod 5$. Since $5 \nmid xy\implies 5 \nmid x, 5 \nmid y\implies m^2 = 1\pmod 5, n^2 = -1\pmod 5$ or $m^2 = -1\pmod 5, n^2 = 1\pmod 5$ for otherwise $x = m^2 - n^2 = \pm1 - \pm1 = 0\pmod 5$, contradicting the assumption that $5 \nmid x$. Thus: $m^4 + 2m^2n^2 + n^4 = 1 + 2(-1) + 1 = 0 \pmod 5\implies 5 \mid (m^2+n^2)^2 = z^2$.

12
On

No problem with divisibility by $2$, good.

Suppose $5\nmid xyz$, so $5$ divides none of the numbers $x$, $y$ and $z$.

Then $x^2\equiv\pm1\pmod{5}$ and the same for $y$ and $z$. However, it can't be $x^2\equiv1$ and $y^2\equiv-1$, otherwise $z^2\equiv0\pmod{5}$. Similarly it's impossible that $x^2\equiv-1$ and $y^2\equiv1$.

Suppose $x^2\equiv1$ and $y^2\equiv1$. Then $z^2\equiv1+1\pmod{5}$, which is a contradiction. Similarly $x^2\equiv-1\equiv y^2$ can be dismissed.

Hence $5\mid xyz$.


Alternatively, which is what the book seems to be doing, suppose $5\nmid xy$. Then, since $x^2\equiv\pm1$ and $y^2\equiv\pm1$, we can conclude that \begin{align} z^2&=x^2+y^2\equiv2\pmod5 &&\text{or} \\[4px] z^2&=x^2+y^2\equiv-2\pmod5 &&\text{or} \\[4px] z^2&=x^2+y^2\equiv0\pmod5 \end{align} The first two cases are impossible, as seen above, so only the third case remains: since $5\mid z^2$, we conclude $5\mid z$.

1
On

No problem to give a "theoretical" proof. Just for fun let me work with a table in $\mathbb F_5^2$.

By the quite known parametrization of the Pythagorean triple, $xyz$ is even so we must prove in $\mathbb F_5$ that $$xyz=mn(m^2-n^2)(m^2+n^2)=0\qquad (1)$$ If $m=n$ and if $mn=0$ it is clear so we prove $(1)$ with $m\ne n$ and $mn\ne 0$ so we need to verify $(1)$ with $12$ couples $(m,n)$ $$\begin{array}{|c|c|}\hline (1,1) & (1,2) & (1,3) &(1, 4) \\\hline (2,1) & (2,2) & (2,3) &(2,4)\\\hline (3,1) &(3,2) & (3,3) &(3,4)\\\hline (4,1)&(4,2)&(4,3)&(4,4)\\\hline\end{array}$$

If $(m,n)\in \{(1,2),(1,3),(2,1),(2,4),(3,1),(3,4),(4,2),(4,3)\}$ then $m^2+n^2=0$

If $(m,n)\in\{(1,4),(2,3),(3,2),(4,1)\}$ then $m^2-n^2=0$