CarmichaelLambda
The Carmichael function : the exponent of the multiplicative group mod — the least with for every coprime to .
CarmichaelLambda✓CarmichaelLambda(n)the exponent of carmichael_lambda(n)SymPyreduced_totient(n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | compute-engine | always |
(integer) -> integer | number-theoryreplaces compute-engine | always |
Details
- compute-engine has this natively; the gap closed here is Wolfram's and threading over a list, which the native handler left unevaluated.
- always, and the two agree exactly when is cyclic. See Totient.
Plot
Examples
Scope #
Applications #
Properties #
The only unit mod 2 is 1, so
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Units mod 4 form a cyclic group of order 2
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
: the units mod 5 form a cyclic group
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Multiplicative over coprime parts:
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Mod 7 there is a primitive root, so
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Powers of 2 above 4 fall short of : , not 4
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Odd prime powers are cyclic, so
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
, the full order of the unit group
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
: 2 is a primitive root mod 13
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Equals since 2 contributes nothing
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Power of 2 beyond 4: , here 4
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
, a power of 2 for a Fermat prime
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
Zero is a degenerate input and gives 0
live ↗Known value · Wolfram MathematicalFunctionData, CarmichaelLambda
About
| Examples | 30 |
|---|---|
| Checked against | Wolfram Language 30 agreeSageMath 21 agree5 errorSymPy 21 agree4 errormathlib4 22 agree6 error |
| Crosswalk | Wolfram LanguageSageMathSymPy |
Implementation
sympypackages/oracle/src/mappings.tsreduced_totient is SymPy's Carmichael function.
sagepackages/oracle/src/mappings.tsmathlib4packages/oracle/src/mappings.tsArithmeticFunction.carmichael, the exponent of the multiplicative group mod n; natural n only.
See also: Totient, MultiplicativeOrder