Processing math: 95%

First time here? Check out the FAQ!

Ask Your Question
1

Counting cycles of induced permutations

asked 9 years ago

Malte gravatar image

updated 9 years ago

In order to do some sophisticated counting in graph theory, I need to count the cycles of some particular permutations.

In my situation, n is an integer greater than 1, and Kn is the set of all two-element sets {a,b} with a,b being integers not greater than n. Now any element π of the symmetric group Sn induces a permutation ¯π of Kn in a natural way, i.e. ¯π maps any set {a,b} of Kn onto {π(a), π(b)}. What I want to figure out with the help of SAGE is the number of cycles that the permutation ¯π has.

If you can help me, please do not forget to mention those little extra things that need to be done and that might appear obvious to you (e.g. importing packages and so forth), since I am a relative novice to SAGE.

Thank you very much.

Malte

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

vdelecroix gravatar image

Hello,

This is more a mathematical question rather than a Sage question. Given a permutation π with a given cycle decomposition, let say p=[p0,p1,...,pm1] (I mean that the cycles of π have lengths p0, p1, etc). Then the cycle decomposition of the action of π on sets can be explicitely computed in terms of p. In particular, for the question of the number of cycles you get m1i=0i1j=0gcd.

The above sum can be easily computed with Sage.

Vincent

Preview: (hide)
link

Comments

Merci, Vincent, for that quick and profound answer. I am surprised to learn that answering my question by doing maths is easier than by doing Sage. Your answer completely satisfies my needs, as far as I understand things by now. The reason I was thinking of this as a Sage problem was that I couldn't find a way to make Sage tell me anything about the cycle decomposition of a permutation operating on anything other than integers (here, it's sets of integers instead), and I thought maybe I needed a hint in that direction. Do you happen to know of a general theorem cited in a mathbook that discusses your mathematical solution?

Anyway: Thank you very much for your kind answer.

Vive la France, Malte

Malte gravatar imageMalte ( 9 years ago )

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: 498 times

Last updated: Dec 28 '15