Processing math: 100%

First time here? Check out the FAQ!

Sorry, this content is no longer available

Ask Your Question
0

What construct for cyclic group?

asked 4 years ago

Rafal Mi gravatar image

What is the proper Sage construct for working with cyclic group Z/nZ ? I cannot see any in group theory manual page. Yes, we have Integers(n), but it cannot be asked like a group about, say, subgroup().

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

philipp7 gravatar image

You can use the method CyclicPermutationGroup(n). This will create a cyclic group of given order. Then you can apply all the usual group-theory methods, e.g.

sage: G = CyclicPermutationGroup(8)
sage: G.is_cyclic()
True
sage: genG = G.gen()
sage: genG 
(1,2,3,4,5,6,7,8)

One problem is, that the elements are now represented as permutations and not in the "usual way" as integers 0,...,n1. However, if you want the element in G which corresponds to iZn you can use genG^i.

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: 4 years ago

Seen: 874 times

Last updated: Jul 30 '20