🌐 US-Proxy
id="topics">
TOPICS
Search

Carmichael Function


The term "Carmichael function" has two definitions. One is the reduced totient function (also called the least universal exponent function), defined as the smallest positive integer lambda(n) such that k^(lambda(n))=1 (mod n) for all integers k relatively prime to the positive integer n. For n>=2 and an integer a relatively prime to n, its multiplicative order (mod n) divides lambda(n) (Ribenboim 1989). The first few values of this function, implemented as CarmichaelLambda[n], are 1, 1, 2, 2, 4, 2, 6, 2, 6, 4, 10, ... (OEIS A002322).

It is given by the formula

 lambda(n)=LCM[lambda(p_i^(alpha_i))]_i,
(1)

where n=product_(i)p_i^(alpha_i) is the prime factorization of n>=2, with distinct primes p_i and positive integer exponents alpha_i, so p_i^(alpha_i) are the primaries of n. The initial value is lambda(1)=1.

For n>=2, it can be defined recursively as follows, where p is a prime number and alpha is a positive integer:

 lambda(n)={phi(n)   for n=p^alpha, with p=2 and alpha<=2, or p>=3; 1/2phi(n)   for n=2^alpha and alpha>=3; LCM[lambda(p_i^(alpha_i))]_i   for n=product_(i)p_i^(alpha_i) with at least two distinct prime factors.
(2)

Here phi is the totient function. For positive integers n, some special values include

 lambda(2^n)={1   for n=1; 2   for n=2; 2^(n-2)   for n>=3
(3)

and

 lambda(n!)={1   for n=1, n=2; 2   for n=3; 4   for n=5; (n!)/(2n#)   otherwise,
(4)

where n# is a primorial (S. M. Ruiz, pers. comm., Jul. 5, 2009).

The second convention, denoted lambda^'(n), takes the least common multiple (LCM) of the totient function values of the prime power factors of n,

 lambda^'(n)=LCM[(p_i-1)p_i^(alpha_i-1)]_i,
(5)

with lambda^'(1)=1. The values of lambda^'(n) for the first few n are 1, 1, 2, 2, 4, 2, 6, 4, 6, 4, 10, 2, 12, ... (OEIS A011773).

This function has the special value

 lambda^'(p^r)=phi(p^r)
(6)

for p an odd prime and r a positive integer.


See also

Modulo Multiplication Group, Reduced Totient Function, Totient Function

Related Wolfram sites

https://functions.wolfram.com/NumberTheoryFunctions/CarmichaelLambda/

Explore with Wolfram|Alpha

References

Ribenboim, P. The Book of Prime Number Records, 2nd ed. New York: Springer-Verlag, p. 27, 1989.Riesel, H. "Carmichael's Function." Prime Numbers and Computer Methods for Factorization, 2nd ed. Boston, MA: Birkhäuser, pp. 273-275, 1994.Sloane, N. J. A. Sequences A002322/M0298 and A011773 in "The On-Line Encyclopedia of Integer Sequences."Vardi, I. Computational Recreations in Mathematica. Redwood City, CA: Addison-Wesley, p. 226, 1991.

Referenced on Wolfram|Alpha

Carmichael Function

Cite this as:

Weisstein, Eric W. "Carmichael Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CarmichaelFunction.html

Subject classifications