numlib::lambda
-- Carmichael
functionnumlib::lambda
(n)
returns the value of the
Carmichael function at n
.
numlib::lambda(n)
n |
- | a natural number |
numlib::lambda
(n)
returns a natural
number, or the function call with its argument evaluated.
m
is a natural number then
numlib::lambda
(m)
returns the value of the
Carmichael function in m
, i. e., the maximal order of
an element in the group of units modulo m
.numlib::lambda
returns an error if the argument
evaluates to a number of wrong type. numlib::lambda
returns the function call with its argument evaluated if m
is not a number.We compute the value of the Carmichael function in :
>> numlib::lambda(97)
96
We compute the value of the Carmichael function in :
>> numlib::lambda(96)
8
ifactor
is used for factoring
n
.