第22篇
\section{A Note on the Carmichael Function}%22
\markboth{Articles}{A Note on the Carmichael Function}
\vspace{4.2cm}
The well-known Euler's theorem states that
for every positive integer and every integer coprime to , where is the Euler's
totient function.
However, with some exceptions, is usually not the
least positive integer so that
holds for all integers with
and can be "optimized" to the so-called Carmichael Function .
Properties of this function keep appearing in Olympiad problems and
can often be very useful.
The purpose of this note is to state and prove some
of these properties and to give some examples of how they can be applied in
Olympiad problems.
\subsection{Introduction}
The following problem was given at the 3rd round of the 2006 Iranian National
Olympiad.
{\bf Problem 1.}
{\it Let be a positive integer and let be the least positive integer,
such that
for every integer with .
Prove that there exists an integer so that
}
We will see that this problem is a special case of a more general result, but
before proving it, we shall cover some theory.
{\bf Definition 1.}
For a positive integer and an integer with
the order of modulo , denoted by , is the least positive integer ,
so that .
Euler's theorem implies that .
{\bf Lemma 1.}
{\it Let be a positive integer and be an integer coprime to .
Then
if and only if .
Furthermore,
if and only if
,
i.e.,
.
}
{\bf Proof.}
Let .
It is clear that implies
.
On the other hand,
,
then there are integers such that
, , and
But , so .
{\bf Definition 2.}
Let be a positive integer.
An integer is called a primitive root modulo m if .
Unfortunately, roots do not exist for every positive integer .
{\bf Lemma 2.}
{\it Let be a positive integer greater than 1.
Then primitive roots
modulo exist if and only if has the form 2, 4, or where is an
odd prime number and is a positive integer.
}
This theorem is very well known, so we skip the rather long proof of it
(interested readers can find a proof in [2]).
\subsection{The Carmichael Function}
{\bf Definition 3.}
For a positive integer , denotes the least positive integer
so that
for all integers with .
is the so-called Carmichael Function.
{\bf Lemma 3.}
{\it Let be a positive integer.
Then
if and only if
for all integers coprime to .
}
The proof of Lemma 3 is similar to the proof of Lemma 1 and is left as an
exercise to the reader.
Note that Euler's theorem implies .
It is clear that if has primitive roots, then
.
We will now find a formula for .
{\bf Lemma 4.}
{\it Let be an integer.
Then
.
}
{\bf Proof.}
We first observe that for all odd integers .
Using induction, we can assume that
for all odd and some .
Then either
However, we have
in both cases, implying
.
Now, let be an odd integer so that
(i.e., each integer congruent to 3 or 5 modulo 8).
We clearly have
.
By induction, we can assume that
and
for some .
Then
but
,
implying
.
Hence, either
In both cases we have
Thus
.
On the other hand,
by Lemma 1, so
.
But
cannot exceed
and we already know that
.
It follows that
and thus
.
The proof of Lemma 4 also proves the following lemma.
{\bf Lemma 1.}
{\it For each congruent to or modulo ,
for all .
}
Now, let and be two coprime positive integers and let
, , .
Then
for any integer coprime to , so
for all integers coprime to .
Now, from Lemma 3 it follows that and
is a necessary and sufficient condition for (1) and since is the least
positive integer satisfying (1), it follows that
.
As a result we have the following lemma.
{\bf Lemma 5.}
{\it For any coprime positive integers and ,
}
We see that Lemma 2, 4, and 5 already give a complete formula for .
We summarize:
{\bf Theorem 1.}
{\it Let be a positive integer greater than .
Then
}
We can now return to the beginning of this note and solve Problem 1.
{\bf Lemma 6.}
{\it For any positive integer , there exists an integer so that
}
{\bf Proof.}
Let
be the prime factorization of and let be a solution of the congruence system
where are integers satisfying
respectively (they exist by Lemma 2 and 1).
Such an exists by the Chinese Remainder Theorem.
Then by Lemma 1,
for all .
Hence
But cannot exceed , so .
Lemma 6 can be generalized to
{\bf Theorem 2.}
{\it Let and be positive integers.
Then there exists an integer with
if and only if .
}
{\bf Proof.}
If for some , then Lemma 1 implies .
On the other hand, if , let be an integer with
(which exists by Lemma 6),
, and .
Then
because
and
would imply
, a contradiction.
The applications of the properties of the Carmichael Function are, when
possible, not always as obvious as it has been in Problem 1.
The following problem illustrates another kind of usage.
{\bf Problem 2.}
{\it Prove that for any positive integer , there is a positive integer
so that .
}
{\bf Solution.}
We will only discuss .
The statement is true for , just
take (we need this for the purpose of induction).
It follows from Lemma 1 that
.
However, since
from Lemma 1 it follows that
but
and thus
.
Hence, if ,
then either
or
.
\section*{Bibliography}
\bi
\item[{[1]}]
Mathlinks, {\it Order,}\\
http://www.mathlinks.ro/Forum/viewtopic.php?t=108204
\item[{[2]}]
Mathlinks, {\it Primitive root,}\\
http://www.mathlinks.ro/Forum/viewtopic.php?t=55473
\item[{[3]}]
Mathlinks,
,\\
http://www.mathlinks.ro/Forum/viewtopic.php?t=1912
\ei
\bigskip
\hfill
{\Large Yimin Ge, Vienna, Austria}
%%%%%%%
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix