Maths Olympiad Prep

Library / /18 of 25

, 2024

Number theory Difficulty 8.0 National Olympiad, round 2 Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:

We call a positive integer nn peculiar if, for any positive divisor dd of nn, the integer d(d+1)d(d+1) divides n(n+1)n(n+1). Prove that for any four different peculiar positive integers A,B,CA, B, C and DD, the following holds:
gcd(A,B,C,D)=1 \operatorname{gcd}(A, B, C, D)=1
Here gcd(A,B,C,D)\operatorname{gcd}(A, B, C, D) is the largest positive integer that divides all of A,B,CA, B, C and DD.

Solution

Solution:

Observe that n=1n=1 is peculiar and that every prime is peculiar. Consider nd\frac{n}{d}, where d>1d>1 is a divisor of nn. Then nd(nd+1)\frac{n}{d}\left(\frac{n}{d}+1\right) divides n(n+1)n(n+1), equivalent to n+dn+d dividing d2(n+1)d^{2}(n+1). Since nd(modn+d)n \equiv -d \pmod{n+d}, we obtain that n+dn+d divides d3d2d^{3}-d^{2}, hence n+dd3d2n+d \leq d^{3}-d^{2} and in particular n<d3n<d^{3}. Now taking dd to be the smallest prime divisor of nn, we deduce that nn cannot have more than two prime factors, counting multiplicities. Hence from now on we work with n=pqn=pq, where pp and qq are primes. In fact, pqp \neq q, as otherwise p+1p2pp+1 \mid p^{2}-p, i.e. p+12p+1 \mid 2, contradiction.

Let us first prove that nn is square-free. Assume that n=pkhn=p^{k} h, where gcd(p,h)=1\operatorname{gcd}(p, h)=1. Now pk1h(pk1h+1)pkh(pkh+1)p^{k-1} h\left(p^{k-1} h+1\right) \mid p^{k} h\left(p^{k} h+1\right), which is equivalent to (pk1h+1)p(pkh+1)\left(p^{k-1} h+1\right) \mid p\left(p^{k} h+1\right). Since gcd(p,pk1h+1)=1\operatorname{gcd}\left(p, p^{k-1} h+1\right)=1, we must have
(pk1h+1)(pkh+1)=pkh+pp+1 \left(p^{k-1} h+1\right) \mid \left(p^{k} h+1\right)=p^{k} h+p-p+1
so (pk1h+1)(p1)\left(p^{k-1} h+1\right) \mid (p-1). If k2k \geq 2, this is a contradiction. Hence, nn is square-free.

Let us now show that nn has at most 2 different prime factors. Write n=p1p2pkn=p_{1} p_{2} \cdots p_{k}. Now we must have
p2pk(p2pk+1)p1pk(p1pk+1) p_{2} \cdots p_{k}\left(p_{2} \cdots p_{k}+1\right) \mid p_{1} \cdots p_{k}\left(p_{1} \cdots p_{k}+1\right)
which is equivalent to
(p2pk+1)p1(p1pk+1) \left(p_{2} \cdots p_{k}+1\right) \mid p_{1}\left(p_{1} \cdots p_{k}+1\right)
Now
p1(p1pk+1)p12(p2pk+1)=p1p12 p_{1}\left(p_{1} \cdots p_{k}+1\right)-p_{1}^{2}\left(p_{2} \cdots p_{k}+1\right)=p_{1}-p_{1}^{2}
Hence,
(p2pk+1)p12p1 \left(p_{2} \cdots p_{k}+1\right) \mid p_{1}^{2}-p_{1}
Pick p1p_{1} to be the smallest prime factor of nn. Then p2pk>p12p_{2} \cdots p_{k}>p_{1}^{2} if k>2k>2, which is a contradiction.

The only relations of concern are p(p+1)n(n+1)p(p+1) \mid n(n+1) and q(q+1)n(n+1)q(q+1) \mid n(n+1). The former yields p(p+1)pq(pq+1)p(p+1) \mid p q(p q+1), i.e. p+1q(pq+1)p+1 \mid q(p q+1), that is, p+1q(q1)p+1 \mid q(q-1); analogously q+1p(p1)q+1 \mid p(p-1). Without loss of generality assume p>qp>q. If qq does not divide p+1p+1, then since p+1p+1 and qq are relatively prime, we obtain from p+1q(q1)p+1 \mid q(q-1) that p+1p+1 divides q1q-1 and hence p<p+1q1<qp<p+1 \leq q-1<q, contradiction. Hence qq divides p+1p+1. Also, pp does not divide q+1q+1 due to p>qp>q (unless p=q+1p=q+1, i.e. p=3,q=2p=3, q=2, but then p+1q(q1)p+1 \nmid q(q-1) ) and now from q+1p(p1)q+1 \mid p(p-1) we deduce that q+1q+1 divides p1p-1.

