Maths Olympiad Prep

Track / Stage 7 / 270 of 300 #1670 of 1964

Problem 1670

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

Find all ordered triples of primes (p,q,r)(p, q, r) such that
pqr+1,qrp+1,rpq+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.

Official solution

We check that this is a solution:
2126=53+1,510=32+1,333=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, pqp \neq q, and similarly qr,rpq \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 pqr+1p \mid q^r + 1, and p>2p > 2. Then either 2rp12r \mid p-1 or pq21p \mid q^2 - 1.
*Proof.* Since pqr+1p \mid q^r + 1, we have
qr1≢1(modp),because p>2, q^r \equiv -1 \not\equiv 1 \pmod{p}, \quad \text{because } p > 2,
but
q2r(1)21(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 2rp12r \mid p-1 because dp1d \mid p-1. If d=2d = 2, then q21(modp)q^2 \equiv 1 \pmod{p} so pq21p \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 pqr+1p \mid q^r + 1, by the lemma either 2rp12r \mid p-1 or pq21p \mid q^2 - 1. But 2rp12r \mid p-1 is impossible because
2rp1    p1(modr)    0pq+12(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 pq21=(q1)(q+1)p \mid q^2 - 1 = (q - 1)(q + 1). Since pp is an odd prime and q1,q+1q - 1, q + 1 are both even, we must have
pq12orpq+12; p \mid \frac{q-1}{2} \quad \text{or} \quad p \mid \frac{q+1}{2};
either way,
pq+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 r2q+1r \mid 2^q + 1, so by the lemma, either 2qr12q \mid r - 1 or r221r \mid 2^2 - 1. But 2qr12q \mid r - 1 is impossible as before, because qq divides r2+1=(r21)+2r^2 + 1 = (r^2 - 1) + 2 and q>2q > 2. Hence, we must have r221r \mid 2^2 - 1. We conclude that r=3r = 3, and qr2+1=10q \mid r^2 + 1 = 10. Because qpq \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 and solution reproduced as published; topic, difficulty and ordering added by this site.