Carmichael function


The value of the Carmichael functionMathworldPlanetmath (or universalPlanetmathPlanetmath exponent function or reduced totient function) ψ(n) (or λ(n)) for a given positive integer n is the smallest exponent m such that for any k coprimeMathworldPlanetmath to n the congruenceMathworldPlanetmathPlanetmathPlanetmath km1modn is always true.

When n is a prime or a square of a prime, the equality ψ(n)=ϕ(n) holds (where ϕ(n) is Euler’s totient function).

For powers of 2 greater than 4,

ψ(2a)=ϕ(2a)2

(with a>2).

For all other positive integers the value of Carmichael’s function is the least common multipleMathworldPlanetmath of all the dividing primes raised to the appropriate powers (e.g., to calculate ψ(504) we’d reckon ψ(23), ψ(32) and ψ(7) and find the LCM of these).

SequenceMathworldPlanetmath A002322 in Sloane’s OEIS gives values of ψ(n) for 0<n<82.

So, for example, ψ(16)=4. This means that any odd numberMathworldPlanetmathPlanetmath raised to the fourth power is one more than a multiple of 16. If we take a few small odd numbers in order and raise them to the fourth power, we get the sequence 1, 81, 625, 2401, 6561, 14641, 28561, 50625, 83521, 130321, 194481. Subtracting 1 from each of these and dividing by 16 we get the integers 0, 5, 39, 150, 410, 915, 1785, 3164, 5220, 8145, 12155.

Of course from Fermat’s little theorem we can deduce that ϕ(n) will give us an exponent to which we can raise any number coprime to n and get a number satisfying the congruence. ψ(n) often gives us a smaller exponent than ϕ(n) for composite n that are not squares of primes. Among the first thousand positive integers, this is true 86% of the time. Sequence A104194 gives ϕ(n)-ψ(n) for 0<n<91; it has many instances of 0.

In Sloane and Plouffe’s book The Encyclopedia of Integer Sequences the authors use the Greek letter ψ for this function, the OEIS follows this custom but acknowledges the widespread use of λ. In Mathematica, the function is a built-in function, CarmichaelLambda[n], so naturally Mathworld also uses λ, and so does Wikipedia.

References

  • 1 G. P. Lowecke, The Lore of Prime NumbersMathworldPlanetmath. New York: Vantage Press (1982): 81 - 82
  • 2 H. Griffin, Elementary Theory of Numbers. New York: McGraw-Hill (1954): 50
  • 3 N. Sloane & S. Plouffe The Encyclopedia of Integer Sequences New York: Academic Press (1995): N0110
  • 4 I. Vardi, Computational Recreations in Mathematica. Redwood City: Addison-Wesley (1991): 226
Title Carmichael function
Canonical name CarmichaelFunction
Date of creation 2013-03-22 17:13:47
Last modified on 2013-03-22 17:13:47
Owner PrimeFan (13766)
Last modified by PrimeFan (13766)
Numerical id 6
Author PrimeFan (13766)
Entry type Definition
Classification msc 11A25
Synonym least universal exponent function
Synonym reduced totient function