Evaluate λ(n), factor powers, and least universal exponents precisely. Review residue behavior visually in depth. Compare nearby values using detailed tables, exports, and charts.
| n | Prime Factorization | λ(n) | φ(n) | Notes |
|---|---|---|---|---|
| 1 | 1 | 1 | 1 | Conventional base case. |
| 8 | 23 | 2 | 4 | Uses the special power-of-two rule. |
| 9 | 32 | 6 | 6 | Odd prime powers match totients. |
| 10 | 2 × 5 | 4 | 4 | LCM of prime-power contributions. |
| 12 | 22 × 3 | 2 | 4 | Smaller than φ(n), which is common. |
| 15 | 3 × 5 | 4 | 8 | Universal exponent for all units mod 15. |
| 21 | 3 × 7 | 6 | 12 | Computed from lcm(2, 6). |
| 45 | 32 × 5 | 12 | 24 | Shows LCM reduction from components 6 and 4. |
Prime-power decomposition: If n = ∏ piai, then the Carmichael function is
λ(n) = lcm( λ(p1a1), λ(p2a2), ... )
For odd prime powers:
λ(pa) = φ(pa) = pa-1(p − 1)
For powers of 2:
λ(2) = 1, λ(4) = 2, and λ(2a) = 2a−2 for a ≥ 3
Why it matters: λ(n) is the least exponent such that aλ(n) ≡ 1 (mod n) for every integer a with gcd(a, n) = 1.
It gives the least positive exponent that makes every unit modulo n return 1 after exponentiation. It refines Euler’s theorem by often producing a smaller universal exponent than φ(n).
Euler’s totient counts how many invertible residues exist. The Carmichael function instead finds the smallest exponent that works for all of them. That exponent is frequently smaller than the count itself.
The multiplicative structure modulo 2a changes for a ≥ 3. Because of that, λ(2a) becomes 2a−2 instead of φ(2a) = 2a−1.
Yes. This is the standard convention used in many number-theory references and software tools. It keeps formulas tidy and lets the function behave naturally at the smallest valid input.
Yes. The calculator factors n into prime powers, computes λ for each component, and then takes their least common multiple. That is the standard efficient route for exact evaluation.
They test a few values a with gcd(a, n) = 1 and display aλ(n) mod n. For correct results, each shown remainder should be 1.
It appears in modular arithmetic, group theory, primality discussions, and cryptographic reasoning. It helps describe repeating exponent behavior more sharply than Euler’s totient in many composite cases.
You can use large integers, but runtime grows because exact factorization is required. For routine web use, moderate inputs are much more practical than extremely large semiprimes or near-prime values.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.