# 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

- $\displaystyle \operatorname{carmichael\_lambda}(15) = 4$

  `carmichael_lambda(15)`

  In the solver, `carmichael_lambda(15)` gives `4`.

  [Open in the solver](https://hilberon.com/?q=carmichael_lambda%2815%29)

## Related functions

- [catalan_number](https://hilberon.com/library/catalan_number)

  The n-th Catalan number.
- [bernoulli_b](https://hilberon.com/library/bernoulli_b)

  The n-th Bernoulli number.
- [chinese_remainder](https://hilberon.com/library/chinese_remainder)

  The number that leaves given remainders on division by given moduli.
- [bell_b](https://hilberon.com/library/bell_b)

  The n-th Bell number: how many ways to split n items into groups.
- [continued_fraction](https://hilberon.com/library/continued_fraction)

  The continued fraction of a rational number, as a list.
- [totient](https://hilberon.com/library/totient)

  Euler's totient: how many whole numbers up to n are coprime to n.

---
Source: https://hilberon.com/library/carmichael_lambda
