<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Carmichael_function</id>
	<title>Carmichael function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Carmichael_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Carmichael_function&amp;action=history"/>
	<updated>2026-04-21T00:17:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Carmichael_function&amp;diff=683071&amp;oldid=prev</id>
		<title>imported&gt;JJMC89 bot III: Removing :Category:Eponymous functions per Wikipedia:Categories for discussion/Log/2025 October 27#Eponyms in mathematics round 2</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Carmichael_function&amp;diff=683071&amp;oldid=prev"/>
		<updated>2025-11-09T22:41:38Z</updated>

		<summary type="html">&lt;p&gt;Removing &lt;a href=&quot;/index.php?title=Category:Eponymous_functions&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Eponymous functions (page does not exist)&quot;&gt;Category:Eponymous functions&lt;/a&gt; per &lt;a href=&quot;https://en.wikipedia.org/wiki/Categories_for_discussion/Log/2025_October_27#Eponyms_in_mathematics_round_2&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Categories for discussion/Log/2025 October 27&quot;&gt;Wikipedia:Categories for discussion/Log/2025 October 27#Eponyms in mathematics round 2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Function in mathematical number theory}}&lt;br /&gt;
In [[number theory]], a branch of [[mathematics]], the &amp;#039;&amp;#039;&amp;#039;Carmichael function&amp;#039;&amp;#039;&amp;#039; {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} of a [[positive integer]] {{mvar | n}} is the smallest positive integer {{mvar|m}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;a^m \equiv 1 \pmod{n}&amp;lt;/math&amp;gt;&lt;br /&gt;
holds for every integer {{mvar | a}} [[coprime]] to {{mvar | n}}. In algebraic terms, {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} is the [[exponent of a group|exponent]] of the [[multiplicative group of integers modulo n|multiplicative group of integers modulo {{mvar | n}}]]. As this is a [[Abelian group#Finite abelian groups|finite abelian group]], there must exist an element whose [[Cyclic group#Definition and notation|order]] equals the exponent, {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}. Such an element is called a &amp;#039;&amp;#039;&amp;#039;primitive {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;}}-root modulo {{mvar | n}}&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:carmichaelLambda.svg|thumb|upright=2|Carmichael {{mvar | λ}} function: {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} for {{math | 1 ≤ &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≤ 1000}} (compared to Euler {{mvar | φ}} function)|none]]&lt;br /&gt;
&lt;br /&gt;
The Carmichael function is named after the American mathematician [[Robert Daniel Carmichael|Robert Carmichael]] who defined it in 1910.&amp;lt;ref&amp;gt;&lt;br /&gt;
{{cite journal |first1=Robert Daniel |last1=Carmichael |year=1910 |title=Note on a new number theory function |journal=Bulletin of the American Mathematical Society |volume=16 |number=5 |pages=232–238 |doi=10.1090/S0002-9904-1910-01892-9|doi-access=free }}&lt;br /&gt;
&amp;lt;/ref&amp;gt; It is also known as &amp;#039;&amp;#039;&amp;#039;Carmichael&amp;#039;s λ function&amp;#039;&amp;#039;&amp;#039;, the &amp;#039;&amp;#039;&amp;#039;reduced totient function&amp;#039;&amp;#039;&amp;#039;, and the &amp;#039;&amp;#039;&amp;#039;least universal exponent function&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The order of the multiplicative group of integers modulo {{mvar | n}} is {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}, where {{mvar | φ}} is [[Euler&amp;#039;s totient function]]. Since the order of an element of a finite group divides the order of the group, {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} divides {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}. The following table compares the first 36 values of {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} {{OEIS|id=A002322}} and {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} (in &amp;#039;&amp;#039;&amp;#039;bold&amp;#039;&amp;#039;&amp;#039; if they are different; the values of{{mvar | n}} such that they are different are listed in {{oeis|A033949}}).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{mvar | n}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 1&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 2&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 3&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 4&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 5&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 6&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 7&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 8&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 9&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 10&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 11&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 12&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 13&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 14&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 15&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 16&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 17&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 18&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 19&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 20&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 21&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 22&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 23&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 24&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 25&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 26&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 27&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 28&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 29&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 30&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 31&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 32&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 33&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 34&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 35&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | 36&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}&lt;br /&gt;
| 1 || 1 || 2 || 2 || 4 || 2 || 6 || &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039; || 6 || 4 || 10 || &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039; || 12 || 6 || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; || 16 || 6 || 18 || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; ||  &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; || 10 || 22 || &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039; || 20 || 12 || 18 || &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; || 28 || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; || 30 || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;10&amp;#039;&amp;#039;&amp;#039; || 16 || &amp;#039;&amp;#039;&amp;#039;12&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}&lt;br /&gt;
| 1 || 1 || 2 || 2 || 4 || 2 || 6 || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; || 6 || 4 || 10 || &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; || 12 || 6 || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || 16 || 6 || 18 || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;12&amp;#039;&amp;#039;&amp;#039; || 10 || 22 || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || 20 || 12 || 18 || &amp;#039;&amp;#039;&amp;#039;12&amp;#039;&amp;#039;&amp;#039; || 28 || &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || 30 || &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;20&amp;#039;&amp;#039;&amp;#039; || 16 || &amp;#039;&amp;#039;&amp;#039;24&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;12&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Numerical examples==&lt;br /&gt;
* {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} 5}}. The set of numbers less than and coprime to 5 is {{math | {1,2,3,4}}}. Hence Euler&amp;#039;s totient function has value {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(5) {{=}} 4}} and the value of Carmichael&amp;#039;s function, {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(5)}}, must be a [[divisor]] of 4. The divisor 1 does not satisfy the definition of Carmichael&amp;#039;s function since &amp;lt;math&amp;gt;a^1 \not\equiv 1\pmod{5}&amp;lt;/math&amp;gt; except for &amp;lt;math&amp;gt;a\equiv1\pmod{5}&amp;lt;/math&amp;gt;. Neither does 2 since &amp;lt;math&amp;gt;2^2 \equiv 3^2 \equiv 4 \not\equiv 1\pmod{5}&amp;lt;/math&amp;gt;. Hence {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(5) {{=}} 4}}. Indeed, &amp;lt;math&amp;gt;1^4\equiv 2^4\equiv 3^4\equiv 4^4\equiv1\pmod{5}&amp;lt;/math&amp;gt;. Both 2 and 3 are primitive {{mvar | λ}}-roots modulo 5 and also [[Primitive root modulo n|primitive roots]] modulo 5.&lt;br /&gt;
* {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} 8}}. The set of numbers less than and coprime to 8 is {{math | {1,3,5,7} }}. Hence {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(8) {{=}} 4}} and {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(8)}} must be a divisor of 4. In fact {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(8) {{=}} 2}} since &amp;lt;math&amp;gt;1^2\equiv 3^2\equiv 5^2\equiv 7^2\equiv1\pmod{8}&amp;lt;/math&amp;gt;. The primitive {{mvar | λ}}-roots modulo 8 are 3, 5, and 7. There are no primitive roots modulo 8.&lt;br /&gt;
&lt;br /&gt;
== Recurrence for {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} ==&lt;br /&gt;
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 {{mvar | λ}} of the product is the [[least common multiple]] of the {{mvar | λ}} of the prime power factors. Specifically, {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} is given by the recurrence&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(n) = \begin{cases}&lt;br /&gt;
\varphi(n) &amp;amp; \text{if }n\text{ is 1, 2, 4, or an odd prime power,}\\&lt;br /&gt;
\tfrac12\varphi(n) &amp;amp; \text{if }n=2^r,\ r\ge3,\\&lt;br /&gt;
\operatorname{lcm}\Bigl(\lambda(n_1),\lambda(n_2),\ldots,\lambda(n_k)\Bigr) &amp;amp; \text{if }n=n_1n_2\ldots n_k\text{ where }n_1,n_2,\ldots,n_k\text{ are powers of distinct primes.}&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
Euler&amp;#039;s totient for a prime power, that is, a number {{math | &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} with {{math | &amp;#039;&amp;#039;p&amp;#039;&amp;#039;}} prime and {{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039; ≥ 1}}, is given by&lt;br /&gt;
:&amp;lt;math&amp;gt;\varphi(p^r) {{=}} p^{r-1}(p-1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Carmichael&amp;#039;s theorems ==&lt;br /&gt;
{{anchor|Carmichael&amp;#039;s theorem}}&lt;br /&gt;
Carmichael proved two theorems that, together, establish that if {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} 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 {{mvar | m}} such that &amp;lt;math&amp;gt;a^m\equiv 1\pmod{n}&amp;lt;/math&amp;gt; for all {{mvar | a}} relatively prime to {{mvar | n}}.&lt;br /&gt;
{{Math theorem |name=Theorem 1|math_statement=If {{mvar | a}} is relatively prime to {{mvar | n}} then &amp;lt;math&amp;gt;a^{\lambda(n)}\equiv 1\pmod{n}&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;Carmichael (1914) p.40&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
This implies that the order of every element of the multiplicative group of integers modulo {{mvar | n}} divides {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}. Carmichael calls an element {{mvar | a}} for which &amp;lt;math&amp;gt;a^{\lambda(n)}&amp;lt;/math&amp;gt; is the least power of {{mvar | a}} congruent to 1 (mod {{mvar | n}}) a &amp;#039;&amp;#039;primitive λ-root modulo n&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;Carmichael (1914) p.54&amp;lt;/ref&amp;gt; (This is not to be confused with a [[primitive root modulo n|primitive root modulo {{mvar | n}}]], which Carmichael sometimes refers to as a primitive &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;-root modulo {{mvar | n}}.)&lt;br /&gt;
{{Math theorem |name=Theorem 2|math_statement=For every positive integer {{mvar | n}} there exists a primitive {{mvar | λ}}-root modulo {{mvar | n}}. Moreover, if {{mvar | g}} is such a root, then there are &amp;lt;math&amp;gt;\varphi(\lambda(n))&amp;lt;/math&amp;gt; primitive {{mvar | λ}}-roots that are congruent to powers of {{mvar | g}}.&amp;lt;ref&amp;gt;Carmichael (1914) p.55&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
If {{mvar | g}} is one of the primitive {{mvar | λ}}-roots guaranteed by the theorem, then &amp;lt;math&amp;gt;g^m\equiv1\pmod{n}&amp;lt;/math&amp;gt; has no positive integer solutions {{mvar | m}} less than {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}, showing that there is no positive {{math | &amp;#039;&amp;#039;m&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} such that &amp;lt;math&amp;gt;a^m\equiv 1\pmod{n}&amp;lt;/math&amp;gt; for all {{mvar | a}} relatively prime to {{mvar | n}}.&lt;br /&gt;
&lt;br /&gt;
The second statement of Theorem 2 does not imply that all primitive {{mvar | λ}}-roots modulo {{mvar | n}} are congruent to powers of a single root {{mvar | g}}.&amp;lt;ref&amp;gt;Carmichael (1914) p.56&amp;lt;/ref&amp;gt; For example, if {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} 15}}, then {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) {{=}} 4}} while &amp;lt;math&amp;gt;\varphi(n)=8&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\varphi(\lambda(n))=2&amp;lt;/math&amp;gt;. There are four primitive {{mvar | λ}}-roots modulo 15, namely 2, 7, 8, and 13 as &amp;lt;math&amp;gt;1\equiv2^4\equiv8^4\equiv7^4\equiv13^4&amp;lt;/math&amp;gt;. 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 &amp;lt;math&amp;gt;4\equiv2^2\equiv8^2\equiv7^2\equiv13^2&amp;lt;/math&amp;gt;), 11, and 14, are not primitive {{mvar | λ}}-roots modulo 15.&lt;br /&gt;
&lt;br /&gt;
For a contrasting example, if {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} 9}}, then &amp;lt;math&amp;gt;\lambda(n)=\varphi(n)=6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\varphi(\lambda(n))=2&amp;lt;/math&amp;gt;. There are two primitive {{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 &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;-roots modulo 9.&lt;br /&gt;
&lt;br /&gt;
==Properties of the Carmichael function==&lt;br /&gt;
In this section, an [[integer]] &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is divisible by a nonzero integer &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; if there exists an integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;n = km&amp;lt;/math&amp;gt;. This is written as&lt;br /&gt;
:&amp;lt;math&amp;gt;m \mid n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===A consequence of minimality of {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}===&lt;br /&gt;
&lt;br /&gt;
Suppose {{math | &amp;#039;&amp;#039;a&amp;lt;sup&amp;gt;m&amp;lt;/sup&amp;gt;&amp;#039;&amp;#039; ≡ 1 (mod &amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} for all numbers {{mvar | a}} coprime with {{mvar | n}}. Then {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) {{!}} &amp;#039;&amp;#039;m&amp;#039;&amp;#039;}}.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Proof:&amp;#039;&amp;#039;&amp;#039; If {{math | &amp;#039;&amp;#039;m&amp;#039;&amp;#039; {{=}} &amp;#039;&amp;#039;kλ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) + &amp;#039;&amp;#039;r&amp;#039;&amp;#039;}} with {{math | 0 ≤ &amp;#039;&amp;#039;r&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}}, then &lt;br /&gt;
:&amp;lt;math&amp;gt;a^r = 1^k \cdot a^r \equiv \left(a^{\lambda(n)}\right)^k\cdot a^r = a^{k\lambda(n)+r} = a^m \equiv 1\pmod{n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for all numbers {{mvar | a}} coprime with {{mvar | n}}. It follows that {{math | 1=&amp;#039;&amp;#039;r&amp;#039;&amp;#039; = 0}} since {{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} and {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} is the minimal positive exponent for which the congruence holds for all {{mvar | a}} coprime with {{mvar | n}}.&lt;br /&gt;
&lt;br /&gt;
=== {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} divides {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} ===&lt;br /&gt;
This follows from elementary [[group theory]], because the exponent of any [[finite group]] must divide the order of the group. {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} is the exponent of the multiplicative group of integers modulo {{mvar | n}} while {{math | &amp;#039;&amp;#039;φ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} 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_modulo_n|primitive root]], which is the case for odd prime powers.&lt;br /&gt;
&lt;br /&gt;
We can thus view Carmichael&amp;#039;s theorem as a sharpening of [[Euler&amp;#039;s theorem]].&lt;br /&gt;
&lt;br /&gt;
===Divisibility===&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; a\,|\,b \Rightarrow \lambda(a)\,|\,\lambda(b) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Proof.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
By definition, for any integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\gcd(k,b) = 1&amp;lt;/math&amp;gt; (and thus also &amp;lt;math&amp;gt;\gcd(k,a) = 1&amp;lt;/math&amp;gt;), we have that &amp;lt;math&amp;gt; b \,|\, (k^{\lambda(b)} - 1)&amp;lt;/math&amp;gt; , and therefore &amp;lt;math&amp;gt; a \,|\, (k^{\lambda(b)} - 1)&amp;lt;/math&amp;gt;. This establishes that &amp;lt;math&amp;gt;k^{\lambda(b)}\equiv1\pmod{a}&amp;lt;/math&amp;gt; for all {{mvar | k}} relatively prime to {{mvar | a}}. By the consequence of minimality proved above, we have &amp;lt;math&amp;gt; \lambda(a)\,|\,\lambda(b) &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Composition===&lt;br /&gt;
&lt;br /&gt;
For all positive integers {{mvar | a}} and {{mvar | b}} it holds that&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(\mathrm{lcm}(a,b)) = \mathrm{lcm}(\lambda(a), \lambda(b))&amp;lt;/math&amp;gt;.&lt;br /&gt;
This is an immediate consequence of the recurrence for the Carmichael function.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Proof goes as follows:&lt;br /&gt;
Write a and b as product of prime powers&lt;br /&gt;
a = p1^x1·...·pt^xt&lt;br /&gt;
b = p1^y1·...·pt^yt&lt;br /&gt;
lambda(lcm(a,b))&lt;br /&gt;
 = lambda(p1^max(x1,y1)·...·pt^max(xt,yt))&lt;br /&gt;
 = lcm(lambda(p1^max(x1,y1)), ..., lambda(pt^max(xt,yt)))&lt;br /&gt;
 = lcm(lcm(lambda(p1^x1),lambda(p1^y1)), ..., lcm(lambda(pt^xt),lambda(pt^yt)))&lt;br /&gt;
 = lcm(lcm(lambda(p1^x1),...,lambda(pt^xt)), lcm(lambda(p1^y1),...,lambda(pt^yt)))&lt;br /&gt;
 = lcm(lambda(p1^x1·...·pt^xt), lambda(p1^y1·...·pt^yt))&lt;br /&gt;
 = lcm(lambda(a), lambda(b))&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exponential cycle length===&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;r_{\mathrm{max}}=\max_i\{r_i\}&amp;lt;/math&amp;gt; is the biggest exponent in the prime factorization &amp;lt;math&amp;gt; n= p_1^{r_1}p_2^{r_2} \cdots p_{k}^{r_k} &amp;lt;/math&amp;gt; of {{mvar | n}}, then for all {{mvar | a}} (including those not coprime to {{mvar | n}}) and all {{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039; ≥ &amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt;}},&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a^r \equiv a^{\lambda(n)+r} \pmod n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In particular, for [[Square-free integer|square-free]] {{mvar | n}} ({{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; {{=}} 1}}), for all {{mvar | a}} we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \equiv a^{\lambda(n)+1} \pmod n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Average value===&lt;br /&gt;
&lt;br /&gt;
For any {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≥ 16}}:&amp;lt;ref&amp;gt;Theorem 3 in Erdős (1991)&amp;lt;/ref&amp;gt;&amp;lt;ref name=HBII194&amp;gt;Sándor &amp;amp; Crstici (2004) p.194&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{1}{n} \sum_{i \leq n} \lambda (i)  =  \frac{n}{\ln n} e^{B (1+o(1)) \ln\ln n / (\ln\ln\ln n)  }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(called Erdős approximation in the following) with the constant&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;B := e^{-\gamma} \prod_{p\in\mathbb P} \left({1 - \frac{1}{(p-1)^2(p+1)}}\right) \approx 0.34537 &amp;lt;/math&amp;gt;&lt;br /&gt;
and {{math | &amp;#039;&amp;#039;γ&amp;#039;&amp;#039; ≈ 0.57721}}, the [[Euler–Mascheroni constant]].&lt;br /&gt;
&lt;br /&gt;
The following table gives some overview over the first {{math | 1=2&amp;lt;sup&amp;gt;26&amp;lt;/sup&amp;gt; – 1 = {{val|fmt=gaps|67108863}}}} values of the {{mvar | λ}} function, for both, the exact average and its Erdős-approximation.&lt;br /&gt;
&lt;br /&gt;
Additionally given is some overview over the more easily accessible {{nowrap|“logarithm over logarithm” values}}  {{math | 1=LoL(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) := {{sfrac|ln &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)|ln &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}}} with&lt;br /&gt;
* {{math | LoL(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) &amp;gt; {{sfrac|4|5}} ⇔ &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) &amp;gt; &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;{{sfrac|4|5}}&amp;lt;/sup&amp;gt;}}.&lt;br /&gt;
There, the table entry in row number 26 at column&lt;br /&gt;
* {{math | % LoL &amp;gt; {{sfrac|4|5}}}} {{pad|1em}} → 60.49&lt;br /&gt;
indicates that 60.49% (≈ {{val|fmt=gaps|40000000}}) of the integers {{math | 1 ≤ &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≤ {{val|fmt=gaps|67108863}}}} have {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) &amp;gt; &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;{{sfrac|4|5}}&amp;lt;/sup&amp;gt;}} meaning that the majority of the {{mvar | λ}} values is exponential in the length {{math | &amp;#039;&amp;#039;l&amp;#039;&amp;#039; :{{=}} log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} of the input {{mvar | n}}, namely&lt;br /&gt;
:&amp;lt;math&amp;gt;\left(2^\frac45\right)^l = 2^\frac{4l}{5} = \left(2^l\right)^\frac45 = n^\frac45.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:right&amp;quot;&lt;br /&gt;
|- style=&amp;quot;vertical-align:top&amp;quot;&lt;br /&gt;
! {{mvar | ν}} || {{math | 1=&amp;#039;&amp;#039;n&amp;#039;&amp;#039; = 2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;ν&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; – 1}} || sum&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\sum_{i\le n} \lambda(i) &amp;lt;/math&amp;gt; || average&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\tfrac1n \sum_{i\le n} \lambda(i) &amp;lt;/math&amp;gt; || Erdős average || Erdős /&amp;lt;br&amp;gt;exact average || {{math | LoL}} average || % {{math | LoL}} &amp;gt; {{sfrac|4|5}} || % {{math | LoL}} &amp;gt; {{sfrac|7|8}}&lt;br /&gt;
|-&lt;br /&gt;
|5||31||270||8.709677||68.643||7.8813||0.678244||41.94 ||35.48 &lt;br /&gt;
|-&lt;br /&gt;
|6||63||964||15.301587||61.414||4.0136||0.699891||38.10 ||30.16 &lt;br /&gt;
|-&lt;br /&gt;
|7||127||3574||28.141732||86.605||3.0774||0.717291||38.58 ||27.56 &lt;br /&gt;
|-&lt;br /&gt;
|8||255||12994||50.956863||138.190||2.7119||0.730331||38.82 ||23.53 &lt;br /&gt;
|-&lt;br /&gt;
|9||511||48032||93.996086||233.149||2.4804||0.740498||40.90 ||25.05 &lt;br /&gt;
|-&lt;br /&gt;
|10||1023||178816||174.795699||406.145||2.3235||0.748482||41.45 ||26.98 &lt;br /&gt;
|-&lt;br /&gt;
|11||2047||662952||323.865169||722.526||2.2309||0.754886||42.84 ||27.70 &lt;br /&gt;
|-&lt;br /&gt;
|12||4095||2490948||608.290110||1304.810||2.1450||0.761027||43.74 ||28.11 &lt;br /&gt;
|-&lt;br /&gt;
|13||8191||9382764||1145.496765||2383.263||2.0806||0.766571||44.33 ||28.60 &lt;br /&gt;
|-&lt;br /&gt;
|14||16383||35504586||2167.160227||4392.129||2.0267||0.771695||46.10 ||29.52 &lt;br /&gt;
|-&lt;br /&gt;
|15||32767||134736824||4111.967040||8153.054||1.9828||0.776437||47.21 ||29.15 &lt;br /&gt;
|-&lt;br /&gt;
|16||65535||513758796||7839.456718||15225.43{{0}}||1.9422||0.781064||49.13 ||28.17 &lt;br /&gt;
|-&lt;br /&gt;
|17||131071||1964413592||14987.40066{{0}}||28576.97{{0}}||1.9067||0.785401||50.43 ||29.55 &lt;br /&gt;
|-&lt;br /&gt;
|18||262143||7529218208||28721.79768{{0}}||53869.76{{0}}||1.8756||0.789561||51.17 ||30.67 &lt;br /&gt;
|-&lt;br /&gt;
|19||524287||28935644342||55190.46694{{0}}||101930.9{{0|00}}||1.8469||0.793536||52.62 ||31.45 &lt;br /&gt;
|-&lt;br /&gt;
|20||1048575||111393101150||106232.8409{{0|00}}||193507.1{{0|00}}||1.8215||0.797351||53.74 ||31.83 &lt;br /&gt;
|-&lt;br /&gt;
|21||2097151||429685077652||204889.9090{{0|00}}||368427.6{{0|00}}||1.7982||0.801018||54.97 ||32.18 &lt;br /&gt;
|-&lt;br /&gt;
|22||4194303||1660388309120||395867.5158{{0|00}}||703289.4{{0|00}}||1.7766||0.804543||56.24 ||33.65 &lt;br /&gt;
|-&lt;br /&gt;
|23||8388607||6425917227352||766029.1187{{0|00}}||1345633{{0|.000}}||1.7566||0.807936||57.19 ||34.32 &lt;br /&gt;
|-&lt;br /&gt;
|24||16777215||24906872655990||1484565.386{{0|000}}||2580070{{0|.000}}||1.7379||0.811204||58.49 ||34.43 &lt;br /&gt;
|-&lt;br /&gt;
|25||33554431||96666595865430||2880889.140{{0|000}}||4956372{{0|.000}}||1.7204||0.814351||59.52 ||35.76 &lt;br /&gt;
|-&lt;br /&gt;
|26||67108863||375619048086576||5597160.066{{0|000}}||9537863{{0|.000}}||1.7041||0.817384||60.49 ||36.73 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Prevailing interval===&lt;br /&gt;
For all numbers {{mvar | N}} and all but {{math | &amp;#039;&amp;#039;o&amp;#039;&amp;#039;(&amp;#039;&amp;#039;N&amp;#039;&amp;#039;)}}&amp;lt;ref&amp;gt;Theorem 2 in Erdős (1991) 3. Normal order. (p.365)&amp;lt;/ref&amp;gt; positive integers {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≤ &amp;#039;&amp;#039;N&amp;#039;&amp;#039;}} (a &amp;quot;prevailing&amp;quot; majority):&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(n) = \frac{n} {(\ln n)^{\ln\ln\ln n + A  + o(1)}}&amp;lt;/math&amp;gt;&lt;br /&gt;
with the constant&amp;lt;ref name=HBII194/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;A := -1 + \sum_{p\in\mathbb P} \frac{\ln p}{(p-1)^2} \approx 0.2269688 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lower bounds===&lt;br /&gt;
&lt;br /&gt;
For any sufficiently large number {{mvar | N}} and for any {{math | Δ ≥ (ln ln &amp;#039;&amp;#039;N&amp;#039;&amp;#039;)&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}, there are at most&lt;br /&gt;
:&amp;lt;math&amp;gt;N\exp\left(-0.69(\Delta\ln\Delta)^\frac13\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
positive integers {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≤ N}} such that {{math | &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) ≤ &amp;#039;&amp;#039;ne&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;−Δ&amp;lt;/sup&amp;gt;}}.&amp;lt;ref&amp;gt;Theorem 5 in Friedlander (2001)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Minimal order===&lt;br /&gt;
For any sequence {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; &amp;lt; &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; &amp;lt; &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; &amp;lt; ⋯}} of positive integers, any constant {{math | 0 &amp;lt; &amp;#039;&amp;#039;c&amp;#039;&amp;#039; &amp;lt; {{sfrac|1|ln 2}}}}, and any sufficiently large {{mvar | i}}:&amp;lt;ref name=&amp;quot;Theorem 1 in Erdős (1991)&amp;quot;&amp;gt;Theorem 1 in Erdős (1991)&amp;lt;/ref&amp;gt;&amp;lt;ref name=HBII193&amp;gt;Sándor &amp;amp; Crstici (2004) p.193&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(n_i) &amp;gt; \left(\ln n_i\right)^{c\ln\ln\ln n_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Small values===&lt;br /&gt;
&lt;br /&gt;
For a constant {{mvar | c}} and any sufficiently large positive {{mvar | A}}, there exists an integer {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;A&amp;#039;&amp;#039;}} such that&amp;lt;ref name=HBII193/&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(n)&amp;lt;\left(\ln A\right)^{c\ln\ln\ln A}.&amp;lt;/math&amp;gt;&lt;br /&gt;
Moreover, {{mvar | n}} is of the form&lt;br /&gt;
:&amp;lt;math&amp;gt;n=\mathop{\prod_{q \in \mathbb P}}_{(q-1)|m}q&amp;lt;/math&amp;gt;&lt;br /&gt;
for some square-free integer {{math | &amp;#039;&amp;#039;m&amp;#039;&amp;#039; &amp;lt; (ln &amp;#039;&amp;#039;A&amp;#039;&amp;#039;)&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;c&amp;#039;&amp;#039; ln ln ln &amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}.&amp;lt;ref name=&amp;quot;Theorem 1 in Erdős (1991)&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Image of the function===&lt;br /&gt;
The set of values of the Carmichael function has counting function&amp;lt;ref&amp;gt;{{cite journal | arxiv=1408.6506 | title=The image of Carmichael&amp;#039;s &amp;#039;&amp;#039;λ&amp;#039;&amp;#039;-function | first1=Kevin | last1=Ford | first2=Florian | last2=Luca | first3=Carl | last3=Pomerance | date=27 August 2014 | doi=10.2140/ant.2014.8.2009 | volume=8 | issue=8 | journal=Algebra &amp;amp; Number Theory | pages=2009–2026| s2cid=50397623 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{x}{(\ln x)^{\eta+o(1)}} ,&amp;lt;/math&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
:&amp;lt;math&amp;gt;\eta=1-\frac{1+\ln\ln2}{\ln2} \approx 0.08607&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use in cryptography==&lt;br /&gt;
&lt;br /&gt;
The Carmichael function is important in [[cryptography]] due to its use in the [[RSA (cryptosystem)|RSA encryption algorithm]].&lt;br /&gt;
&lt;br /&gt;
==Proof of Theorem 1==&lt;br /&gt;
For {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} &amp;#039;&amp;#039;p&amp;#039;&amp;#039;}}, a prime, Theorem 1 is equivalent to [[Fermat&amp;#039;s little theorem]]:&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{p-1}\equiv1\pmod{p}\qquad\text{for all }a\text{ coprime to }p.&amp;lt;/math&amp;gt;&lt;br /&gt;
For prime powers {{math | &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, {{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039; &amp;gt; 1}}, if&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{p^{r-1}(p-1)}=1+hp^r&amp;lt;/math&amp;gt;&lt;br /&gt;
holds for some integer {{mvar | h}}, then raising both sides to the power {{mvar | p}} gives&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{p^r(p-1)}=1+h&amp;#039;p^{r+1}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some other integer &amp;lt;math&amp;gt;h&amp;#039;&amp;lt;/math&amp;gt;. By induction it follows that &amp;lt;math&amp;gt;a^{\varphi(p^r)}\equiv1\pmod{p^r}&amp;lt;/math&amp;gt; for all {{mvar | a}} relatively prime to {{mvar | p}} and hence to {{math | &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}. This establishes the theorem for {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; {{=}} 4}} or any odd prime power.&lt;br /&gt;
&lt;br /&gt;
===Sharpening the result for higher powers of two===&lt;br /&gt;
For {{mvar | a}} coprime to (powers of) 2 we have {{math | &amp;#039;&amp;#039;a&amp;#039;&amp;#039; {{=}} 1 + 2&amp;#039;&amp;#039;h&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;}} for some integer {{math | &amp;#039;&amp;#039;h&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;}}. Then,&lt;br /&gt;
:&amp;lt;math&amp;gt;a^2 = 1+4h_2(h_2+1) = 1+8\binom{h_2+1}{2}=:1+8h_3&amp;lt;/math&amp;gt;,&lt;br /&gt;
where &amp;lt;math&amp;gt;h_3&amp;lt;/math&amp;gt; is an integer. With {{math | 1=&amp;#039;&amp;#039;r&amp;#039;&amp;#039; = 3}}, this is written&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{2^{r-2}} = 1+2^r h_r.&amp;lt;/math&amp;gt;&lt;br /&gt;
Squaring both sides gives&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{2^{r-1}}=\left(1+2^r h_r\right)^2=1+2^{r+1}\left(h_r+2^{r-1}h_r^2\right)=:1+2^{r+1}h_{r+1},&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;h_{r+1}&amp;lt;/math&amp;gt; is an integer. It follows by induction that&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{2^{r-2}}=a^{\frac{1}{2}\varphi(2^r)}\equiv 1\pmod{2^r}&amp;lt;/math&amp;gt;&lt;br /&gt;
for all &amp;lt;math&amp;gt;r\ge3&amp;lt;/math&amp;gt; and all {{mvar | a}} coprime to &amp;lt;math&amp;gt;2^r&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;Carmichael (1914) pp.38–39&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Integers with multiple prime factors===&lt;br /&gt;
By the [[unique factorization theorem]], any {{math | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;gt; 1}} can be written in a unique way as&lt;br /&gt;
:&amp;lt;math&amp;gt; n= p_1^{r_1}p_2^{r_2} \cdots p_{k}^{r_k} &amp;lt;/math&amp;gt;&lt;br /&gt;
where {{math | &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; &amp;lt; &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; &amp;lt; ... &amp;lt; &amp;#039;&amp;#039;p&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;}} are primes and {{math | &amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, &amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, ..., &amp;#039;&amp;#039;r&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;}} are positive integers. The results for prime powers establish that, for &amp;lt;math&amp;gt;1\le j\le k&amp;lt;/math&amp;gt;,&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{\lambda\left(p_j^{r_j}\right)}\equiv1 \pmod{p_j^{r_j}}\qquad\text{for all }a\text{ coprime to }n\text{ and hence to }p_i^{r_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
From this it follows that&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{\lambda(n)}\equiv1 \pmod{p_j^{r_j}}\qquad\text{for all }a\text{ coprime to }n,&amp;lt;/math&amp;gt;&lt;br /&gt;
where, as given by the recurrence,&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda(n) = \operatorname{lcm}\Bigl(\lambda\left(p_1^{r_1}\right),\lambda\left(p_2^{r_2}\right),\ldots,\lambda\left(p_k^{r_k}\right)\Bigr).&amp;lt;/math&amp;gt;&lt;br /&gt;
From the [[Chinese remainder theorem]] one concludes that&lt;br /&gt;
:&amp;lt;math&amp;gt;a^{\lambda(n)}\equiv1 \pmod{n}\qquad\text{for all }a\text{ coprime to }n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Carmichael number]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* {{cite journal |first1=Paul |last1= Erdős |author1-link=Paul Erdős |first2=Carl |last2=Pomerance |author2-link=Carl Pomerance |first3=Eric |last3=Schmutz |year=1991 |title=Carmichael&amp;#039;s lambda function |journal=Acta Arithmetica |volume=58 |issue= 4 |pages=363–385 |mr=1121092 | zbl=0734.11047 | issn=0065-1036 |doi=10.4064/aa-58-4-363-385|doi-access=free }}&lt;br /&gt;
* {{cite journal |first1=John B. |last1=Friedlander |author1-link=John Friedlander |first2=Carl |last2=Pomerance |first3=Igor E. |last3=Shparlinski  |year=2001 |title=Period of the power generator and small values of the Carmichael function |journal=Mathematics of Computation |volume=70 |number=236 |pages=1591–1605, 1803–1806 |mr=1836921 | zbl=1029.11043 | issn=0025-5718 |doi=10.1090/s0025-5718-00-01282-5|doi-access=free }}&lt;br /&gt;
* {{cite book | last1=Sándor | first1=Jozsef | last2=Crstici | first2=Borislav | title=Handbook of number theory II | location=Dordrecht | publisher=Kluwer Academic | year=2004 | isbn=978-1-4020-2546-4 | pages=32–36, 193–195 | zbl=1079.11001}}&lt;br /&gt;
* {{Gutenberg|no=13693|name=The Theory of Numbers|last=Carmichael|first=Robert D.|origyear=1914}}&lt;br /&gt;
&lt;br /&gt;
{{Totient}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modular arithmetic]]&lt;br /&gt;
[[Category:Functions and mappings]]&lt;/div&gt;</summary>
		<author><name>imported&gt;JJMC89 bot III</name></author>
	</entry>
</feed>