ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 07 Jul 2024 22:34:25 +0200List of all invariant factors (finite abelian groups)https://ask.sagemath.org/question/78181/list-of-all-invariant-factors-finite-abelian-groups/I'm looking for a Sagemath builtin function giving the list of all the possible **invariant factors** of an abelian group with given finite order (say `n`)?
In Sagemath terminology, invariant factor is known as [elementary divisor](https://doc.sagemath.org/html/en/reference/groups/sage/groups/abelian_gps/abelian_group_gap.html#sage.groups.abelian_gps.abelian_group_gap.AbelianGroup_gap.elementary_divisors)
For instance, if `n = 48`, it should return something like this:
`[[2, 2, 2, 6], [2, 2, 12], [2, 24], [4, 12], [48]]`
Or perhaps the list of all the possible **elementary divisors** in the proper sense.
This is not group theory but more or less combinatorics or counting.poSun, 07 Jul 2024 22:34:25 +0200https://ask.sagemath.org/question/78181/