Olympiad Maths Prep

Track / Stage 7 / 149 of 300 #1549 of 2000

Problem 1549

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Find the answer

Prove that for any positive integers x,y,zx, y, z with xyz2=1xy-z^2 = 1 one can find non-negative integers a,b,c,da, b, c, d such that x=a2+b2,y=c2+d2,z=ac+bdx = a^2 + b^2, y = c^2 + d^2, z = ac + bd.
Set z=(2q)!z = (2q)! to deduce that for any prime number p=4q+1p = 4q + 1, pp can be represented as the sum of squares of two integers.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Given Equation and Initial Setup:
We start with the equation xyz2=1xy - z^2 = 1 for positive integers x,y,zx, y, z. We aim to show that there exist non-negative integers a,b,c,da, b, c, d such that:
x=a2+b2,y=c2+d2,z=ac+bd x = a^2 + b^2, \quad y = c^2 + d^2, \quad z = ac + bd

2. **Factorization in Z[i]\mathbb{Z}[i]:**
Consider the factorization in the Gaussian integers Z[i]\mathbb{Z}[i]:
xy=(z+i)(zi) xy = (z+i)(z-i)
By the unique factorization property in Z[i]\mathbb{Z}[i], we can write:
z+i=u1v2,zi=u2v1 z+i = u_1 v_2, \quad z-i = u_2 v_1
for some non-zero u1,u2,v1,v2Z[i]u_1, u_2, v_1, v_2 \in \mathbb{Z}[i].

3. **Expressing xx and yy:**
Since xx and yy are real, we can write:
x=u1u1,y=u2u2 x = u_1 \overline{u_1}, \quad y = u_2 \overline{u_2}
where u1\overline{u_1} and u2\overline{u_2} are the conjugates of u1u_1 and u2u_2, respectively.

4. **Rational Numbers q1q_1 and q2q_2:**
We express v1v_1 and v2v_2 in terms of u1u_1 and u2u_2:
v1=xu1=xu1N(u1)=q1u1,v2=yu2=yu2N(u2)=q2u2 v_1 = \frac{x}{u_1} = \frac{x \overline{u_1}}{N(u_1)} = q_1 \overline{u_1}, \quad v_2 = \frac{y}{u_2} = \frac{y \overline{u_2}}{N(u_2)} = q_2 \overline{u_2}
where q1q_1 and q2q_2 are positive rational numbers.

5. **Equating z+iz+i and ziz-i:**
Substituting these into the equations for zz gives:
z+i=q2u1u2,zi=q1u1u2 z+i = q_2 u_1 \overline{u_2}, \quad z-i = q_1 \overline{u_1} u_2
Since z+iz+i and ziz-i are conjugates, the right-hand sides must also be conjugates. Given that q1q_1 and q2q_2 are real, we must have q1=q2q_1 = q_2.

6. **Common Value k/k/\ell:**
Let the common value be k\frac{k}{\ell} for coprime positive integers kk and \ell. Then:
z+i=kRe(u1u2)+ikIm(u1u2) \ell z + \ell i = k \text{Re}(u_1 \overline{u_2}) + i k \text{Im}(u_1 \overline{u_2})
From the imaginary parts, we get that kk divides \ell, so k=1k = 1. Also, =Im(u1u2)Re(u1u2)\ell = \text{Im}(u_1 \overline{u_2}) \mid \text{Re}(u_1 \overline{u_2}).

7. **Writing u1u_1 and u2u_2:**
Write u1=a0+b0iu_1 = a_0 + b_0 i and u2=c0+d0iu_2 = c_0 + d_0 i. Then:
=b0c0a0d0a0c0+b0d0=z \ell = b_0 c_0 - a_0 d_0 \mid a_0 c_0 + b_0 d_0 = z \ell
and:
x=u1u1=a02+b02 x = \frac{u_1 \overline{u_1}}{\ell} = \frac{a_0^2 + b_0^2}{\ell}
Thus:
v1=xu1=a0b0i v_1 = \frac{x}{u_1} = \frac{a_0 - b_0 i}{\ell}
Since v1Z[i]v_1 \in \mathbb{Z}[i], it follows that a0,b0\ell \mid a_0, b_0; similarly, c0,d0\ell \mid c_0, d_0.

8. **Substituting a0,b0,c0,d0a_0, b_0, c_0, d_0:**
Write a0=aa_0 = \ell a, b0=bb_0 = \ell b, c0=cc_0 = \ell c, d0=dd_0 = \ell d. Then:
=2(bcad)    (bcad)=1    =1 \ell = \ell^2 (bc - ad) \implies \ell (bc - ad) = 1 \implies \ell = 1
This implies:
x=a2+b2,y=c2+d2,z=Re(u1u2)=ac+bd x = a^2 + b^2, \quad y = c^2 + d^2, \quad z = \text{Re}(u_1 u_2) = ac + bd

9. Condition Verification:
The condition xy=z2+1xy = z^2 + 1 insists on:
(adbc)2=xyz2=1    adbc=1 (ad - bc)^2 = xy - z^2 = 1 \implies |ad - bc| = 1
Conversely, any a,b,c,da, b, c, d with adbc=1|ad - bc| = 1 give rise to a solution x=a2+b2x = a^2 + b^2, y=c2+d2y = c^2 + d^2, z=ac+bdz = ac + bd to xy=z2+1xy = z^2 + 1.

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