Write p+1=mqp+1=m q for some positive integer mm. Then q+1q+1 divides p1=mq2=m(q+1)m2p-1=m q-2= m(q+1)-m-2, so q+1q+1 divides m+2m+2. On the other hand, p+1q(q1)p+1 \mid q(q-1) implies that mm divides q1q-1. If the ratio of the latter is greater than 1, then mq12m \leq \frac{q-1}{2}, but q+1q+1 dividing m+2m+2 from above insists on qm+1q \leq m+1, so mq12m2m \leq \frac{q-1}{2} \leq \frac{m}{2}, contradiction. Hence m=q1m=q-1 and we have proven the following: if n>1n>1 is composite and peculiar, then n=pqn=pq, where p>qp>q are primes and p=q2q1p=q^{2}-q-1.

Hence from now on we work with n=abn=ab, with a<ba<b primes. The only relations of concern are a(a+1)n(n+1)a(a+1) \mid n(n+1) and b(b+1)n(n+1)b(b+1) \mid n(n+1). The former yields a(a+1)ab(ab+1)a(a+1) \mid ab(ab+1), i.e. a+1b(ab+1)a+1 \mid b(ab+1), that is, a+1b(b1)a+1 \mid b(b-1); analogously b+1a(a1)b+1 \mid a(a-1). If aa does not divide b+1b+1, then since b+1b+1 and aa are relatively prime, we obtain from b+1a(a1)b+1 \mid a(a-1) that b+1b+1 divides a1a-1 and hence b<b+1a1<ab<b+1 \leq a-1<a, contradiction. Hence aa divides b+1b+1. Writing b+1=acb+1=ac, from b+1a(a1)b+1 \mid a(a-1) we have that cc divides a1a-1.

Now from b+1=acb+1=ac with ca1c \mid a-1 and a+1b(b1)a+1 \mid b(b-1) we derive that b=a2a1b=a^{2}-a-1 in a different (and longer) manner, without using the primality of bb until the final step. Note that since b=ac1c2(moda+1)b=ac-1 \equiv -c-2 \pmod{a+1}, we have a+1(c+1)(c+2)a+1 \mid (c+1)(c+2). Since ca1c \mid a-1, we may write a1=cda-1=cd, and note that cd2(moda+1)cd \equiv -2 \pmod{a+1}. We then have
0d(c+1)(c+2)=c2d3cd2d2(cd)+6(moda+1) 0 \equiv -d(c+1)(c+2) = -c^{2}d-3cd-2d \equiv 2(c-d)+6 \quad (\bmod a+1)
Since 1c,da11 \leq c, d \leq a-1, we have 2(cd)+62(a2)+6=2a+2|2(c-d)+6| \leq 2(a-2)+6=2a+2. Furthermore, we have c2c \geq 2 (otherwise b=ac1<ab=ac-1<a, contradiction), and so da12d \leq \frac{a-1}{2}, thus 2(cd)+611a>(a+1)2(c-d)+6 \geq 11-a>-(a+1). From these inequalities and equivalence (1), we obtain 2(cd)+6{0,a+1,2(a+1)}2(c-d)+6 \in\{0, a+1,2(a+1)\}. It is immediate to verify that these three possible values correspond to the following three cases, respectively:
(i) d=c+3d=c+3 and a=c2+3c+1a=c^{2}+3c+1;
(ii) d=2,c=a12,a=2c+1d=2, c=\frac{a-1}{2}, a=2c+1; and
(iii) d=1,c=a1d=1, c=a-1.
Substituting these values in b=ac1b=ac-1, we obtain in case (i), b=c3+3c2+c1=(c+1)(c2+2c1)b=c^{3}+3c^{2}+c-1=(c+1)(c^{2}+2c-1), and in case (ii), b=2c2+c1=(c+1)(2c1)b=2c^{2}+c-1=(c+1)(2c-1). In both cases these decompositions contradict the primality of bb, as c2c \geq 2. Thus we are left only with case (iii), where b=a2a+1b=a^{2}-a+1, as claimed.

In conclusion, a prime pp can only divide the peculiar numbers pp, p(p2p1)p(p^{2}-p-1) (if p2p1p^{2}-p-1 is prime) and pqpq where p=q2q1p=q^{2}-q-1 (if qq is prime). In particular, the greatest common divisor of more than three peculiar numbers must be 11. (Note that three peculiar numbers may indeed have a common divisor, e.g. 5,15=355, 15=3 \cdot 5 and 95=51995=5 \cdot 19 are all peculiar.)

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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