Carmichael function Created 2026-09-24 Updated 2026-10-20
For an integer , the Carmichael function is the exponent of a finite group for the unit group : the least positive integer for which
Here the greatest common divisor condition selects the units. Euler's totient function counts them; the Carmichael function gives their least common return exponent.[ref]
Modulo eight, the units are , and their squares are all congruent to one. Their multiplicative orders are , so although . Modulo fifteen, the units have multiplicative orders . For example, the powers of two return through . Thus although ; the multiplicative order of four is only two.
Figure 1.
Individual unit orders divide the least common return exponent modulo eight and fifteen
. Details.
The three quantities are related by
A common return exponent must be a multiple of every multiplicative order, hence of their least common multiple. Conversely, that least common multiple makes every unit return to one. Lagrange's theorem makes each multiplicative order divide the group order , proving the final divisibility. The Carmichael function applies to all units at once, while the multiplicative order concerns a chosen unit.
For the prime factorization with distinct prime numbers and , the formulas are
These are least common multiples, rather than products: . The convention handles the trivial case separately.[ref]
The Chinese remainder theorem for unit groups explains the least common multiple: a power returns to one in every prime power component exactly when it is a multiple of each component's exponent of a finite group. For an odd prime power, the unit group is a cyclic group of group order . For , the unit group modulo is a direct product of groups , generated by the classes of and five, so its exponent of a finite group is .[ref]
This gives a uniform reduction for modular exponentiation: for a unit and a nonnegative integer , reduce modulo . For example, because . The unit hypothesis matters: , but . Computing the formula assumes the prime factorization is available. The same common-exponent viewpoint explains Carmichael numbers: a composite number passes the Fermat primality test for every unit base exactly when . For example, .
Characteristic of a rng 2026-10-31
The characteristic of a rng is the least positive integer annihilating every element of its additive abelian group, or zero if no such integer exists. In a unital ring this equals the characteristic of a ring: implies , and annihilating every element in particular annihilates . In a finite rng it is the exponent of a finite group of the additive group.
For an odd prime number , a finite p-group that is a product of cyclic subgroups is a powerful p-group. Indeed, has exponent of a finite group and the same minimal generator number . Its cyclic factorization gives , while its Frattini quotient has order . Thus , is an elementary abelian group, and . The condition on the number of factors is essential: the nonabelian Heisenberg group over has exponent and is a product of three cyclic subgroups, although its minimal generator number is two.
Use the Chinese remainder theorem to separate relatively prime factors:
These five cyclic prime-power summands are the elementary-divisor form. Leave one summand aside and combine the factors of orders , which are pairwise coprime. Their direct sum of modules is cyclic of order . The invariant-factor canonical form is therefore
Its group order is , and its exponent of a finite group is , providing independent checks on the decomposition. Since its exponent is smaller than its order, itself is not cyclic.
An example is the unitriangular group of degree three over F3, consisting of
This is an upper unitriangular group of order . Direct matrix multiplication gives
The formula gives closure, identity , and inverse ; associativity follows from matrix multiplication. The two elements and do not commute: their products have respectively and .
Every element has the form with . Since the finite field has characteristic three, the binomial expansion gives
Hence every nonidentity element has order exactly three. This is a nonabelian finite group with exponent of a finite group equal to three.
An Euler pseudoprime is an odd composite number with satisfying , where the right side is the Jacobi symbol. A weaker convention requires only ; it is distinguished below. A strong pseudoprime, with and odd, satisfies or for some .
By the Chinese remainder theorem for unit groups, the unit group modulo is . Modulo , . Thus the only possible sign in is positive. Modulo , writing for a primitive root, the condition is , equivalently . Consequently has multiplicative order dividing in each factor. Its square is either or in each factor, but these signs must agree: modulo , the Legendre symbol is for square and for square , and the same is true modulo . The Euler pseudoprime condition additionally requires the product of those Legendre symbols to be . Hence
Each sign has two roots modulo each prime, hence four roots modulo . There are eight pseudoprime bases modulo under the Jacobi symbol convention. Under the weaker sign-only convention there are instead sixteen pseudoprime bases, since the two signs of the squares need not agree; the stated equivalence therefore specifically uses the Jacobi symbol convention.
For the strong pseudoprime condition, . Since the unit group has exponent of a finite group , the only possibilities are or . The six pseudoprime bases are . For example , while has but . Thus the strong-pseudoprime pseudoprime bases are not a subgroup.
Let be a finite subgroup of and let be its exponent of a finite group. A finite abelian group contains an element whose order is its exponent: combine elements of maximal prime-power order across the primary components. Hence .
Every satisfies , so all elements are roots in the field of the nonzero polynomial . The Lagrange root bound over a field gives . Therefore , and the element of order generates . This proves that a finite subgroup of a field multiplicative group is cyclic.
The given unitriangular group of degree three over F3 has elements, just as does, so counting alone cannot distinguish them. Instead compare element orders.
Write an element as , with strictly upper triangular of size . Then . Over the finite field , the binomial theorem for commuting matrices gives
Every nonidentity element of consequently has element order . In contrast, has element order , by part (b). An isomorphism preserves element order, so
Equivalently, the exponent of a finite group is for and for .