How this calculation works
Count automorphisms of a finite abelian group from its cyclic factor orders using exact prime-primary arithmetic.
Aut(G)=product over primes Aut(Gp); for p-type e1≤…≤em use the exact exponent-multiplicity formula.A worked example
C4×C2 has group order 8, invariant factors(2,4) and exactly 8 automorphisms.
Good to know
1–12 positive cyclic factor orders≤1000000. Exact BigInt count and prime-primary recombination; unit factors omitted from normalized invariant factors. Counts only, not a displayed group of automorphism matrices or a classification of its abstract automorphism-group structure.
Reference: Hillar and Rhea: automorphisms of finite abelian groups (opens in a new tab) ↗
Counting all invertible endomorphisms
An automorphism is a group homomorphism from a group to itself that is invertible. For a finite abelian group presented as a product of cyclic factors, the number of automorphisms can be computed from prime-power structure without writing a full multiplication table or enumerating every map.
This page returns that exact count. It does not validate only one proposed map, and it does not list all automorphisms when the group is large. The cyclic-factor input supplies enough classification data for counting, but not a preferred basis of every abstract automorphism as a displayed permutation.
Compare this with the Finite group homomorphism calculator with kernel and image. Count all invertible group endomorphisms from invariant factors, instead of validating one supplied homomorphism.
Cyclic factors need not be pre-normalized
Enter the positive orders of the cyclic factors. The list four-two and the list two-four describe the same product group. More generally, a list may not initially satisfy the invariant-factor divisibility condition, so the implementation factors each cyclic order into prime powers before normalization.
A factor of order one contributes only a trivial direct-product component. It is omitted from the normalized invariant factors and does not change the automorphism count. If every factor is trivial, the group has one element and one automorphism, namely its identity map.
The C4 times C2 example
The default input is cyclic orders four and two. Their product gives group order eight, and the normalized invariant factors are two and four. Both factors belong to the same two-primary component, with sorted prime exponents one and two.
The exact formula gives eight automorphisms. This is not the factorial of eight: most permutations of a group's elements do not preserve addition. It is also not the product of the separate cyclic automorphism counts, because maps can mix the two compatible prime-primary coordinates in additional invertible ways.
Prime-primary decomposition
Elements of prime-power order form characteristic primary components, so an automorphism preserves each such component. The full automorphism count is therefore the product of counts for the different primes. This decomposition separates coprime arithmetic before handling the more delicate interactions among factors of one prime.
For a chosen prime p, write the cyclic exponents in nondecreasing order. Repeated exponents form blocks. The formula combines powers of p, describing permitted entries of endomorphisms, with factors that ensure invertibility on the appropriate reductions modulo p. Exact integer multiplication avoids rounding a large combinatorial count.
Reconstructing invariant factors
To return a standard group description, the sorted exponent lists for each prime are aligned at their largest end and recombined. This produces positive invariant factors in divisibility order after trivial entries are dropped. Their product must equal the original product of cyclic orders.
For example, coprime cyclic factors can combine into one larger invariant factor even though the input had several rows. That normalization changes the presentation, not the group. It is useful for recognizing equivalent inputs and for comparing results with a package that requires invariant factors at entry.
Interpreting the exact output
The count is returned as an integer string so a large result is not rounded by ordinary floating-point display. Each primary component reports its prime, exponent list and contribution to the total count. These pieces let you check multiplication and diagnose a mistaken cyclic order.
The abstract structure of the automorphism group can be nonabelian even though the original group is abelian. A single order does not classify that structure or tell you which generators to choose. The page intentionally distinguishes exact counting from constructing a complete automorphism-group presentation.
Independent checks on small groups
For a cyclic group of order n, the answer should equal Euler's totient of n. For an elementary abelian group of rank r over a prime field, it should agree with the order of the general linear group GL(r, p). Both identities test important limiting cases of the primary formula.
For tiny products, enumerate images of cyclic generators, enforce their order constraints and count maps with full image. That independent procedure validates the count without reusing its formula. For large products, keep the normalized factors and primary contributions with the result so the precise finite group being counted remains clear.
A few questions, answered
Must cyclic orders divide the next order?
No. The implementation converts the supplied product into prime-primary data and normalized invariant factors.
Why is the answer not a factorial?
Only permutations preserving the group operation are automorphisms; most element permutations are not homomorphisms.
Can different input lists describe the same group?
Yes. Invariant-factor normalization helps identify equivalent cyclic-product presentations.
Does the count classify the automorphism group?
No. It gives its exact order, not a presentation or a full set of automorphism matrices.