Maths Olympiad Prep

Library / /7 of 19

Number theory Difficulty 5.9 AIME, harder Prove it Romania

Let n2n \ge 2 be a positive integer. Prove that the following assertions are equivalent:
a) for all integer xx coprime with nn the congruence x61(modn)x^6 \equiv 1 \pmod{n} holds;
b) nn divides 504.

Solution

We have 504=23327504 = 2^3 \cdot 3^2 \cdot 7.

a) \Rightarrow b). First we prove that (n,5)=1(n, 5) = 1. If (n,5)1(n, 5) \neq 1 then n=5kn = 5k.
The sequence (5m+2)m1(5m + 2)_{m \ge 1} is an arithmetic sequence with ratio 5. Its first term being coprime with the ratio, from Dirichlet's Theorem it follows that the sequence contains infinitely many primes. Then, there exists a prime pp such that p=5m+2p = 5m + 2 and p>np > n. As (p,n)=1(p, n) = 1 it follows that p61(modn)p^6 \equiv 1 \pmod n, i.e., n(5m+2)61n \mid (5m + 2)^6 - 1. As 5n5 \mid n and (5m+2)6=M5+26(5m + 2)^6 = M_5 + 2^6, we get that 5 divides 63, absurd!
As (n,5)=1(n, 5) = 1, according to the hypothesis 561(modn)5^6 \equiv 1 \pmod n, i.e. n(561)n \mid (5^6 - 1).
But 561=(531)(53+1)=(51)(52+5+1)(5+1)(525+1)=431621=23327315^6 - 1 = (5^3 - 1)(5^3 + 1) = (5 - 1)(5^2 + 5 + 1)(5 + 1)(5^2 - 5 + 1) = 4 \cdot 31 \cdot 6 \cdot 21 = 2^3 \cdot 3^2 \cdot 7 \cdot 31, hence n2332731n \mid 2^3 \cdot 3^2 \cdot 7 \cdot 31 (1)
From (1) one can notice that (n,11)=1(n, 11) = 1, hence 1161(modn)11^6 \equiv 1 \pmod n, i.e., n(1161)n \mid (11^6 - 1). But 1161=(1131)(113+1)=(111)(112+11+1)(11+1)(11211+1)=101331211111^6 - 1 = (11^3 - 1)(11^3 + 1) = (11 - 1)(11^2 + 11 + 1)(11 + 1) \cdot (11^2 - 11 + 1) = 10 \cdot 133 \cdot 12 \cdot 111, therefore
n2332571937(2) n \mid 2^3 \cdot 3^2 \cdot 5 \cdot 7 \cdot 19 \cdot 37 \quad (2)
From (1) and (2) it follows that n23327n \mid 2^3 \cdot 3^2 \cdot 7, i.e., n504n \mid 504.

b) \Rightarrow a). Let xZx \in \mathbb{Z}. Then x61=(x21)(x4+x2+1)x^6 - 1 = (x^2 - 1)(x^4 + x^2 + 1). We have:
1. if (x,2)=1(x, 2) = 1 then x1x - 1 and x+1x + 1 are consecutive even numbers, hence 23x612^3 \mid x^6 - 1;
2. if (x,7)=1(x, 7) = 1, from Fermat's Theorem we obtain 7x617 \mid x^6 - 1;
3. if (x,3)=1(x, 3) = 1 then x=3k±1x = 3k \pm 1. Obviously 3x13 \mid x-1 or 3x+13 \mid x+1, hence 3x213 \mid x^2-1. We also have
x4+x2+1=(3k±1)4+(3k±1)2+1=(M3+1)+(M3+1)+1=M3, i.e.,3x4+x2+1. x^4 + x^2 + 1 = (3k \pm 1)^4 + (3k \pm 1)^2 + 1 = (M_3 + 1) + (M_3 + 1) + 1 = M_3, \text{ i.e.,} \\ 3 \mid x^4 + x^2 + 1.
It follows that for (x,3)=1(x, 3) = 1 we have 32x613^2 \mid x^6 - 1.
If nNn \in \mathbb{N}, n2n \ge 2 and n504n \mid 504, then n=2a3b7cn = 2^a \cdot 3^b \cdot 7^c with a{0,1,2,3}a \in \{0, 1, 2, 3\}, b{0,1,2}b \in \{0, 1, 2\}, c{0,1}c \in \{0, 1\} and a,b,ca, b, c not all of them 0. From the three statements above it follows that for all integer xx coprime with nn we have nx61n \mid x^6 - 1, i.e. x61(modn)x^6 \equiv 1 \pmod n.

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 and solution reproduced as published; topic and difficulty added by this site.