Maths Olympiad Prep

Library / HMMT February /1189 of 1302

HMMT February

Number theory Difficulty 6.0 AIME, harder Find the answer

For positive integers aa and bb such that aa is coprime to bb, define ord⁡b(a)\operatorname{ord}_{b}(a) as the least positive integer kk such that b∣ak−1b \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 ord⁡n(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)=(p−1)pk−1k, \lambda\left(p^{k}\right)=(p-1) p^{k-1}. - For a positive integer kk, λ(2k)={2k−2 if k≥32k−1 if k≤2\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)=∏(pi−1)piki−1\varphi(n)=\prod\left(p_{i}-1\right) p_{i}^{k_{i}-1}. Hence the intuition is roughly that the (pi−1)piki−1\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 n≥240n \geq 240 by doing casework on the prime divisors of z=φ(n)λ(n)z=\frac{\varphi(n)}{\lambda(n)}. Suppose p∣zp \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)≠2k−1\lambda\left(2^{k}\right) \neq 2^{k-1} in general). These correspond to either p2∣np^{2} \mid n or q∣nq \mid n with q≡1( mod p)q \equiv 1(\bmod p). Therefore n≥max⁡(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( mod p)1(\bmod p) are at least 2p+12 p+1 and 4p+14 p+1. For p≥5p \geq 5 this gives n>240n>240, so we may assume p≤3p \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 n∤24n \nmid 24 (and when n∣24n \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)≥4⋅24=64\varphi(n) \geq 4 \cdot 2^{4}=64 and v2(n)≤4v_{2}(n) \leq 4, so the smallest such integer is n=24⋅3⋅5=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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.