Maths Olympiad Prep

Library / /39 of 39

Number theory Difficulty 7.4 National olympiad, round 2 Prove it Ireland

a) For each integer aa not divisible by 77, let N(a)N(a) denote the least among all positive integers nn such that 4949 divides an1a^n - 1. For each positive integer NN, let AN:={aZ:0<a<49 and N(a)=N}A_N := \{a \in \mathbb{Z} : 0 < a < 49 \text{ and } N(a) = N\}. Show that
A1=A2=1,A3=A6=2,A7=A14=6,A21=A42=12 \begin{align*} |A_1| &= |A_2| = 1, & |A_3| &= |A_6| = 2, \\ |A_7| &= |A_{14}| = 6, & |A_{21}| &= |A_{42}| = 12 \end{align*}
and AN=A_N = \emptyset for all other values of NN.

b) Find the least positive integer nn such that 20092009 divides an1a^n - 1 for all integers aa relatively prime to 20092009.

Solution

a) Unless otherwise specified, everywhere in part a), \equiv will denote congruence modulo 4949. Consider the six cases a=7k±1a = 7k \pm 1, 7k±27k \pm 2 and 7k±37k \pm 3.

1. If a=7k+1a = 7k + 1, with k{0,1,...,6}k \in \{0, 1, ..., 6\}, then an=7kn+1a^n = 7kn + 1, so an1(mod7)a^n \equiv 1 \pmod{7}
k=0k = 0 or nn is a multiple of 77. Thus 1A11 \in A_1 and 7k+1A77k + 1 \in A_7 for k{1,...,6}k \in \{1, ..., 6\}.

2. If a=7k1a = 7k - 1, with k{1,...,7}k \in \{1, ..., 7\}, then an=(1)n1(7kn1)a^n = (-1)^{n-1}(7kn - 1). If nn is odd, then an1(mod7kn)2a^n \equiv 1 \pmod{7kn} \equiv 2 which cannot hold as 727 \nmid 2. If nn is even, then an1(mod7kn)0a^n \equiv 1 \pmod{7kn} \equiv 0 which holds when k=7k = 7 or nn is a multiple of 1414.
Thus a=48A2a = 48 \in A_2 and 7k1A147k - 1 \in A_{14} for k{1,...,6}k \in \{1, ..., 6\}.

3. If a=7k+2a = 7k + 2, with k{0,1,...,6}k \in \{0, 1, ..., 6\}, then an=2n17kn+2na^n = 2^{n-1}7kn + 2^n, so
an1(mod2n17kn+49l)12n for some integer l. a^n \equiv 1 \pmod{2^{n-1}7kn + 49l} \equiv 1 - 2^n \text{ for some integer } l.
This implies in a first instance that 7(12n)7|(1 - 2^n), i.e. n=3mn = 3m for some integer mm. Then
12n7=123m7=(123)(1+23++(23)m1)7=m(mod7) \frac{1 - 2^n}{7} = \frac{1 - 2^{3m}}{7} = \frac{(1 - 2^3)(1 + 2^3 + \dots + (2^3)^{m-1})}{7} = -m \pmod{7}
and 2n123m14(mod7). \text{and } 2^{n-1} \equiv 2^{3m-1} \equiv 4 \pmod{7}.
Therefore, if n=3mn = 3m and k=4k = 4, there exists an integer ll such that
2n1kn+7l=12n7. 2^{n-1}kn + 7l = \frac{1 - 2^n}{7}.
This implies a=30A3a = 30 \in A_3. Moreover, when 7n7 \nmid n, then any two solutions kk and kk' of the equation above differ by a multiple of 77. On the other hand, if 7n7|n, any value of kk is a solution, so a=7k+2A21a = 7k + 2 \in A_{21} for k{0,...,6}{4}k \in \{0, ..., 6\} \setminus \{4\}.

4. If a=7k2a = 7k - 2, with k{1,,7}k \in \{1, \dots, 7\}, then an=(2)n1(7kn2)a^n = (-2)^{n-1}(7kn - 2). If nn is odd, then an=1    2n17kn=2n+1a^n = 1 \iff 2^{n-1}7kn = 2^n + 1 which implies that 7(1+2n)7|(1+2^n). A short check of the possible values of 1+2n1+2^n modulo 77 shows that this is not possible. If nn is even, then an=1    2n17kn+49l=12na^n = 1 \iff -2^{n-1}7kn + 49l = 1-2^n for some integer ll. Similarly to the previous case, this implies a=732=19A6a = 7 \cdot 3 - 2 = 19 \in A_6 and a=7k2A42a = 7k - 2 \in A_{42} for k{0,,6}{3}k \in \{0, \dots, 6\} \setminus \{3\}.

