Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Multiplicative group of integers mod n?

I'm guessing this is pretty basic, but I'm also new to Sage and can't find anything about it.

I know how to work with the ring of integers mod n. Is there something analogous for the multiplicative group of integers mod n?

Something like:

G = Mult_Integers(5)
list(G)
[1, 2, 3, 4]

Googling has been surprisingly fruitless.

Thanks!

Multiplicative group of integers mod n?

I'm guessing this is pretty basic, but I'm also new to Sage and can't find anything about it.

I know how to work with the ring of integers mod n. Is there something analogous for the multiplicative group of integers mod n?

Something like:

G = Mult_Integers(5)
list(G)
[1, 2, 3, 4]

Googling has been surprisingly fruitless.

Thanks!

EDIT: @Nathann: right, but I'm not talking about {0, 1, 2, . . ., n-1}, but {1, 2, 3, . . ., n-1}, which is a group with multiplication.