Carmichael function

From testwiki
Jump to navigation Jump to search

Template:Short description In number theory, a branch of mathematics, the Carmichael function Template:Math of a positive integer Template:Mvar is the smallest positive integer Template:Mvar such that

am≡1(modn)

holds for every integer Template:Mvar coprime to Template:Mvar. In algebraic terms, Template:Math is the exponent of the [[multiplicative group of integers modulo n|multiplicative group of integers modulo Template:Mvar]]. As this is a finite abelian group, there must exist an element whose order equals the exponent, Template:Math. Such an element is called a primitive Template:Math-root modulo Template:Mvar.

Carmichael Template:Mvar function: Template:Math for Template:Math (compared to Euler Template:Mvar function)

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 Template:Mvar is Template:Math, where Template:Mvar is Euler's totient function. Since the order of an element of a finite group divides the order of the group, Template:Math divides Template:Math. The following table compares the first 36 values of Template:Math Template:OEIS and Template:Math (in bold if they are different; the values ofTemplate:Mvar such that they are different are listed in Template:Oeis).

Template:Mvar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Template:Math 11224262641021264416618461022220121862843081016126
Template:Math 112242646410412688166188121022820121812288301620162412

Numerical examples

Recurrence for Template:Math

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 Template:Mvar of the product is the least common multiple of the Template:Mvar of the prime power factors. Specifically, Template:Math is given by the recurrence

λ(n)={φ(n)if n is 1, 2, 4, or an odd prime power,12φ(n)if n=2r, r≥3,lcm⁡(λ(n1),λ(n2),…,λ(nk))if n=n1n2…nk where n1,n2,…,nk are powers of distinct primes.

Euler's totient for a prime power, that is, a number Template:Math with Template:Math prime and Template:Math, is given by

φ(pr)=pr−1(p−1).

Carmichael's theorems

Template:Anchor Carmichael proved two theorems that, together, establish that if Template:Math 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 Template:Mvar such that am≡1(modn) for all Template:Mvar relatively prime to Template:Mvar. Template:Math theorem This implies that the order of every element of the multiplicative group of integers modulo Template:Mvar divides Template:Math. Carmichael calls an element Template:Mvar for which aλ(n) is the least power of Template:Mvar congruent to 1 (mod Template:Mvar) a primitive λ-root modulo n.[2] (This is not to be confused with a [[primitive root modulo n|primitive root modulo Template:Mvar]], which Carmichael sometimes refers to as a primitive φ-root modulo Template:Mvar.) Template:Math theorem If Template:Mvar is one of the primitive Template:Mvar-roots guaranteed by the theorem, then gm≡1(modn) has no positive integer solutions Template:Mvar less than Template:Math, showing that there is no positive Template:Math such that am≡1(modn) for all Template:Mvar relatively prime to Template:Mvar.

The second statement of Theorem 2 does not imply that all primitive Template:Mvar-roots modulo Template:Mvar are congruent to powers of a single root Template:Mvar.[3] For example, if Template:Math, then Template:Math while φ(n)=8 and φ(λ(n))=2. There are four primitive Template:Mvar-roots modulo 15, namely 2, 7, 8, and 13 as 1≡24≡84≡74≡134. 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 4≡22≡82≡72≡132), 11, and 14, are not primitive Template:Mvar-roots modulo 15.

For a contrasting example, if Template:Math, then λ(n)=φ(n)=6 and φ(λ(n))=2. There are two primitive Template:Mvar-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 n is divisible by a nonzero integer m if there exists an integer k such that n=km. This is written as

m∣n.

A consequence of minimality of Template:Math

Suppose Template:Math for all numbers Template:Mvar coprime with Template:Mvar. Then Template:Math.

Proof: If Template:Math with Template:Math, then

ar=1k⋅ar≡(aλ(n))k⋅ar=akλ(n)+r=am≡1(modn)

