Maths Olympiad Prep

Track / Stage 7 / 153 of 300 #1553 of 1964

Problem 1553

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Prove it

Theorem 11.1. The positive integers x,y,zx, y, z form a primitive Pythagorean triple, with yy even, if and only if there are relatively prime positive integers mm and n,m>nn, m>n, with mm odd and nn even or mm even and nn odd, such that
x=m2n2y=2mnz=m2+n2\begin{array}{l} x=m^{2}-n^{2} \\ y=2 m n \\ z=m^{2}+n^{2} \end{array}

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Proof. Let x,y,zx, y, z be a primitive Pythagorean triple. Lemma 11.2 tells us that xx is odd and yy is even, or vice versa. Since we have assumed that yy is even, xx and zz are both odd. Hence, z+xz+x and zxz-x are both even, so that there are positive integers rr and ss with r=(z+x)/2r=(z+x) / 2 and s=(zx)/2s=(z-x) / 2.

Since x2+y2=z2x^{2}+y^{2}=z^{2}, we have y2=z2x2=(z+x)(zx)y^{2}=z^{2}-x^{2}=(z+x)(z-x). Hence,
(y2)2=(z+x2)(zx2)=rs\left(\frac{y}{2}\right)^{2}=\left(\frac{z+x}{2}\right)\left(\frac{z-x}{2}\right)=r s

We note that (r,s)=1(r, s)=1. To see this, let (r,s)=d(r, s)=d. Since drd \mid r and dsd \mid s, d(r+s)=zd \mid(r+s)=z and d(rs)=xd \mid(r-s)=x. This means that d(x,z)=1d \mid(x, z)=1, so that d=1d=1

Using Lemma 11.3, we see that there are integers mm and nn such that r=m2r=m^{2} and s=n2s=n^{2}. Writing x,yx, y, and zz in terms of mm and nn, we have
x=rs=m2n2y=4rs=4m2n2=2mn\begin{array}{l} x=r-s=m^{2}-n^{2} \\ y=\sqrt{4 r s}=\sqrt{4 m^{2} n^{2}}=2 m n \end{array}
and
z=r+s=m2+n2z=r+s=m^{2}+n^{2}

We see also that (m,n)=1(m, n)=1, since any common divisor of mm and nn must also divide x=m2n2,y=2mnx=m^{2}-n^{2}, y=2 m n, and z=m2+n2z=m^{2}+n^{2}, and we know that (x,y,z)=1(x, y, z)=1. We also note that mm and nn cannot both be odd, for if they were, then x,yx, y, and zz would all be even, contradicting the condition (x,y,z)=1(x, y, z)=1. Since (m,n)=1(m, n)=1 and mm and nn cannot both be odd, we see mm is even and nn is odd, or vice versa. This shows that every primitive Pythagorean triple has the appropriate form.

To see that every triple
x=m2n2y=2mnzm2+n2\begin{array}{l} x=m^{2}-n^{2} \\ y=2 m n \\ z \equiv m^{2}+n^{2} \end{array}
where mm and nn are positive integers, m>n,(m,n)=1m>n,(m, n)=1, and m≢n(mod2)m \not \equiv n(\bmod 2), forms a primitive Pythagorean triple, first note that
x2+y2=(m2n2)2+(2mn)2=(m42m2n2+n4)+4m2n2=m4+2m2n2+n4=(m2+n2)2=z2\begin{aligned} x^{2}+y^{2} & =\left(m^{2}-n^{2}\right)^{2}+(2 m n)^{2} \\ & =\left(m^{4}-2 m^{2} n^{2}+n^{4}\right)+4 m^{2} n^{2} \\ & =m^{4}+2 m^{2} n^{2}+n^{4} \\ & =\left(m^{2}+n^{2}\right)^{2} \\ & =z^{2} \end{aligned}

To see that these values of x,yx, y, and zz are mutually relatively prime, assume that (x,y,z)=d>1(x, y, z)=d>1. Then, there is a prime pp such that p(x,y,z)p \mid(x, y, z). We note that p2p \neq 2, since xx is odd (because x=m2n2x=m^{2}-n^{2} where m2m^{2} and n2n^{2} have opposite parity). Also, note that because pxp \mid x and pz,p(z+x)=2m2p|z, p|(z+x)=2 m^{2} and p(zx)=2n2p \mid(z-x)=2 n^{2}. Hence pmp \mid m and pnp \mid n, contradicting the fact that (m,n)=1(m, n)=1. Therefore, (x,y,z)=1(x, y, z)=1, and x,y,zx, y, z is a primitive Pythagorean triple. This concludes the proof.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.