Maths Olympiad Prep

Library / Japan Mathematical Olympiad /18 of 84

Japan Mathematical Olympiad

Number theory Difficulty 6.1 National Olympiad Prove it Japan

Let pp be a prime. Determine all positive integers nn for which the following condition is satisfied for all the integers xx:
Condition: If xn−1x^n - 1 is divisible by pp, then it is also divisible by p2p^2.

Solution

If, for a pair of integers a,ba, b and a positive integer mm, a−ba - b is divisible by mm, we write a−b≡0(modm)a - b \equiv 0 \pmod{m}.
We will show that the numbers nn we seek are those of the form kpkp, where kk is a positive integer.
Let us first show that if nn satisfies the condition of the problem, then nn must be a multiple of pp. To see this let x=p+1x = p + 1. Then from xn−1≡1n−1≡0(modp)x^n - 1 \equiv 1^n - 1 \equiv 0 \pmod{p}, we get the fact that xn−1x^n - 1 is divisible by pp, and hence by the condition of the problem, is divisible by p2p^2 as well. By using the binomial expansion we get (p+1)n≡np+1(modp2)(p+1)^n \equiv np + 1 \pmod{p^2}, and therefore, xn−1≡np(modp2)x^n - 1 \equiv np \pmod{p^2}. This implies that npnp is a multiple of p2p^2, and therefore, nn must be a multiple of pp.

Conversely, we will show that if n=kpn = kp for a positive integer kk, then it satisfies the condition of the problem. First we note that xn=(xk)p≡xk(modp)x^n = (x^k)^p \equiv x^k \pmod{p} holds by Fermat's Little Theorem. This shows that if xn−1x^n - 1 is a multiple of pp, then so is xk−1x^k - 1. Now we have
xn−1xk−1=1+xk+x2k+⋯+x(p−1)k≡1+1+⋯+1⏟p≡0(modp), \frac{x^n - 1}{x^k - 1} = 1 + x^k + x^{2k} + \dots + x^{(p-1)k} \equiv \underbrace{1+1+\dots+1}_{p} \equiv 0 \pmod{p},
from which we conclude that xn−1=(xk−1)×xn−1xk−1x^n - 1 = (x^k - 1) \times \frac{x^n - 1}{x^k - 1} is a multiple of p2p^2. Thus, we see that n=kpn = kp satisfies the condition of the problem.

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

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