CarmichaelLambda
Usage
• CarmichaelLambda[n] 给出了Carmichael函数  (n),Carmichael函数定义为使得对所有的与  素的  都有  的最小整数。
Notes
• 如果没有任何整数  满足要求的条件, CarmichaelLambda 不会求值而返回。 • 参见 Mathematica 全书: 节 3.2.4.
Further Examples
The Carmichael function of is . The following examples show what this means.
In[1]:=
|
In[2]:=
|
Out[2]=
|
This selects the integers from to that are relatively prime to .
In[3]:=
|
Out[3]=
|
Taking any of these integers to the power CarmichaelLambda[9] is modulo .
In[4]:=
|
Out[4]=
|
CarmichaelLambda[9] is the first integer that does this.
In[5]:=
|
Out[5]=
|
In[6]:=
|
|