Maths Olympiad Prep

Track / Stage 7 / 15 of 300 #2055 of 2604

Problem 2055

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)=(prp−1)(p−1)(pr−1)(pp−1) 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 r≠pr \neq p.
2. Show that F(r)F(r) and F(s)F(s) are coprime for any primes rr and ss such that r≠pr \neq p, s≠ps \neq p and r≠sr \neq s.
3. Fix a prime r≠pr \neq p. Show that there is a prime divisor qq of F(r)F(r) such that p∣q−1p \mid q-1 but p2∤q−1p^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.

Next problem →

Official solution

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

1.
Let x=gcd⁡(pr−1,pp−1)x = \gcd(p^r - 1, p^p - 1) and y=lcm⁡(pr−1,pp−1)y = \operatorname{lcm}(p^r - 1, p^p - 1), then
(pr−1)(pp−1)=xy. (p^r - 1)(p^p - 1) = x y.
From the above lemma, we get x=pgcd⁡(r,p)−1=p−1x = p^{\gcd(r, p)} - 1 = p - 1. Hence (pr−1)(pp−1)=(p−1)y(p^r - 1)(p^p - 1) = (p - 1) y, which implies that F(r)=ppr−1yF(r) = \frac{p^{p r} - 1}{y}. But pr−1∣ppr−1p^r - 1 \mid p^{p r} - 1 and pp−1∣ppr−1p^p - 1 \mid p^{p r} - 1, so y∣ppr−1y \mid p^{p r} - 1 leads to F(r)F(r) being a positive integer.

2.
We can see that
gcd⁡(prp−1,psp−1)=pgcd⁡(rp,sp)−1=pp−1. \gcd(p^{r p} - 1, p^{s p} - 1) = p^{\gcd(r p, s p)} - 1 = p^p - 1.
Let prp−1=(pp−1)r1p^{r p} - 1 = (p^p - 1) r_1, psp−1=(pp−1)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⁡((pp−1)r1(p−1)(pr−1)(pp−1),(pp−1)s1(p−1)(ps−1)(pp−1))=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 p∣q−1p \mid q-1. (*)
Indeed, from Fermat's theorem, q∣pq−1−1q \mid p^{q-1} - 1 and because q∣prp−1(pr−1)f(p)q \mid \frac{p^{r p} - 1}{(p^r - 1) f(p)}, so q∣prp−1q \mid p^{r p} - 1.
These imply that
q∣gcd⁡(pq−1−1,prp−1)=pgcd⁡(q−1,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⁡(q−1,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 p∣q−1p \mid q-1 and (*) follows.
2. If d=1d = 1, we have q∣p−1q \mid p - 1 or p≡1(modq)p \equiv 1 \pmod{q}. We also have
0≡prp−1pp−1=pp(r−1)+pp(r−2)+⋯+pp+1≡p≡1(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 q∣pr−1q \mid p^r - 1 or pr≡1(modq)p^r \equiv 1 \pmod{q}. We also have
0≡prp−1pr−1=pr(p−1)+pr(p−2)+⋯+pr+1≡r(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 q∣F(r)q \mid F(r), we always have p2∣q−1p^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)(pp−1)(pr−1)=(prp−1)(p−1)=prp+1−prp−(p−1)≡−(p−1)(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)(pp−1)(pr−1)=F(r)(pp+r−pr−pp+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≡−(p−1)(modp2)⇔p≡0(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 reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.