Maths Olympiad Prep

Library / /851 of 860

Number theory Difficulty 6.0 AIME, harder Find the answer

For positive integers aa and bb such that aa is coprime to bb, define ordb(a)\operatorname{ord}_{b}(a) as the least positive integer kk such that bak1b \mid a^{k}-1, and define φ(a)\varphi(a) to be the number of positive integers less than or equal to aa which are coprime to aa. Find the least positive integer nn such that ordn(m)<φ(n)10\operatorname{ord}_{n}(m)<\frac{\varphi(n)}{10} for all positive integers mm coprime to nn.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

The maximum order of an element modulo nn is the Carmichael function, denoted λ(n)\lambda(n). The following properties of the Carmichael function are established: - For primes p>2p>2 and positive integers k,λ(pk)=(p1)pk1k, \lambda\left(p^{k}\right)=(p-1) p^{k-1}. - For a positive integer kk, λ(2k)={2k2 if k32k1 if k2\lambda\left(2^{k}\right)= \begin{cases}2^{k-2} & \text { if } k \geq 3 \\ 2^{k-1} & \text { if } k \leq 2\end{cases} - For a positive integer nn with prime factorization n=pikin=\prod p_{i}^{k_{i}}, λ(n)=lcm(λ(p1k1),λ(p2k2),)\lambda(n)=\operatorname{lcm}\left(\lambda\left(p_{1}^{k_{1}}\right), \lambda\left(p_{2}^{k_{2}}\right), \ldots\right) Meanwhile, for n=pikin=\prod p_{i}^{k_{i}}, we have φ(n)=(pi1)piki1\varphi(n)=\prod\left(p_{i}-1\right) p_{i}^{k_{i}-1}. Hence the intuition is roughly that the (pi1)piki1\left(p_{i}-1\right) p_{i}^{k_{i}-1} terms must share divisors in order to reach a high value of φ(n)λ(n)\frac{\varphi(n)}{\lambda(n)}. We will now show that n240n \geq 240 by doing casework on the prime divisors of z=φ(n)λ(n)z=\frac{\varphi(n)}{\lambda(n)}. Suppose pzp \mid z and p>2p>2. This requires two terms among λ(p1k1),λ(p2k2),\lambda\left(p_{1}^{k_{1}}\right), \lambda\left(p_{2}^{k_{2}}\right), \ldots to be multiples of pp because λ(n)\lambda(n) is the lcm of the terms whereas the product of these numbers has the same number of factors of pp as φ(n)\varphi(n) (note that this does not hold for p=2p=2 because λ(2k)2k1\lambda\left(2^{k}\right) \neq 2^{k-1} in general). These correspond to either p2np^{2} \mid n or qnq \mid n with q1(modp)q \equiv 1(\bmod p). Therefore nmax(p2(2p+1),(2p+1)(4p+1))n \geq \max \left(p^{2}(2 p+1),(2 p+1)(4 p+1)\right) because the smallest primes congruent to 1(modp)1(\bmod p) are at least 2p+12 p+1 and 4p+14 p+1. For p5p \geq 5 this gives n>240n>240, so we may assume p3p \leq 3. First we address the case p=3p=3. This means that two numbers among 9,7,13,19,31,37,9,7,13,19,31,37, \ldots divide nn. As 7×37>2407 \times 37>240, we discard primes greater than 31. Of the remaining numbers, we have λ(9)=6,λ(7)=6,λ(13)=12,λ(19)=18,λ(31)=30\lambda(9)=6, \lambda(7)=6, \lambda(13)=12, \lambda(19)=18, \lambda(31)=30 No candidate value of nn is the product of just two of these numbers as the gcd of any two of the associated λ\lambda values is at most 6. Furthermore, multiplying by just 2 will not affect φ(n)\varphi(n) or λ(n)\lambda(n), so we must multiply at least two of these numbers by a number greater than 2. Throwing out numbers greater than 240, this leaves only 3×9×73 \times 9 \times 7, which does not work. (A close candidate is 3×7×13=2733 \times 7 \times 13=273, for which φ(n)=144,λ(n)=12\varphi(n)=144, \lambda(n)=12.) The remaining case is when the only prime divisors of φ(n)λ(n)\frac{\varphi(n)}{\lambda(n)} are 2. It is not hard to see that λ(n)4\lambda(n) \geq 4 when n24n \nmid 24 (and when n24n \mid 24 it's clear that ϕ(n)8\phi(n) \leq 8, so we do not need to consider them). When λ(n)=4\lambda(n)=4, we need φ(n)424=64\varphi(n) \geq 4 \cdot 2^{4}=64 and v2(n)4v_{2}(n) \leq 4, so the smallest such integer is n=2435=240n=2^{4} \cdot 3 \cdot 5=240, which we can check does indeed satisfy φ(n)λ(n)>10\frac{\varphi(n)}{\lambda(n)}>10. It is not difficult to check that higher values of λ(n)\lambda(n) will not yield any nn below 240, so 240 is indeed the smallest possible nn. Note: The sequence φ(n)λ(n)\frac{\varphi(n)}{\lambda(n)} is given by A034380 in the OEIS.

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.