carmichael_lambda function
Carmichael function: the least power that takes every number coprime to n to 1 modulo n.
How to write it
carmichael_lambda(n)
- n
- A whole number. Takes a whole number.
Examples
carmichael_lambda(15)In the solver,
Open in the solvercarmichael_lambda(15)gives4.
Related functions
- catalan_number
The n-th Catalan number.
- bernoulli_b
The n-th Bernoulli number.
- chinese_remainder
The number that leaves given remainders on division by given moduli.
- bell_b
The n-th Bell number: how many ways to split n items into groups.
- continued_fraction
The continued fraction of a rational number, as a list.
- totient
Euler's totient: how many whole numbers up to n are coprime to n.