Maths Olympiad Prep

Track / Stage 6 / 23 of 400 #1503 of 2444

Problem 1503

National Olympiad, first round
Number theory Difficulty 6.0 Prove it Indian National Mathematical Olympiad · India · 2004

Suppose pp is a prime greater than 33. Find all pairs of integers (a,b)(a, b) satisfying the equation
a2+3ab+2p(a+b)+p2=0 a^{2} + 3 a b + 2 p(a + b) + p^{2} = 0

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:
We write the equation in the form
a2+2ap+p2+b(3a+2p)=0 a^{2} + 2 a p + p^{2} + b(3 a + 2 p) = 0
Hence
b=(a+p)23a+2p b = \frac{-(a + p)^{2}}{3 a + 2 p}
is an integer. This shows that 3a+2p3 a + 2 p divides (a+p)2(a + p)^{2} and hence also divides (3a+3p)2(3 a + 3 p)^{2}. But, we have
(3a+3p)2=(3a+2p+p)2=(3a+2p)2+2p(3a+2p)+p2 (3 a + 3 p)^{2} = (3 a + 2 p + p)^{2} = (3 a + 2 p)^{2} + 2 p(3 a + 2 p) + p^{2}
It follows that 3a+2p3 a + 2 p divides p2p^{2}. Since pp is a prime, the only divisors of p2p^{2} are ±1,±p\pm 1, \pm p and ±p2\pm p^{2}. Since p>3p > 3, we also have p=3k+1p = 3 k + 1 or 3k+23 k + 2.

Case 1: Suppose p=3k+1p = 3 k + 1. Obviously 3a+2p=13 a + 2 p = 1 is not possible. In fact, we get 1=3a+2p=3a+2(3k+1)3a+6k=11 = 3 a + 2 p = 3 a + 2(3 k + 1) \Rightarrow 3 a + 6 k = -1 which is impossible. On the other hand 3a+2p=13 a + 2 p = -1 gives 3a=2p1=6k3a=2k13 a = -2 p - 1 = -6 k - 3 \Rightarrow a = -2 k - 1 and a+p=2k1+3k+1=ka + p = -2 k - 1 + 3 k + 1 = k.
Thus b=(a+p)23a+2p=k2b = \frac{-(a + p)^{2}}{3 a + 2 p} = k^{2}. Thus (a,b)=(2k1,k2)(a, b) = \left(-2 k - 1, k^{2}\right) when p=3k+1p = 3 k + 1. Similarly, 3a+2p=p3a=p3 a + 2 p = p \Rightarrow 3 a = -p which is not possible. Considering 3a+2p=p3 a + 2 p = -p, we get 3a=3p3 a = -3 p or a=pb=0a = -p \Rightarrow b = 0. Hence (a,b)=(3k1,0)(a, b) = (-3 k - 1, 0) where p=3k+1p = 3 k + 1.
Let us consider 3a+2p=p23 a + 2 p = p^{2}. Hence 3a=p22p=p(p2)3 a = p^{2} - 2 p = p(p - 2) and neither pp nor p2p - 2 is divisible by 33. If 3a+2p=p23 a + 2 p = -p^{2}, then 3a=p(p+2)a=(3k+1)(k+1)3 a = -p(p + 2) \Rightarrow a = -(3 k + 1)(k + 1).
Hence a+p=(3k+1)(k1+1)=(3k+1)ka + p = (3 k + 1)(-k - 1 + 1) = -(3 k + 1) k. This gives b=k2b = k^{2}. Again (a,b)=((k+1)(3k+1),k2)(a, b) = (-(k + 1)(3 k + 1), k^{2}) when p=3k+1p = 3 k + 1.

Case 2: Suppose p=3k1p = 3 k - 1. If 3a+2p=13 a + 2 p = 1, then 3a=6k+33 a = -6 k + 3 or a=2k+1a = -2 k + 1. We also get
b=(a+p)21=(2k+1+3k1)21=k2 b = \frac{-(a + p)^{2}}{1} = \frac{-(-2 k + 1 + 3 k - 1)^{2}}{1} = -k^{2}
and we get the solution (a,b)=(2k+1,k2)(a, b) = \left(-2 k + 1, k^{2}\right). On the other hand 3a+2p=13 a + 2 p = -1 does not have any integral solution for aa. Similarly, there is no solution in the case 3a+2p=p3 a + 2 p = p. Taking 3a+2p=p3 a + 2 p = -p, we get a=pa = -p and hence b=0b = 0. We get the solution (a,b)=(3k+1,0)(a, b) = (-3 k + 1, 0). If 3a+2p=p23 a + 2 p = p^{2}, then 3a=p(p2)=(3k1)(3k3)3 a = p(p - 2) = (3 k - 1)(3 k - 3) giving a=(3k1)(k1)a = (3 k - 1)(k - 1) and hence a+p=(3k1)(1+k1)=k(3k1)a + p = (3 k - 1)(1 + k - 1) = k(3 k - 1). This gives b=k2b = -k^{2} and hence (a,b)=(3k1,k2)(a, b) = \left(3 k - 1, -k^{2}\right). Finally 3a+2p=p23 a + 2 p = -p^{2} does not have any solution.

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