WLJS LogoWLJS Notebook

CarmichaelLambda

CarmichaelLambda[n] gives the Carmichael function λ(n).

Examples

Compute the Carmichael function:

CarmichaelLambda[12]
(* 2 *)

Compare with Euler's totient:

{CarmichaelLambda[100], EulerPhi[100]}
(* {20, 40} *)

Please visit the official Wolfram Language Reference for more details.

On this page