Carmichael function


In number theory, a branch of mathematics, the Carmichael function of a positive integer is the smallest positive integer such that
holds for every integer coprime to. In algebraic terms, is the exponent of the multiplicative group of integers modulo . As this is a finite abelian group, there must exist an element whose order equals the exponent,. Such an element is called a primitive -root modulo .
The Carmichael function is named after the American mathematician Robert Carmichael who defined it in 1910. It is also known as Carmichael's λ function, the reduced totient function, and the least universal exponent function.
The order of the multiplicative group of integers modulo is, where is Euler's totient function. Since the order of an element of a finite group divides the order of the group, divides. The following table compares the first 36 values of and .
123456789101112131415161718192021222324252627282930313233343536
11224262641021264416618461022220121862843081016126
112242646410412688166188121022820121812288301620162412

Numerical examples

  • . The set of numbers less than and coprime to 5 is. Hence Euler's totient function has value and the value of Carmichael's function,, must be a divisor of 4. The divisor 1 does not satisfy the definition of Carmichael's function since except for. Neither does 2 since. Hence. Indeed,. Both 2 and 3 are primitive -roots modulo 5 and also primitive roots modulo 5.
  • . The set of numbers less than and coprime to 8 is. Hence and must be a divisor of 4. In fact since. The primitive -roots modulo 8 are 3, 5, and 7. There are no primitive roots modulo 8.

Recurrence for

The Carmichael lambda function of a prime power can be expressed in terms of the Euler totient. Any number that is not 1 or a prime power can be written uniquely as the product of distinct prime powers, in which case of the product is the least common multiple of the of the prime power factors. Specifically, is given by the recurrence
Euler's totient for a prime power, that is, a number with prime and, is given by

Carmichael's theorems

Carmichael proved two theorems that, together, establish that if is considered as defined by the recurrence of the previous section, then it satisfies the property stated in the introduction, namely that it is the smallest positive integer such that for all relatively prime to.
This implies that the order of every element of the multiplicative group of integers modulo divides. Carmichael calls an element for which is the least power of congruent to 1 a primitive λ-root modulo n.
If is one of the primitive -roots guaranteed by the theorem, then has no positive integer solutions less than, showing that there is no positive such that for all relatively prime to.
The second statement of Theorem 2 does not imply that all primitive -roots modulo are congruent to powers of a single root. For example, if, then while and. There are four primitive -roots modulo 15, namely 2, 7, 8, and 13 as. The roots 2 and 8 are congruent to powers of each other and the roots 7 and 13 are congruent to powers of each other, but neither 7 nor 13 is congruent to a power of 2 or 8 and vice versa. The other four elements of the multiplicative group modulo 15, namely 1, 4, 11, and 14, are not primitive -roots modulo 15.
For a contrasting example, if, then and. There are two primitive -roots modulo 9, namely 2 and 5, each of which is congruent to the fifth power of the other. They are also both primitive -roots modulo 9.

Properties of the Carmichael function

In this section, an integer is divisible by a nonzero integer if there exists an integer such that. This is written as

A consequence of minimality of

Suppose for all numbers coprime with. Then.
Proof: If with, then
for all numbers coprime with. It follows that since and is the minimal positive exponent for which the congruence holds for all coprime with.

divides

This follows from elementary group theory, because the exponent of any finite group must divide the order of the group. is the exponent of the multiplicative group of integers modulo while is the order of that group. In particular, the two must be equal in the cases where the multiplicative group is cyclic due to the existence of a primitive root, which is the case for odd prime powers.
We can thus view Carmichael's theorem as a sharpening of Euler's theorem.

Divisibility

Proof.
By definition, for any integer with, we have that, and therefore. This establishes that for all relatively prime to. By the consequence of minimality proved above, we have.

Composition

For all positive integers and it holds that
This is an immediate consequence of the recurrence for the Carmichael function.

Exponential cycle length

If is the biggest exponent in the prime factorization of, then for all and all,
In particular, for square-free, for all we have

Average value

For any :
with the constant
and, the Euler–Mascheroni constant.
The following table gives some overview over the first values of the function, for both, the exact average and its Erdős-approximation.
Additionally given is some overview over the more easily accessible with
  • .
There, the table entry in row number 26 at column
  • → 60.49
indicates that 60.49% of the integers have meaning that the majority of the values is exponential in the length of the input, namely

Prevailing interval

For all numbers and all but positive integers :
with the constant

Lower bounds

For any sufficiently large number and for any, there are at most
positive integers such that.

Minimal order

For any sequence of positive integers, any constant, and any sufficiently large :

Small values

For a constant and any sufficiently large positive, there exists an integer such that
Moreover, is of the form
for some square-free integer.

Image of the function

The set of values of the Carmichael function has counting function
where

Use in cryptography

The Carmichael function is important in cryptography due to its use in the RSA encryption algorithm.

Proof of Theorem 1

For, a prime, Theorem 1 is equivalent to Fermat's little theorem:
For prime powers,, if
holds for some integer, then raising both sides to the power gives
for some other integer. By induction it follows that for all relatively prime to and hence to. This establishes the theorem for or any odd prime power.

Sharpening the result for higher powers of two

For coprime to 2 we have for some integer. Then,
where is an integer. With, this is written
Squaring both sides gives
where is an integer. It follows by induction that
for all and all coprime to.

Integers with multiple prime factors

By the unique factorization theorem, any can be written in a unique way as
where are primes and are positive integers. The results for prime powers establish that, for,
From this it follows that
where, as given by the recurrence,
From the Chinese remainder theorem one concludes that