Maths Olympiad Prep

Track / Stage 7 / 213 of 300 #1613 of 1964

Problem 1613

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.4 Find the answer

Find all prime numbers pp which satisfy the following condition: For any prime q<pq < p, if p=kq+r,0r<qp = kq + r, 0 \leq r < q, there does not exist an integer q>1q > 1 such that a2ra^{2} \mid r.

A number or a short expression. Spacing, $ signs and \frac vs / are all fine.

Official solution

To find all prime numbers p p which satisfy the given condition, we need to show that for any prime q<p q < p , if p=kq+r p = kq + r with 0r<q 0 \leq r < q , there does not exist an integer a>1 a > 1 such that a2r a^2 \mid r .

We will prove that if p>13 p > 13 is prime, there is a prime q<p q < p such that the least residue of p p modulo q q is not square-free. In fact, we will prove a stronger statement: if p>13 p > 13 is odd (not necessarily prime), there is a prime q q such that the least residue of p p modulo q q is either 4 4 , 8 8 , or 9 9 .

1. **Assume p>13 p > 13 is a counterexample**:
Suppose that some odd p>13 p > 13 is a counterexample: there is no prime q<p q < p for which the remainder upon dividing p p by q q belongs to {4,8,9} \{4, 8, 9\} .

2. **Consider p4 p - 4 **:
If there is a prime q>3 q > 3 dividing p4 p - 4 , then 4 4 is the least residue of p p modulo q q , which contradicts our assumption on p p . Since p p is odd, p4 p - 4 is also not divisible by 2 2 , so the only prime divisor of p4 p - 4 must be 3 3 . In other words, p4=3k p - 4 = 3^k for some natural number k k .

3. **Consider p8 p - 8 **:
If p8 p - 8 has any prime factor greater than 8 8 , we once again contradict our assumption on p p . Thus, we may assume that all of its prime factors belong to {2,3,5,7} \{2, 3, 5, 7\} . But 2 2 is impossible since p8 p - 8 is odd, and 3 3 is impossible since p4 p - 4 is divisible by 3 3 . Thus, p8 p - 8 is divisible only by 5 5 , 7 7 , or both.

4. **Consider p9 p - 9 **:
For the same reason as above, it too can only have prime factors among {2,3,5,7} \{2, 3, 5, 7\} . Since p4 p - 4 is divisible by 3 3 and not by 5 5 , p9 p - 9 is divisible by neither 3 3 nor 5 5 . It may or may not be divisible by 7 7 , but we claim that in either case, p8 p - 8 cannot be divisible by 7 7 . Here's why: If p9 p - 9 is divisible by 7 7 , then p8 p - 8 certainly isn't. If p9 p - 9 is not divisible by 7 7 , then it must be a power of 2 2 (since no other prime factors are available). But powers of 2 2 can only leave remainders of 1,2,4 1, 2, 4 upon division by 7 7 , so p8 p - 8 , which is one greater than a power of 2 2 , cannot be divisible by 7 7 .

5. **Conclude p8 p - 8 is a power of 5 5 **:
Recall that the only possible prime factors of p8 p - 8 were 5 5 and 7 7 , and we just ruled out 7 7 . We may therefore conclude that p8 p - 8 is a power of 5 5 : p8=5m p - 8 = 5^m . Comparing this with p4=3k p - 4 = 3^k , we obtain:
5m+4=3k 5^m + 4 = 3^k

6. **Solve the equation 5m+4=3k 5^m + 4 = 3^k **:
Reducing modulo 4 4 , we see that k k must be even, so k=2t k = 2t for some t t . Now,
5m=32t4=(3t2)(3t+2) 5^m = 3^{2t} - 4 = (3^t - 2)(3^t + 2)
But these factors cannot both be divisible by 5 5 (they differ by 4 4 ), so the only way their product can be a power of 5 5 is if one of them is 1 1 and the other is a power of 5 5 . This forces t=1 t = 1 , k=2 k = 2 as required. Thus, the only solution is:
5+4=32    p=13 5 + 4 = 3^2 \implies p = 13

Therefore, the only prime number p p that satisfies the given condition is p=13 p = 13 .

The final answer is 13\boxed{13}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.