for all numbers Template:Mvar coprime with Template:Mvar. It follows that Template:Math since Template:Math and Template:Math is the minimal positive exponent for which the congruence holds for all Template:Mvar coprime with Template:Mvar.

This follows from elementary group theory, because the exponent of any finite group must divide the order of the group. Template:Math is the exponent of the multiplicative group of integers modulo Template:Mvar while Template:Math 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

a|b⇒λ(a)|λ(b)

Proof.

By definition, for any integer k with gcd⁡(k,b)=1 (and thus also gcd⁡(k,a)=1), we have that b|(kλ(b)−1) , and therefore a|(kλ(b)−1). This establishes that kλ(b)≡1(moda) for all Template:Mvar relatively prime to Template:Mvar. By the consequence of minimality proved above, we have λ(a)|λ(b).

Composition

For all positive integers Template:Mvar and Template:Mvar it holds that

λ(lcm(a,b))=lcm(λ(a),λ(b)).

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

Exponential cycle length

If rmax=maxi{ri} is the biggest exponent in the prime factorization n=p1r1p2r2⋯pkrk of Template:Mvar, then for all Template:Mvar (including those not coprime to Template:Mvar) and all Template:Math,

ar≡aλ(n)+r(modn).

In particular, for square-free Template:Mvar (Template:Math), for all Template:Mvar we have

a≡aλ(n)+1(modn).

Average value

For any Template:Math:[4][5]

1n∑i≤nλ(i)=nln⁡neB(1+o(1))ln⁡ln⁡n/(ln⁡ln⁡ln⁡n)

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

B:=e−γ∏p∈ℙ(1−1(p−1)2(p+1))≈0.34537

and Template:Math, the Euler–Mascheroni constant.

The following table gives some overview over the first Template:Math values of the Template:Mvar function, for both, the exact average and its Erdős-approximation.

Additionally given is some overview over the more easily accessible Template:Nowrap Template:Math with

There, the table entry in row number 26 at column

indicates that 60.49% (≈ Template:Val) of the integers Template:Math have Template:Math meaning that the majority of the Template:Mvar values is exponential in the length Template:Math of the input Template:Mvar, namely

(245)l=24l5=(2l)45=n45.
Template:MvarTemplate:Mathsum
∑i≤nλ(i)
average
1n∑i≤nλ(i)
Erdős averageErdős /
exact average
Template:Math average% Template:Math > Template:Sfrac% Template:Math > Template:Sfrac
5312708.70967768.6437.88130.67824441.9435.48
66396415.30158761.4144.01360.69989138.1030.16
7127357428.14173286.6053.07740.71729138.5827.56
82551299450.956863138.1902.71190.73033138.8223.53
95114803293.996086233.1492.48040.74049840.9025.05
101023178816174.795699406.1452.32350.74848241.4526.98
112047662952323.865169722.5262.23090.75488642.8427.70
1240952490948608.2901101304.8102.14500.76102743.7428.11
13819193827641145.4967652383.2632.08060.76657144.3328.60
1416383355045862167.1602274392.1292.02670.77169546.1029.52
15327671347368244111.9670408153.0541.98280.77643747.2129.15
16655355137587967839.45671815225.43Template:01.94220.78106449.1328.17
17131071196441359214987.40066Template:028576.97Template:01.90670.78540150.4329.55
18262143752921820828721.79768Template:053869.76Template:01.87560.78956151.1730.67
195242872893564434255190.46694Template:0101930.9Template:01.84690.79353652.6231.45
201048575111393101150106232.8409Template:0193507.1Template:01.82150.79735153.7431.83
212097151429685077652204889.9090Template:0368427.6Template:01.79820.80101854.9732.18
2241943031660388309120395867.5158Template:0703289.4Template:01.77660.80454356.2433.65
2383886076425917227352766029.1187Template:01345633Template:01.75660.80793657.1934.32
2416777215249068726559901484565.386Template:02580070Template:01.73790.81120458.4934.43
2533554431966665958654302880889.140Template:04956372Template:01.72040.81435159.5235.76
26671088633756190480865765597160.066Template:09537863Template:01.70410.81738460.4936.73

