Quire

Carmichael function

From Quire, the open reference·Function in mathematical number theory·8 min read

In number theory, a branch of mathematics, the Carmichael function λ(n) of a positive integer n is the smallest positive integer m such that

{\displaystyle a^{m}\equiv 1{\pmod {n

holds for every integer a coprime to n. In algebraic terms, λ(n) is the exponent of the multiplicative group of integers modulo n. As this is a finite abelian group, there must exist an element whose order equals the exponent, λ(n). Such an element is called a primitive λ-root modulo n.

Carmichael λ function: λ(n) for 1 ≤ n ≤ 1000 (compared to Euler φ function)
Carmichael λ function: λ(n) for 1 ≤ n ≤ 1000 (compared to Euler φ function) Image: source and license

The Carmichael function is named after the American mathematician Robert Carmichael who defined it in 1910.[1] 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 n is φ(n), where φ is Euler's totient function. Since the order of an element of a finite group divides the order of the group, λ(n) divides φ(n). The following table compares the first 36 values of λ(n) (sequence A002322 in the OEIS) and φ(n) (in bold if they are different; the values of n such that they are different are listed in (sequence A033949 in the OEIS)).

n123456789101112131415161718192021222324252627282930313233343536
λ(n)11224262641021264416618461022220121862843081016126
φ(n)112242646410412688166188121022820121812288301620162412

Numerical examples#edit

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

Recurrence for λ(n)#edit

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, λ(n) is given by the recurrence

{\displaystyle \lambda (n)={\begin{cases}\varphi (n)&{\text{if n{\text{ is 1, 2, 4, or an odd prime power,\\{\tfrac {1}{2\varphi (n)&{\text{if n=2^{r},\ r\geq 3,\\\operatorname {lcm} {\Bigl (}

Euler's totient for a prime power, that is, a number pr with p prime and r ≥ 1, is given by

{\displaystyle \varphi (p^{r}){=}p^{r-1}(p-1).}

Carmichael's theorems#edit

Carmichael proved two theorems that, together, establish that if λ(n) 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 m such that {\displaystyle a^{m}\equiv 1{\pmod {n for all a relatively prime to n.

Theorem 1—If a is relatively prime to n then {\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n.[2]

This implies that the order of every element of the multiplicative group of integers modulo n divides λ(n). Carmichael calls an element a for which {\displaystyle a^{\lambda (n) is the least power of a congruent to 1 (mod n) a primitive λ-root modulo n.[3] (This is not to be confused with a primitive root modulo n, which Carmichael sometimes refers to as a primitive {\displaystyle \varphi }-root modulo n.)

Theorem 2—For every positive integer n there exists a primitive λ-root modulo n. Moreover, if g is such a root, then there are {\displaystyle \varphi (\lambda (n))} primitive λ-roots that are congruent to powers of g.[4]

If g is one of the primitive λ-roots guaranteed by the theorem, then &#123;\displaystyle g^&#123;m&#125;\equiv 1&#123;\pmod &#123;n has no positive integer solutions m less than λ(n), showing that there is no positive m < λ(n) such that &#123;\displaystyle a^&#123;m&#125;\equiv 1&#123;\pmod &#123;n for all a relatively prime to n.

The second statement of Theorem 2 does not imply that all primitive λ-roots modulo n are congruent to powers of a single root g.[5] For example, if n = 15, then λ(n) = 4 while &#123;\displaystyle \varphi (n)&#61;8&#125; and &#123;\displaystyle \varphi (\lambda (n))&#61;2&#125;. There are four primitive λ-roots modulo 15, namely 2, 7, 8, and 13 as &#123;\displaystyle 1\equiv 2^&#123;4&#125;\equiv 8^&#123;4&#125;\equiv 7^&#123;4&#125;\equiv 13^&#123;4. 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 &#123;\displaystyle 4\equiv 2^&#123;2&#125;\equiv 8^&#123;2&#125;\equiv 7^&#123;2&#125;\equiv 13^&#123;2), 11, and 14, are not primitive λ-roots modulo 15.

For a contrasting example, if n = 9, then &#123;\displaystyle \lambda (n)&#61;\varphi (n)&#61;6&#125; and &#123;\displaystyle \varphi (\lambda (n))&#61;2&#125;. 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 &#123;\displaystyle \varphi &#125;-roots modulo 9.

The numbers of primitive λ-roots modulo n for &#123;\displaystyle n&#61;1,2,3,\cdots &#125; are

1, 1, 1, 1, 2, 1, 2, 3, 2, 2, 4, 3, 4, 2, 4, 4, 8, 2, 6, 4, 6, 4, 10, 7, 8, 4, 6, 6, 12, 4, 8, 8, 12, 8, 8, 6, 12, 6, 8, 8, 16, 6, 12, 12, 8, 10, 22, 8, 12, 8, ... (sequence A111725 in the OEIS)

Properties of the Carmichael function#edit

In this section, an integer &#123;\displaystyle n&#125; is divisible by a nonzero integer &#123;\displaystyle m&#125; if there exists an integer &#123;\displaystyle k&#125; such that &#123;\displaystyle n&#61;km&#125;. This is written as

&#123;\displaystyle m\mid n.&#125;

A consequence of minimality of λ(n)#edit

Suppose am ≡ 1 (mod n) for all numbers a coprime with n. Then λ(n) | m.

Proof: If m = kλ(n) + r with 0 ≤ r < λ(n), then

&#123;\displaystyle a^&#123;r&#125;&#61;1^&#123;k&#125;\cdot a^&#123;r&#125;\equiv \left(a^&#123;\lambda (n)&#125;\right)^&#123;k&#125;\cdot a^&#123;r&#125;&#61;a^&#123;k\lambda (n)+r&#125;&#61;a^&#123;m&#125;\equiv 1&#123;\pmod &#123;n

for all numbers a coprime with n. It follows that r = 0 since r < λ(n) and λ(n) is the minimal positive exponent for which the congruence holds for all a coprime with n.

λ(n) divides φ(n)#edit

This follows from elementary group theory, because the exponent of any finite group must divide the order of the group. λ(n) is the exponent of the multiplicative group of integers modulo n while φ(n) 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#edit

&#123;\displaystyle a\,&#124;\,b\Rightarrow \lambda (a)\,&#124;\,\lambda (b)&#125;

Proof.

By definition, for any integer &#123;\displaystyle k&#125; with &#123;\displaystyle \gcd(k,b)&#61;1&#125; (and thus also &#123;\displaystyle \gcd(k,a)&#61;1&#125;), we have that &#123;\displaystyle b\,&#124;\,(k^&#123;\lambda (b)&#125;-1)&#125; , and therefore &#123;\displaystyle a\,&#124;\,(k^&#123;\lambda (b)&#125;-1)&#125;. This establishes that &#123;\displaystyle k^&#123;\lambda (b)&#125;\equiv 1&#123;\pmod &#123;a for all k relatively prime to a. By the consequence of minimality proved above, we have &#123;\displaystyle \lambda (a)\,&#124;\,\lambda (b)&#125;.

Composition#edit

For all positive integers a and b it holds that

&#123;\displaystyle \lambda (\mathrm &#123;lcm&#125; (a,b))&#61;\mathrm &#123;lcm&#125; (\lambda (a),\lambda (b))&#125;.

This is an immediate consequence of the recurrence for the Carmichael function.

Exponential cycle length#edit

If &#123;\displaystyle r_&#123;\mathrm &#123;max&#125; &#125;&#61;\max _&#123;i&#125;\&#123;r_&#123;i&#125;\ is the biggest exponent in the prime factorization &#123;\displaystyle n&#61;p_&#123;1&#125;^&#123;r_&#123;1p_&#123;2&#125;^&#123;r_&#123;2\cdots p_&#123;k&#125;^&#123;r_&#123;k of n, then for all a (including those not coprime to n) and all r ≥ rmax,

&#123;\displaystyle a^&#123;r&#125;\equiv a^&#123;\lambda (n)+r&#125;&#123;\pmod &#123;n.&#125;

In particular, for square-free n ( rmax = 1), for all a we have

&#123;\displaystyle a\equiv a^&#123;\lambda (n)+1&#125;&#123;\pmod &#123;n.&#125;

Average value#edit

For any n ≥ 16:[6][7]

&#123;\displaystyle &#123;\frac &#123;1&#125;&#123;n\sum _&#123;i\leq n&#125;\lambda (i)&#61;&#123;\frac &#123;n&#125;&#123;\ln ne^&#123;B(1+o(1))\ln \ln n/(\ln \ln \ln n)

(called Erdős approximation in the following) with the constant

&#123;\displaystyle B:&#61;e^&#123;-\gamma &#125;\prod _&#123;p\in \mathbb &#123;P&#125; &#125;\left(&#123;1-&#123;\frac &#123;1&#125;&#123;(p-1)^&#123;2&#125;(p+1)\right)\approx 0.34537&#125;

and γ ≈ 0.57721, the Euler–Mascheroni constant.

The following table gives some overview over the first 226 – 1 = 67108863 values of the λ function, for both, the exact average and its Erdős-approximation.

Additionally given is some overview over the more easily accessible “logarithm over logarithm” values LoL(n) := ⁠ln λ(n)/ln n⁠ with

  • LoL(n) > ⁠4/5⁠ ⇔ λ(n) > n⁠4/5⁠.

There, the table entry in row number 26 at column

  •  % LoL > ⁠4/5⁠   → 60.49

indicates that 60.49% (≈ 40000000) of the integers 1 ≤ n ≤ 67108863 have λ(n) > n⁠4/5⁠ meaning that the majority of the λ values is exponential in the length l := log2(n) of the input n, namely

&#123;\displaystyle \left(2^&#123;\frac &#123;4&#125;&#123;5\right)^&#123;l&#125;&#61;2^&#123;\frac &#123;4l&#125;&#123;5&#61;\left(2^&#123;l&#125;\right)^&#123;\frac &#123;4&#125;&#123;5&#61;n^&#123;\frac &#123;4&#125;&#123;5.&#125;

Prevailing interval#edit

For all numbers N and all but o(N)[8] positive integers n ≤ N (a "prevailing" majority):

&#123;\displaystyle \lambda (n)&#61;&#123;\frac &#123;n&#125;&#123;(\ln n)^&#123;\ln \ln \ln n+A+o(1)

with the constant[7]

&#123;\displaystyle A:&#61;-1+\sum _&#123;p\in \mathbb &#123;P&#125; &#125;&#123;\frac &#123;\ln p&#125;&#123;(p-1)^&#123;2\approx 0.2269688&#125;

Lower bounds#edit

For any sufficiently large number N and for any Δ ≥ (ln ln N)3, there are at most

&#123;\displaystyle N\exp \left(-0.69(\Delta \ln \Delta )^&#123;\frac &#123;1&#125;&#123;3\right)&#125;

positive integers n ≤ N such that λ(n) ≤ ne−Δ.[9]

Minimal order#edit

For any sequence n1 < n2 < n3 < ⋯ of positive integers, any constant 0 < c < ⁠1/ln 2⁠, and any sufficiently large i:[10][11]

&#123;\displaystyle \lambda (n_&#123;i&#125;)>\left(\ln n_&#123;i&#125;\right)^&#123;c\ln \ln \ln n_&#123;i.&#125;

Small values#edit

For a constant c and any sufficiently large positive A, there exists an integer n > A such that[11]

&#123;\displaystyle \lambda (n)&lt;\left(\ln A\right)^&#123;c\ln \ln \ln A&#125;.&#125;

Moreover, n is of the form

&#123;\displaystyle n&#61;\mathop &#123;\prod _&#123;q\in \mathbb &#123;P&#125; _&#123;(q-1)&#124;m&#125;q&#125;

for some square-free integer m < (ln A)c ln ln ln A.[10]

Image of the function#edit

The set of values of the Carmichael function has counting function[12]

&#123;\displaystyle &#123;\frac &#123;x&#125;&#123;(\ln x)^&#123;\eta +o(1),&#125;

where

&#123;\displaystyle \eta &#61;1-&#123;\frac &#123;1+\ln \ln 2&#125;&#123;\ln 2\approx 0.08607&#125;

Use in cryptography#edit

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

Proof of Theorem 1#edit

For n = p, a prime, Theorem 1 is equivalent to Fermat's little theorem:

&#123;\displaystyle a^&#123;p-1&#125;\equiv 1&#123;\pmod &#123;p\qquad &#123;\text&#123;for all a&#123;\text&#123; coprime to p.&#125;

For prime powers pr, r > 1, if

&#123;\displaystyle a^&#123;p^&#123;r-1&#125;(p-1)&#125;&#61;1+hp^&#123;r

holds for some integer h, then raising both sides to the power p gives

&#123;\displaystyle a^&#123;p^&#123;r&#125;(p-1)&#125;&#61;1+h'p^&#123;r+1

for some other integer &#123;\displaystyle h'&#125;. By induction it follows that &#123;\displaystyle a^&#123;\varphi (p^&#123;r&#125;)&#125;\equiv 1&#123;\pmod &#123;p^&#123;r for all a relatively prime to p and hence to pr. This establishes the theorem for n = 4 or any odd prime power.

Sharpening the result for higher powers of two#edit

For a coprime to (powers of) 2 we have a = 1 + 2h2 for some integer h2. Then,

&#123;\displaystyle a^&#123;2&#125;&#61;1+4h_&#123;2&#125;(h_&#123;2&#125;+1)&#61;1+8&#123;\binom &#123;h_&#123;2&#125;+1&#125;&#123;2&#61;:1+8h_&#123;3,

where &#123;\displaystyle h_&#123;3 is an integer. With r = 3, this is written

&#123;\displaystyle a^&#123;2^&#123;r-2&#61;1+2^&#123;r&#125;h_&#123;r&#125;.&#125;

Squaring both sides gives

&#123;\displaystyle a^&#123;2^&#123;r-1&#61;\left(1+2^&#123;r&#125;h_&#123;r&#125;\right)^&#123;2&#125;&#61;1+2^&#123;r+1&#125;\left(h_&#123;r&#125;+2^&#123;r-1&#125;h_&#123;r&#125;^&#123;2&#125;\right)&#61;:1+2^&#123;r+1&#125;h_&#123;r+1&#125;,&#125;

where &#123;\displaystyle h_&#123;r+1 is an integer. It follows by induction that

&#123;\displaystyle a^&#123;2^&#123;r-2&#61;a^\frac &#123;1&#125;&#123;2\varphi (2^&#123;r&#125;)&#125;\equiv 1&#123;\pmod &#123;2^&#123;r

for all &#123;\displaystyle r\geq 3&#125; and all a coprime to &#123;\displaystyle 2^&#123;r.[13]

Integers with multiple prime factors#edit

By the unique factorization theorem, any n > 1 can be written in a unique way as

&#123;\displaystyle n&#61;p_&#123;1&#125;^&#123;r_&#123;1p_&#123;2&#125;^&#123;r_&#123;2\cdots p_&#123;k&#125;^&#123;r_&#123;k

where p1 < p2 < ... < pk are primes and r1, r2, ..., rk are positive integers. The results for prime powers establish that, for &#123;\displaystyle 1\leq j\leq k&#125;,

&#123;\displaystyle a^&#123;\lambda \left(p_&#123;j&#125;^&#123;r_&#123;j\right)&#125;\equiv 1&#123;\pmod &#123;p_&#123;j&#125;^&#123;r_&#123;j\qquad &#123;\text&#123;for all a&#123;\text&#123; coprime to n&#123;\text&#123; and hence to p_&#123;i&#125;^&#123;r_&#123;i.&#125;

From this it follows that

&#123;\displaystyle a^&#123;\lambda (n)&#125;\equiv 1&#123;\pmod &#123;p_&#123;j&#125;^&#123;r_&#123;j\qquad &#123;\text&#123;for all a&#123;\text&#123; coprime to n,&#125;

where, as given by the recurrence,

&#123;\displaystyle \lambda (n)&#61;\operatorname &#123;lcm&#125; &#123;\Bigl (&#125;\lambda \left(p_&#123;1&#125;^&#123;r_&#123;1\right),\lambda \left(p_&#123;2&#125;^&#123;r_&#123;2\right),\ldots ,\lambda \left(p_&#123;k&#125;^&#123;r_&#123;k\right)&#123;\Bigr )&#125;.&#125;

From the Chinese remainder theorem one concludes that

&#123;\displaystyle a^&#123;\lambda (n)&#125;\equiv 1&#123;\pmod &#123;n\qquad &#123;\text&#123;for all a&#123;\text&#123; coprime to n.&#125;

See also#edit

Notes#edit

  1. ^ Carmichael, Robert Daniel (1910). "Note on a new number theory function". Bulletin of the American Mathematical Society. 16 (5): 232–238. doi:10.1090/S0002-9904-1910-01892-9.
  2. ^ Carmichael (1914) p.40
  3. ^ Carmichael (1914) p.54
  4. ^ Carmichael (1914) p.55
  5. ^ Carmichael (1914) p.56
  6. ^ Theorem 3 in Erdős (1991)
  7. ^ a b Sándor & Crstici (2004) p.194
  8. ^ Theorem 2 in Erdős (1991) 3. Normal order. (p.365)
  9. ^ Theorem 5 in Friedlander (2001)
  10. ^ a b Theorem 1 in Erdős (1991)
  11. ^ a b Sándor & Crstici (2004) p.193
  12. ^ Ford, Kevin; Luca, Florian; Pomerance, Carl (27 August 2014). "The image of Carmichael's λ-function". Algebra & Number Theory. 8 (8): 2009–2026. arXiv:1408.6506. doi:10.2140/ant.2014.8.2009. S2CID 50397623.
  13. ^ Carmichael (1914) pp.38–39

References#edit

This article is mirrored from “Carmichael function” on English Wikipedia, revision 1375769222, written by Wikipedia's contributors and licensed CC BY-SA 4.0. Editing it here creates a Quire copy with its own history.

Synced with Wikipedia revision 1375769222 · just now