Maths Olympiad Prep

Track / Stage 7 / 13 of 300 #1413 of 1964

Problem 1413

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.0 Prove it SAUDI ARABIAN MATHEMATICAL COMPETITIONS · Saudi Arabia

Let pp be a given prime. For each prime rr, we define the function as follows
F(r)=(prp1)(p1)(pr1)(pp1) F(r) = \frac{(p^{r p} - 1)(p - 1)}{(p^r - 1)(p^p - 1)}
1. Show that F(r)F(r) is a positive integer for any prime rpr \neq p.
2. Show that F(r)F(r) and F(s)F(s) are coprime for any primes rr and ss such that rpr \neq p, sps \neq p and rsr \neq s.
3. Fix a prime rpr \neq p. Show that there is a prime divisor qq of F(r)F(r) such that pq1p \mid q-1 but p2q1p^2 \nmid 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

Notice that with positive integers a,m,na, m, n and a>1a > 1, we have
gcd(am1,an1)=agcd(m,n)1. \gcd(a^m - 1, a^n - 1) = a^{\gcd(m, n)} - 1.
Let f(r)=pr1p1f(r) = \frac{p^r - 1}{p - 1} with pp a prime and rr a positive integer.

1.
Let x=gcd(pr1,pp1)x = \gcd(p^r - 1, p^p - 1) and y=lcm(pr1,pp1)y = \operatorname{lcm}(p^r - 1, p^p - 1), then
(pr1)(pp1)=xy. (p^r - 1)(p^p - 1) = x y.
From the above lemma, we get x=pgcd(r,p)1=p1x = p^{\gcd(r, p)} - 1 = p - 1. Hence (pr1)(pp1)=(p1)y(p^r - 1)(p^p - 1) = (p - 1) y, which implies that F(r)=ppr1yF(r) = \frac{p^{p r} - 1}{y}. But pr1ppr1p^r - 1 \mid p^{p r} - 1 and pp1ppr1p^p - 1 \mid p^{p r} - 1, so yppr1y \mid p^{p r} - 1 leads to F(r)F(r) being a positive integer.

2.
We can see that
gcd(prp1,psp1)=pgcd(rp,sp)1=pp1. \gcd(p^{r p} - 1, p^{s p} - 1) = p^{\gcd(r p, s p)} - 1 = p^p - 1.
Let prp1=(pp1)r1p^{r p} - 1 = (p^p - 1) r_1, psp1=(pp1)s1p^{s p} - 1 = (p^p - 1) s_1 with gcd(r1,s1)=1\gcd(r_1, s_1) = 1, then
gcd(F(r),F(s))=gcd((pp1)r1(p1)(pr1)(pp1),(pp1)s1(p1)(ps1)(pp1))=gcd(r1f(r),s1f(s))=1 \begin{aligned} \gcd(F(r), F(s)) &= \gcd\left(\frac{(p^p - 1) r_1 (p - 1)}{(p^r - 1)(p^p - 1)}, \frac{(p^p - 1) s_1 (p - 1)}{(p^s - 1)(p^p - 1)}\right) \\ &= \gcd\left(\frac{r_1}{f(r)}, \frac{s_1}{f(s)}\right) = 1 \end{aligned}

3.
At first, we will show that with any prime divisor qq of F(r)F(r), we always have pq1p \mid q-1. (*)
Indeed, from Fermat's theorem, qpq11q \mid p^{q-1} - 1 and because qprp1(pr1)f(p)q \mid \frac{p^{r p} - 1}{(p^r - 1) f(p)}, so qprp1q \mid p^{r p} - 1.
These imply that
qgcd(pq11,prp1)=pgcd(q1,rp)1 q \mid \gcd(p^{q-1} - 1, p^{r p} - 1) = p^{\gcd(q-1, r p)} - 1
Since r,pr, p are two primes, d=gcd(q1,rp){1,r,p,rp}d = \gcd(q-1, r p) \in \{1, r, p, r p\}. We have to consider 4 following cases:

1. If d=pd = p or d=rpd = r p, we get pq1p \mid q-1 and (*) follows.
2. If d=1d = 1, we have qp1q \mid p - 1 or p1(modq)p \equiv 1 \pmod{q}. We also have
0prp1pp1=pp(r1)+pp(r2)++pp+1p1(modq), 0 \equiv \frac{p^{r p} - 1}{p^p - 1} = p^{p(r-1)} + p^{p(r-2)} + \cdots + p^p + 1 \equiv p \equiv 1 \pmod{q},
contradiction.
3. If d=rd = r, we have qpr1q \mid p^r - 1 or pr1(modq)p^r \equiv 1 \pmod{q}. We also have
0prp1pr1=pr(p1)+pr(p2)++pr+1r(modq), 0 \equiv \frac{p^{r p} - 1}{p^r - 1} = p^{r(p-1)} + p^{r(p-2)} + \cdots + p^r + 1 \equiv r \pmod{q},
contradiction.

Hence (*) is true. Finally, assume that for all prime qF(r)q \mid F(r), we always have p2q1p^2 \mid q-1.
Because all divisors of F(r)F(r) are congruent to 11 modulo p2p^2, then F(r)1(modp2)F(r) \equiv 1 \pmod{p^2}.
Note that
F(r)(pp1)(pr1)=(prp1)(p1)=prp+1prp(p1)(p1)(modp2) F(r)(p^p - 1)(p^r - 1) = (p^{r p} - 1)(p - 1) = p^{r p + 1} - p^{r p} - (p - 1) \equiv -(p - 1) \pmod{p^2}
and
F(r)(pp1)(pr1)=F(r)(pp+rprpp+1)F(r)1(modp2). F(r)(p^p - 1)(p^r - 1) = F(r)(p^{p + r} - p^r - p^p + 1) \equiv F(r) \equiv 1 \pmod{p^2}.
These imply that
1(p1)(modp2)p0(modp2), 1 \equiv -(p - 1) \pmod{p^2} \Leftrightarrow p \equiv 0 \pmod{p^2},
which is a contradiction.

Therefore, there exists a prime satisfying all the given conditions. \square

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.