Maths Olympiad Prep

Track / Stage 7 / 228 of 300 #2268 of 2604

Problem 2268

National Olympiad second round; IMO P1/P4
Number theory Difficulty 7.7 Prove it USA IMO · United States · 2003

Find all ordered triples of primes (p,q,r)(p, q, r) such that
p∣qr+1,q∣rp+1,r∣pq+1. p \mid q^r + 1, \quad q \mid r^p + 1, \quad r \mid p^q + 1.

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

We check that this is a solution:
2∣126=53+1,5∣10=32+1,3∣33=25+1. 2 \mid 126 = 5^3 + 1, \quad 5 \mid 10 = 3^2 + 1, \quad 3 \mid 33 = 2^5 + 1.
Now let p,q,rp, q, r be three primes satisfying the given divisibility relations. Since qq does not divide qr+1q^r + 1, p≠qp \neq q, and similarly q≠r,r≠pq \neq r, r \neq p, so p,qp, q and rr are all distinct. We now prove a lemma.
Lemma. Let p,q,rp, q, r be distinct primes with p∣qr+1p \mid q^r + 1, and p>2p > 2. Then either 2r∣p−12r \mid p-1 or p∣q2−1p \mid q^2 - 1.
Proof. Since p∣qr+1p \mid q^r + 1, we have
qr≡−1≢1(modp),because p>2, q^r \equiv -1 \not\equiv 1 \pmod{p}, \quad \text{because } p > 2,
but
q2r≡(−1)2≡1(modp). q^{2r} \equiv (-1)^2 \equiv 1 \pmod{p}.
Let dd be the order of q(modp)q \pmod{p}; then from the above congruences, dd divides 2r2r but not rr. Since rr is prime, the only possibilities are d=2d = 2 or d=2rd = 2r. If d=2rd = 2r, then 2r∣p−12r \mid p-1 because d∣p−1d \mid p-1. If d=2d = 2, then q2≡1(modp)q^2 \equiv 1 \pmod{p} so p∣q2−1p \mid q^2 - 1. This proves the lemma. ■
Now let's first consider the case where p,qp, q and rr are all odd. Since p∣qr+1p \mid q^r + 1, by the lemma either 2r∣p−12r \mid p-1 or p∣q2−1p \mid q^2 - 1. But 2r∣p−12r \mid p-1 is impossible because
2r∣p−1  ⟹  p≡1(modr)  ⟹  0≡pq+1≡2(modr) 2r \mid p-1 \implies p \equiv 1 \pmod{r} \implies 0 \equiv p^q + 1 \equiv 2 \pmod{r}
and r>2r > 2. So we must have p∣q2−1=(q−1)(q+1)p \mid q^2 - 1 = (q - 1)(q + 1). Since pp is an odd prime and q−1,q+1q - 1, q + 1 are both even, we must have
p∣q−12orp∣q+12; p \mid \frac{q-1}{2} \quad \text{or} \quad p \mid \frac{q+1}{2};
either way,
p≤q+12<q. p \le \frac{q+1}{2} < q.
But then by a similar argument we may conclude q<r,r<pq < r, r < p, a contradiction.
Thus, at least one of p,q,rp, q, r must equal 2. By a cyclic permutation we may assume that p=2p = 2. Now r∣2q+1r \mid 2^q + 1, so by the lemma, either 2q∣r−12q \mid r - 1 or r∣22−1r \mid 2^2 - 1. But 2q∣r−12q \mid r - 1 is impossible as before, because qq divides r2+1=(r2−1)+2r^2 + 1 = (r^2 - 1) + 2 and q>2q > 2. Hence, we must have r∣22−1r \mid 2^2 - 1. We conclude that r=3r = 3, and q∣r2+1=10q \mid r^2 + 1 = 10. Because q≠pq \ne p, we must have q=5q = 5. Hence (2, 5, 3) and its cyclic permutations are the only solutions.

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