5. If a=7k+3a = 7k + 3, with k{0,1,,6}k \in \{0, 1, \dots, 6\}, then an=3n17kn+3na^n = 3^{n-1}7kn + 3^n, so an=1    3n17kn+49l=13na^n = 1 \iff 3^{n-1}7kn + 49l = 1 - 3^n for some integer ll. This implies that 7(13n)7|(1-3^n), i.e. n=6mn = 6m for some integer mm. Then
13n7=136m7=(136)(1+36++(36)m1)7mmod7and 3n15mod7 \frac{1-3^n}{7} = \frac{1-3^{6m}}{7} = \frac{(1-3^6)(1+3^6+\dots+(3^6)^{m-1})}{7} \equiv m \quad \mod 7 \\ \text{and } 3^{n-1} \equiv 5 \quad \mod 7
Therefore, if n=6mn = 6m and k=4k = 4, there exists an integer ll such that the equation
3n1kn+7l=13n7 3^{n-1}kn + 7l = \frac{1-3^n}{7}
holds, so a=31A6a = 31 \in A_6. As in the previous cases, a=7k+3A42a = 7k + 3 \in A_{42} for k{0,,6}{4}k \in \{0, \dots, 6\} \setminus \{4\}.

6. If a=7k3a = 7k - 3, with k{1,,7}k \in \{1, \dots, 7\}, then an=(3)n1(7kn2)a^n = (-3)^{n-1}(7kn - 2). If nn is odd, then an=1    3n17kn=3n+1a^n = 1 \iff 3^{n-1}7kn = 3^n + 1 which implies that 7(1+3n)7|(1+3^n). A short check of the possible values of 1+3n1+3^n modulo 77 shows that this is equivalent to n=6m+3n = 6m + 3 and then an=1    3n1kn=3n+17a^n = 1 \iff 3^{n-1}kn = \frac{3^{n+1}}{7}, where the right hand side becomes
1+33(2m+1)7=(1+33)(133++(33)2m)74(2m+1)mod7, \frac{1+3^{3(2m+1)}}{7} = \frac{(1+3^3)(1-3^3+\dots+(3^3)^{2m})}{7} \equiv 4(2m+1) \quad \mod 7,
an=1a^n = 1 becomes 36m+3k(2m+1)=4(2m+1)(mod7)3^{6m+3}k(2m+1) = 4(2m+1) \pmod 7, equivalently 6k(2m+1)=4(2m+1)(mod7)6k(2m+1) = 4(2m+1) \pmod 7, which holds for all mm when k=3k=3, and for all kk when (2m+1)0(mod7)(2m+1) \equiv 0 \pmod 7. Thus a=733=18A3a = 7 \cdot 3 - 3 = 18 \in A_3 while a=7k3A21a = 7k - 3 \in A_{21} for k{1,,7}{3}k \in \{1, \dots, 7\} \setminus \{3\}. If nn is even, then an=1    3n17kn+49l=13na^n = 1 \iff -3^{n-1}7kn + 49l = 1 - 3^n for some integer ll. Similarly to the previous case, this implies a6=1a^6 = 1 for a=732=18a = 7 \cdot 3 - 2 = 18 and a42=1a^{42} = 1 for a=7k2a = 7k - 2 and k{0,,6}{3}k \in \{0, \dots, 6\} \setminus \{3\}, which was already known from the case of nn odd.

b) 2009=49412009 = 49 \cdot 41. From a) it follows that 4949 divides a421a^{42} - 1 for all integers aa relatively prime to 4949. From Fermat's theorem, 4141 divides a401a^{40} - 1 for all integers aa relatively prime to 4141. The least common multiple of 4040 and 4242 is 840840 and thus 20092009 divides a8401a^{840} - 1 for all integers aa relatively prime to 20092009. It now suffices to find an integer aa such that 2009(an1)840n2009|(a^n - 1) \Leftrightarrow 840|n. It is natural to try aA42={3,5,10,12,17,24,26,33,38,40,45}a \in A_{42} = \{3, 5, 10, 12, 17, 24, 26, 33, 38, 40, 45\}. Modulo 4141, we have 3813^8 \equiv 1, 52015^{20} \equiv 1 and 105110^5 \equiv 1, but n=40n = 40 is the least power such that 12n112^n \equiv 1, so n=840n = 840 is indeed the least power such that 2009(12n1)2009|(12^n - 1).

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.