Maths Olympiad Prep

Track / Stage 6 / 94 of 400 #1574 of 2444

Problem 1574

National Olympiad, first round
Number theory Difficulty 6.1 Prove it Junior Balkan Mathematical Olympiad Shortlist · JBMO

Find all prime numbers pp and nonnegative integers xyx \neq y such that x4y4=p(x3y3)x^{4}-y^{4}=p\left(x^{3}-y^{3}\right).

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.

Next problem →

Official solution

Solution:
If x=0x=0 then y=py=p and if y=0y=0 then x=px=p. We will show that there are no other solutions.

Suppose x,y>0x, y>0. Since xyx \neq y, we have
p(x2+xy+y2)=(x+y)(x2+y2) p\left(x^{2}+x y+y^{2}\right)=(x+y)\left(x^{2}+y^{2}\right)
If pp divides x+yx+y, then x2+y2x^{2}+y^{2} must divide x2+xy+y2x^{2}+x y+y^{2} and so it must also divide xyx y. This is a contradiction as x2+y22xy>xyx^{2}+y^{2} \geqslant 2 x y > x y.

Thus pp divides x2+y2x^{2}+y^{2}, so x+yx+y divides x2+xy+y2x^{2}+x y+y^{2}. As x+yx+y divides x2+xyx^{2}+x y and y2+xyy^{2}+x y, it also divides x2x^{2}, xyx y and y2y^{2}. Suppose x2=a(x+y)x^{2}=a(x+y), y2=b(x+y)y^{2}=b(x+y) and xy=c(x+y)x y=c(x+y). Then x2+xy+y2=(a+b+c)(x+y)x^{2}+x y+y^{2}=(a+b+c)(x+y), x2+y2=(a+b)(x+y)x^{2}+y^{2}=(a+b)(x+y), while (x+y)2=x2+y2+2xy=(a+b+2c)(x+y)(x+y)^{2}=x^{2}+y^{2}+2 x y=(a+b+2 c)(x+y) yields x+y=a+b+2cx+y=a+b+2 c.

Substituting into ()(*) gives
p(a+b+c)=(a+b+2c)(a+b) p(a+b+c)=(a+b+2 c)(a+b)
Now let a+b=dma+b=d m and c=dc1c=d c_{1}, where gcd(m,c1)=1\operatorname{gcd}\left(m, c_{1}\right)=1. Then
p(m+c1)=(m+2c1)dm p\left(m+c_{1}\right)=\left(m+2 c_{1}\right) d m
If m+c1m+c_{1} and mm had a common divisor, it would divide c1c_{1}, a contradiction. So gcd(m,m+c1)=1\operatorname{gcd}(m, m+c_{1})=1. and similarly, gcd(m+c1,m+2c1)=1\operatorname{gcd}\left(m+c_{1}, m+2 c_{1}\right)=1. Thus m+2c1m+2 c_{1} and mm divide pp, so m+2c1=pm+2 c_{1}=p and m=1m=1. Then m+c1=dm+c_{1}=d so cd=a+bc \geqslant d=a+b. Now
xy=c(x+y)(a+b)(x+y)=x2+y2 x y=c(x+y) \geqslant(a+b)(x+y)=x^{2}+y^{2}
again a contradiction.

Alternative Solution by PSC:
Let d=gcd(x,y)d=\operatorname{gcd}(x, y). Then x=dax=d a and y=dby=d b for some a,ba, b such that gcd(a,b)=1\operatorname{gcd}(a, b)=1. Then
d4(a4b4)=pd3(a3b3) d^{4}\left(a^{4}-b^{4}\right)=p d^{3}\left(a^{3}-b^{3}\right)
which gives
d(a+b)(a2+b2)=p(a2+ab+b2) d(a+b)\left(a^{2}+b^{2}\right)=p\left(a^{2}+a b+b^{2}\right)
If a prime qq divides both a+ba+b and a2+ab+b2a^{2}+a b+b^{2}, then it also divides (a+b)2(a2+ab+b2)=ab(a+b)^{2}-\left(a^{2}+a b+b^{2}\right)=a b. So qq divides aa or qq divides bb. Since qq also divides a+ba+b, it must divide both aa and bb. This is impossible as gcd(a,b)=1\operatorname{gcd}(a, b)=1. So gcd(a+b,a2+ab+b2)=1\operatorname{gcd}\left(a+b, a^{2}+a b+b^{2}\right)=1 and similarly gcd(a2+b2,a2+ab+b2)=1\operatorname{gcd}\left(a^{2}+b^{2}, a^{2}+a b+b^{2}\right)=1. Then (a+b)(a2+b2)(a+b)\left(a^{2}+b^{2}\right) divides pp and since a+ba2+b2a+b \leqslant a^{2}+b^{2}, then a+b=1a+b=1.

If a=0,b=1a=0, b=1 then ()(*) gives d=pd=p and so x=0,y=px=0, y=p which is obviously a solution. If a=1,b=0a=1, b=0 we similarly get the solution x=p,y=0x=p, y=0. These are the only solutions.

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