Ask Your Question

Revision history [back]

You can use the method with a surprizing long but explicit name list_of_elements_of_multiplicative_group:

sage: G = Zmod(8) ; G
Ring of integers modulo 8
sage: G.list_of_elements_of_multiplicative_group()
[1, 3, 5, 7]

You can use the method with a surprizing long but explicit name list_of_elements_of_multiplicative_group:

sage: G = Zmod(8) ; G
Ring of integers modulo 8
sage: G.list_of_elements_of_multiplicative_group()
[1, 3, 5, 7]

If you want this set as a genuine group, you can do:

sage: G.unit_group()
Multiplicative Abelian group isomorphic to C2 x C2