Maths Olympiad Prep

Library / IRL ABooklet /157 of 191

IRL ABooklet

Number theory Difficulty 6.9 National Olympiad Prove it Ireland

For any two numbers x,yx, y, we denote N(x,y)=x2−xy+y2N(x, y) = x^2 - xy + y^2.

a. Prove the product formula N(a,b)N(x,y)=N(ax−by,ay+bx−by)N(a, b)N(x, y) = N(ax - by, ay + bx - by).

b. Show that the equation N(x,y)=2023−490z2N(x, y) = 2023 - 490z^2 has at least 16 distinct solution triples (x,y,z)(x, y, z) with integers x,y,z≥0x, y, z \ge 0.

Solution

a. The formula in part (a) can be checked by direct calculation
(x2−xy+y2)(a2−ab+b2)=(xa−by)2−(xa−by)(ay+bx−by)+(ay+bx−by)2. (x^2 - xy + y^2)(a^2 - ab + b^2) = (xa - by)^2 - (xa - by)(ay + bx - by) + (ay + bx - by)^2.
Alternatively, we may let ξ,ξˉ\xi, \bar{\xi} be the complex roots of the quadratic x2−x+1x^2 - x + 1, so that ξ2=ξ−1\xi^2 = \xi - 1, as well as ξˉ2=ξˉ−1\bar{\xi}^2 = \bar{\xi} - 1, and N(x,y)=(x−ξy)(x−ξˉy)N(x, y) = (x - \xi y)(x - \bar{\xi} y). Then
N(a,b)N(x,y)=(x2−xy+y2)(a2−ab+b2)=(x−ξy)(x−ξˉy)(a−ξb)(a−ξˉb)=(xa−ξya−ξxb+ξ2yb)(xa−ξˉya−ξˉxb−ξˉ2yb) \begin{aligned} N(a, b)N(x, y) &= (x^2 - xy + y^2)(a^2 - ab + b^2) \\ &= (x - \xi y)(x - \bar{\xi} y)(a - \xi b)(a - \bar{\xi} b) \\ &= (xa - \xi ya - \xi xb + \xi^2 yb)(xa - \bar{\xi} ya - \bar{\xi} xb - \bar{\xi}^2 yb) \end{aligned}
obtained by multiplying the first and third brackets, and second with fourth brackets. Now using ξ2=ξ−1\xi^2 = \xi - 1 and ξˉ2=ξˉ−1\bar{\xi}^2 = \bar{\xi} - 1 we get
N(a,b)N(x,y)=N(ax−by,ay+bx−by). N(a, b)N(x, y) = N(ax - by, ay + bx - by).

b. To solve (b) we note that N(x,y)=x2−xy+y2=(x−12y)2+34y2≥0N(x, y) = x^2 - xy + y^2 = (x - \frac{1}{2}y)^2 + \frac{3}{4}y^2 \geq 0, hence, for any solution triple (x,y,z)(x, y, z) we have 490z2≤2023490z^2 \leq 2023 and so z≤2z \leq 2. If z=2z = 2 then 2023−490⋅4=63=32⋅72023 - 490 \cdot 4 = 63 = 3^2 \cdot 7. Thus 32∣N(x,y)3^2|N(x, y). Writing x=3ux = 3u and y=3vy = 3v, we would like to solve
7=N(u,v),or equivalently28=(2u−v)2+3v2. 7 = N(u, v), \quad \text{or equivalently} \quad 28 = (2u - v)^2 + 3v^2.
It is easy to find the following four non-negative solutions, see Problem 21:
(u, v) = (1, 3), (2, 3), (3, 1), (3, 2), giving rise to
*(x, y) = (3, 9), (6, 9), (9, 3), (9, 6).

If z=1z = 1 then 2023−490=1533=3⋅7⋅732023 - 490 = 1533 = 3 \cdot 7 \cdot 73. We first solve N(a,b)=3N(a, b) = 3, N(u,v)=7N(u, v) = 7, N(s,t)=73N(s, t) = 73, and then use the formula from part (a) to construct solutions to N(x,y)=3⋅7⋅73N(x, y) = 3 \cdot 7 \cdot 73. Because the numbers are small, we easily find positive solutions:
3=N(a,b)3 = N(a, b) is equivalent to 12=(2a−b)2+3b212 = (2a - b)^2 + 3b^2
which has solutions (a,b)=(1,2),(2,1)(a, b) = (1, 2), (2, 1);
7=N(u,v)7 = N(u, v) is equivalent to 28=(2u−v)2+3v228 = (2u - v)^2 + 3v^2
which has solutions (u,v)=(1,3),(2,3),(3,1),(3,2)(u, v) = (1, 3), (2, 3), (3, 1), (3, 2);
73=N(s,t)73 = N(s, t) is equivalent to 292=(2s−t)2+3t2292 = (2s - t)^2 + 3t^2
which has solutions (s,t)=(8,9),(1,9),(9,1),(9,8)(s, t) = (8, 9), (1, 9), (9, 1), (9, 8).
Applying the formula from part (a) we obtain, for example,
3⋅7=N(2,1)N(2,3)=N(1,5),3⋅7=N(2,1)N(3,1)=N(5,4),3⋅7=N(2,1)N(3,2)=N(4,5). \begin{align*} 3 \cdot 7 &= N(2,1)N(2,3) = N(1,5), \\ 3 \cdot 7 &= N(2,1)N(3,1) = N(5,4), \\ 3 \cdot 7 &= N(2,1)N(3,2) = N(4,5). \end{align*}
By symmetry we have N(x,y)=N(y,x)N(x, y) = N(y, x), hence N(5,1)=N(1,5)=3⋅7N(5, 1) = N(1, 5) = 3 \cdot 7.
Applying the formula from part (a) again, we find
3⋅7⋅73=N(1,5)N(9,1)=N(4,41)=N(5,1)N(8,9)=N(31,44)=N(5,1)N(9,1)=N(44,13)=N(5,1)N(9,8)=N(37,41). \begin{align*} 3 \cdot 7 \cdot 73 &= N(1,5)N(9,1) = N(4,41) \\ &= N(5,1)N(8,9) = N(31,44) \\ &= N(5,1)N(9,1) = N(44,13) \\ &= N(5,1)N(9,8) = N(37,41). \end{align*}
Using symmetry, we get eight solutions with z=1z = 1:
(x,y)=(4,41),(41,4),(31,44),(44,31),(44,13),(13,44),(37,41),(41,37). (x, y) = (4, 41), (41, 4), (31, 44), (44, 31), (44, 13), (13, 44), (37, 41), (41, 37).
Finally, if z=0z = 0 then 2023=172⋅72023 = 17^2 \cdot 7 and we can look for solutions (x,y)=(17u,17v)(x, y) = (17u, 17v). This leads us to solve N(u,v)=7N(u, v) = 7 for which we earlier found four solutions (u,v)=(1,3),(2,3)(u, v) = (1, 3), (2, 3) and their symmetric counterparts. This leads to four solutions with z=0z = 0:
(x,y)=(17,51),(51,17),(34,51),(51,34). (x, y) = (17, 51), (51, 17), (34, 51), (51, 34).
Altogether we found 16 different solution triples, as required.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.