Prevailing interval

For all numbers Template:Mvar and all but Template:Math[6] positive integers Template:Math (a "prevailing" majority):

λ(n)=n(ln⁡n)ln⁡ln⁡ln⁡n+A+o(1)

with the constant[5]

A:=−1+∑p∈ℙln⁡p(p−1)2≈0.2269688

Lower bounds

For any sufficiently large number Template:Mvar and for any Template:Math, there are at most

Nexp⁡(−0.69(Δln⁡Δ)13)

positive integers Template:Math such that Template:Math.[7]

Minimal order

For any sequence Template:Math of positive integers, any constant Template:Math, and any sufficiently large Template:Mvar:[8][9]

λ(ni)>(ln⁡ni)cln⁡ln⁡ln⁡ni.

Small values

For a constant Template:Mvar and any sufficiently large positive Template:Mvar, there exists an integer Template:Math such that[9]

λ(n)<(ln⁡A)cln⁡ln⁡ln⁡A.

Moreover, Template:Mvar is of the form

n=∏q∈ℙ(q−1)|mq

for some square-free integer Template:Math.[8]

Image of the function

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

x(ln⁡x)η+o(1),

where

η=1−1+ln⁡ln⁡2ln⁡2≈0.08607

Use in cryptography

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

Proof of Theorem 1

For Template:Math, a prime, Theorem 1 is equivalent to Fermat's little theorem:

ap−1≡1(modp)for all a coprime to p.

For prime powers Template:Math, Template:Math, if

apr−1(p−1)=1+hpr

holds for some integer Template:Mvar, then raising both sides to the power Template:Mvar gives

apr(p−1)=1+h′pr+1

for some other integer h′. By induction it follows that aφ(pr)≡1(modpr) for all Template:Mvar relatively prime to Template:Mvar and hence to Template:Math. This establishes the theorem for Template:Math or any odd prime power.

Sharpening the result for higher powers of two

For Template:Mvar coprime to (powers of) 2 we have Template:Math for some integer Template:Math. Then,

a2=1+4h2(h2+1)=1+8(h2+12)=:1+8h3,

where h3 is an integer. With Template:Math, this is written

a2r−2=1+2rhr.

Squaring both sides gives

a2r−1=(1+2rhr)2=1+2r+1(hr+2r−1hr2)=:1+2r+1hr+1,

where hr+1 is an integer. It follows by induction that

a2r−2=a12φ(2r)≡1(mod2r)

for all r≥3 and all Template:Mvar coprime to 2r.[11]

Integers with multiple prime factors

By the unique factorization theorem, any Template:Math can be written in a unique way as

n=p1r1p2r2⋯pkrk

where Template:Math are primes and Template:Math are positive integers. The results for prime powers establish that, for 1≤j≤k,

aλ(pjrj)≡1(modpjrj)for all a coprime to n and hence to piri.

From this it follows that

aλ(n)≡1(modpjrj)for all a coprime to n,

where, as given by the recurrence,

λ(n)=lcm⁡(λ(p1r1),λ(p2r2),…,λ(pkrk)).

From the Chinese remainder theorem one concludes that

aλ(n)≡1(modn)for all a coprime to n.

See also

Notes

  1. ↑ Template:Cite journal
  2. ↑ Carmichael (1914) p.54
  3. ↑ Carmichael (1914) p.56
  4. ↑ Theorem 3 in Erdős (1991)
  5. 1 2 Sándor & Crstici (2004) p.194
  6. ↑ Theorem 2 in Erdős (1991) 3. Normal order. (p.365)
  7. ↑ Theorem 5 in Friedlander (2001)
  8. 1 2 Theorem 1 in Erdős (1991)
  9. 1 2 Sándor & Crstici (2004) p.193
  10. ↑ Template:Cite journal
  11. ↑ Carmichael (1914) pp.38–39

References

Template:Totient