In
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, a branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the Carmichael function of a
positive integer
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
is the smallest positive integer such that
:
holds for every integer
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
to . In algebraic terms, is the
exponent
In mathematics, exponentiation, denoted , is an operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication of the base: that is, i ...
of the
multiplicative group of integers modulo . As this is a
finite abelian group, there must exist an element whose
order
Order, ORDER or Orders may refer to:
* A socio-political or established or existing order, e.g. World order, Ancien Regime, Pax Britannica
* Categorization, the process in which ideas and objects are recognized, differentiated, and understood
...
equals the exponent, . Such an element is called a primitive -root modulo .
The Carmichael function is named after the American mathematician
Robert Carmichael
Robert Daniel Carmichael (March 1, 1879 – May 2, 1967) was an American mathematician.
Biography
Carmichael was born in Goodwater, Alabama. He attended Lineville College, briefly, and he earned his bachelor's degree in 1898, while he was s ...
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
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
. 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 (in bold if they are different; the values of such that they are different are listed in ).
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
In arithmetic and number theory, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two integers ''a'' and ''b'', usually denoted by , is the smallest positive integer that is divisible by both ''a'' and ...
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 (mod ) a ''primitive λ-root modulo n''. (This is not to be confused with a
primitive root modulo , which Carmichael sometimes refers to as a primitive
-root modulo .)
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 (which satisfies
), 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
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
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
In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
, because the exponent of any
finite group
In abstract algebra, a finite group is a group whose underlying set is finite. Finite groups often arise when considering symmetry of mathematical or physical objects, when those objects admit just a finite number of structure-preserving tra ...
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
In number theory, Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem) states that, if and are coprime positive integers, then a^ is congruent to 1 modulo , where \varphi denotes Euler's totient function; that ...
.
Divisibility
:
Proof.
By definition, for any integer
with
(and thus also
), 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 (including those not coprime to ) and all ,
:
In particular, for
square-free {{no footnotes, date=December 2015
In mathematics, a square-free element is an element ''r'' of a unique factorization domain ''R'' that is not divisible by a non-trivial square. This means that every ''s'' such that s^2\mid r is a unit of ''R''.
...
(), for all we have
:
Average value
For any :
[Sándor & Crstici (2004) p.194]
:
(called Erdős approximation in the following) with the constant
:
and , the
Euler–Mascheroni constant
Euler's constant (sometimes called the Euler–Mascheroni constant) is a mathematical constant, usually denoted by the lowercase Greek letter gamma (), defined as the limiting difference between the harmonic series and the natural logarith ...
.
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 (a "prevailing" majority):
:
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 :[Theorem 1 in Erdős (1991)][Sándor & Crstici (2004) p.193]
:
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
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (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 (powers of) 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 .[Carmichael (1914) pp.38–39]
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
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
one concludes that
:
See also
* Carmichael number
In number theory, a Carmichael number is a composite number which in modular arithmetic satisfies the congruence relation:
: b^n\equiv b\pmod
for all integers . The relation may also be expressed in the form:
: b^\equiv 1\pmod
for all integers b ...
Notes
References
*
*
*
*
{{Totient
Modular arithmetic
Functions and mappings