For positive integers and such that is coprime to , define as the least positive integer such that , and define to be the number of positive integers less than or equal to which are coprime to . Find the least positive integer such that for all positive integers coprime to .
Solution
The maximum order of an element modulo is the Carmichael function, denoted . The following properties of the Carmichael function are established: - For primes and positive integers . - For a positive integer , - For a positive integer with prime factorization , Meanwhile, for , we have . Hence the intuition is roughly that the terms must share divisors in order to reach a high value of . We will now show that by doing casework on the prime divisors of . Suppose and . This requires two terms among to be multiples of because is the lcm of the terms whereas the product of these numbers has the same number of factors of as (note that this does not hold for because in general). These correspond to either or with . Therefore because the smallest primes congruent to are at least and . For this gives , so we may assume . First we address the case . This means that two numbers among divide . As , we discard primes greater than 31. Of the remaining numbers, we have No candidate value of is the product of just two of these numbers as the gcd of any two of the associated values is at most 6. Furthermore, multiplying by just 2 will not affect or , 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 , which does not work. (A close candidate is , for which .) The remaining case is when the only prime divisors of are 2. It is not hard to see that when (and when it's clear that , so we do not need to consider them). When , we need and , so the smallest such integer is , which we can check does indeed satisfy . It is not difficult to check that higher values of will not yield any below 240, so 240 is indeed the smallest possible . Note: The sequence is given by A034380 in the OEIS.