First time here? Check out the FAQ!

Ask Your Question
2

Multiplicative group of integers mod n?

asked 9 years ago

zqcm gravatar image

updated 9 years ago

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.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 9 years ago

tmonteil gravatar image

updated 9 years ago

This group can be found in the .unit_group() method of your ring of integers mod n, see the answer on this ask question.

Preview: (hide)
link
0

answered 9 years ago

Nathann gravatar image

The integers modulo n are not a group with respect to multiplication. 1 is a unit element, but 0 has no inverse.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 3,237 times

Last updated: Oct 11 '15