# Cycle index

In combinatorial mathematics a cycle index is a polynomial in several variables which is structured in such a way that information about how a group of permutations acts on a set can be simply read off from the coefficients and exponents. This compact way of storing information in an algebraic form is frequently used in combinatorial enumeration.

Each permutation π of a finite set of objects partitions that set into cycles; the cycle index monomial of π is a monomial in variables a1, a2, … that describes the type of this partition (the cycle type of π): the exponent of ai is the number of cycles of π of size i. The cycle index polynomial of a permutation group is the average of the cycle index monomials of its elements. The phrase cycle indicator is also sometimes used in place of cycle index.

Knowing the cycle index polynomial of a permutation group, one can enumerate equivalence classes due to the group's action. This is the main ingredient in the Pólya enumeration theorem. Performing formal algebraic and differential operations on these polynomials and then interpreting the results combinatorially lies at the core of species theory.

## Permutation groups and group actions

Let X be a set. A bijective map from X onto itself is called a permutation and the set of all permutations of X forms a group under the composition of mappings, called the Symmetric group of X, Sym(X). Every subgroup of Sym(X) is called a permutation group of degree |X|. Let G be an abstract group with a group homomorphism,φ, from G into Sym(X). The image, φ(G), is a permutation group. The group homomorphism can be thought of as a means for permitting the group G to "act" on the set X (using the permutations associated with the elements of G). Such a group homomorphism is formally called a group action and the image of the homomorphism is a permutation representation of G. A given group can have many different permutation representations, corresponding to different actions.

Suppose that group G acts on set X (that is, a group action exists). In combinatorial applications the interest is in the set X; for instance, counting things in X and knowing what structures might be left invariant by G. Little is lost by working with permutation groups in such a setting, so in these applications, when a group is considered, it is a permutation representation of the group which will be worked with, and thus, a group action must be specified. Algebraists, on the other hand, are more interested in the groups themselves and would be more concerned with the kernels of the group actions, which measure how much is lost in passing from the group to its permutation representation.

## Disjoint cycle representation of permutations

Finite permutations are most often represented as group actions on the set X = {1,2, ..., n}. A permutation in this setting can be represented by a two line notation. Thus,

$\left({\begin{matrix}1&2&3&4&5\\2&3&4&5&1\end{matrix}}\right)$ corresponds to a bijection on X = {1, 2, 3, 4, 5} which sends 1 → 2, 2 → 3, 3 → 4, 4 → 5 and 5 → 1. This can be read off from the columns of the notation. When the top row is understood to be the elements of X in an appropriate order, only the second row need be written. In this one line notation, our example would be [2 3 4 5 1]. This example is known as a cyclic permutation because it "cycles" the numbers around and a third notation for it would be (1 2 3 4 5). This cycle notation is to be read as: each element is sent to the element on its right, but the last element is sent to the first one (it "cycles" to the beginning). With cycle notation, it does not matter where a cycle starts, so (1 2 3 4 5) and (3 4 5 1 2) and (5 1 2 3 4) all represent the same permutation. The length of a cycle is the number of elements in the cycle.

Not all permutations are cyclic permutations, but every permutation can be written as a product of disjoint (having no common element) cycles in essentially one way. As a permutation may have fixed points (elements that are unchanged by the permutation), these will be represented by cycles of length one. For example:

$\left({\begin{matrix}1&2&3&4&5&6\\2&1&3&5&6&4\end{matrix}}\right)=(12)(3)(456).$ This permutation is the product of three cycles, one of length two, one of length three and a fixed point. The elements in these cycles are disjoint subsets of X and form a partition of X.

The cycle structure of a permutation can be coded as an algebraic monomial in several (dummy) variables in the following way: a variable is needed for each distinct cycle length of the cycles that appear in the cycle decomposition of the permutation. In the previous example there were three different cycle lengths, so we will use three variables, a1, a2 and a3 (in general, use the variable ak to correspond to length k cycles). The variable ai will be raised to the ji(g) power where ji(g) is the number of cycles of length i in the cycle decomposition of permutation g. We can then associate the cycle index monomial

$\prod _{k=1}^{n}a_{k}^{j_{k}(g)}$ to the permutation g. The cycle index monomial of our example would be a1a2a3, while the cycle index monomial of the permutation (1 2)(3 4)(5)(6 7 8 9)(10 11 12 13)(14)(15) would be a13a22a42.

## Definition

The cycle index of a permutation group G is the average of the cycle index monomials of all the permutations g in G.

More formally, let G be a permutation group of order m and degree n. Every permutation g in G has a unique decomposition into disjoint cycles, say c1 c2 c3 ... . Let the length of a cycle c be denoted by |c|.

Now let jk(g) be the number of cycles of g of length k, where

$0\leq j_{k}(g)\leq \lfloor n/k\rfloor {\mbox{ and }}\sum _{k=1}^{n}k\,j_{k}(g)\;=n.$ We associate to g the monomial

$\prod _{c\in g}a_{|c|}=\prod _{k=1}^{n}a_{k}^{j_{k}(g)}$ in the variables a1, a2, ..., an.

Then the cycle index Z(G) of G is given by

$Z(G)={\frac {1}{|G|}}\sum _{g\in G}\prod _{k=1}^{n}a_{k}^{j_{k}(g)}.$ ## Example

Consider the group G of rotational symmetries of a square in the Euclidean plane. Such symmetries are completely determined by the images of just the corners of the square. By labeling these corners 1, 2, 3 and 4 (consecutively going clockwise) we can represent the elements of G as permutations of the set X = {1,2,3,4}. The permutation representation of G consists of the four permutations (1 4 3 2), (1 3)(2 4), (1 2 3 4) and e = (1)(2)(3)(4) which represent the counter-clockwise rotations by 90°, 180°, 270° and 360° respectively. Notice that the identity permutation e is the only permutation with fixed points in this representation of G. As an abstract group, G is known as the cyclic group C4, and this permutation representation of it is its regular representation. The cycle index monomials are a4, a22, a4, and a14 respectively. Thus, the cycle index of this permutation group is:

$Z(C_{4})={\frac {1}{4}}\left(a_{1}^{4}+a_{2}^{2}+2a_{4}\right).$ The group C4 also acts on the unordered pairs of elements of X in a natural way. Any permutation g would send {x,y} → {xg, yg} (where xg is the image of the element x under the permutation g). The set X is now {A, B, C, D, E, F} where A = {1,2}, B = {2,3}, C = {3,4}, D = {1,4}, E = {1,3} and F = {2,4}. These elements can be thought of as the sides and diagonals of the square or, in a completely different setting, as the edges of the complete graph K4. Acting on this new set, the four group elements are now represented by (A D C B)(E F), (A C)(B D)(E)(F), (A B C D)(E F) and e = (A)(B)(C)(D)(E)(F) and the cycle index of this action is:

$Z(C_{4})={\frac {1}{4}}\left(a_{1}^{6}+a_{1}^{2}a_{2}^{2}+2a_{2}a_{4}\right).$ The group C4 can also act on the ordered pairs of elements of X in the same natural way. Any permutation g would send (x,y) → (xg, yg) (in this case we would also have ordered pairs of the form (x, x)). The elements of X could be thought of as the arcs of the complete digraph D4 (with loops at each vertex). The cycle index in this case would be:

$Z(C_{4})={\frac {1}{4}}\left(a_{1}^{16}+a_{2}^{8}+2a_{4}^{4}\right).$ ## Types of actions

As the above example shows, the cycle index depends on the group action and not on the abstract group. Since there are many permutation representations of an abstract group, it is useful to have some terminology to distinguish them.

When an abstract group is defined in terms of permutations, it is a permutation group and the group action is the identity homomorphism. This is referred to as the natural action.

The symmetric group S3 in its natural action has the elements

$S_{3}=\{e,(23),(12),(123),(132),(13)\}$ and so, its cycle index is:

$Z(S_{3})={\frac {1}{6}}\left(a_{1}^{3}+3a_{1}a_{2}+2a_{3}\right).$ A permutation group G on the set X is transitive if for every pair of elements x and y in X there is at least one g in G such that y = xg. A transitive permutation group is regular (or sometimes referred to as sharply transitive) if the only permutation in the group that has fixed points is the identity permutation.

A finite transitive permutation group G on the set X is regular if and only if |G| = |X|. Cayley's theorem states that every abstract group has a regular permutation representation given by the group acting on itself (as a set) by (right) multiplication. This is called the regular representation of the group.

The cyclic group C6 in its regular representation contains the six permutations (one-line form of the permutation is given first):

[1 2 3 4 5 6] = (1)(2)(3)(4)(5)(6)
[2 3 4 5 6 1] = (1 2 3 4 5 6)
[3 4 5 6 1 2] = (1 3 5)(2 4 6)
[4 5 6 1 2 3] = (1 4)(2 5)(3 6)
[5 6 1 2 3 4] = (1 5 3)(2 6 4)
[6 1 2 3 4 5] = (1 6 5 4 3 2).

Thus its cycle index is:

$Z(C_{6})={\frac {1}{6}}\left(a_{1}^{6}+a_{2}^{3}+2a_{3}^{2}+2a_{6}\right).$ Often, when an author does not wish to use the group action terminology, the permutation group involved is given a name which implies what the action is. The following three examples illustrate this point.

### The cycle index of the edge permutation group of the complete graph on three vertices

We will identify the complete graph K3 with an equilateral triangle in the Euclidean plane. This permits us to use geometric language to describe the permutations involved as symmetries of the equilateral triangle. Every permutation in the group S3 of vertex permutations (S3 in its natural action, given above) induces an edge permutation. These are the permutations:

• The identity: No vertices are permuted, and no edges; the contribution is $a_{1}^{3}.$ • Three reflections in an axis passing through a vertex and the midpoint of the opposite edge: These fix one edge (the one not incident on the vertex) and exchange the remaining two; the contribution is $3a_{1}a_{2}.$ • Two rotations, one clockwise, the other counterclockwise: These create a cycle of three edges; the contribution is $2a_{3}.$ The cycle index of the group G of edge permutations induced by vertex permutations from S3 is

$Z(G)={\frac {1}{6}}\left(a_{1}^{3}+3a_{1}a_{2}+2a_{3}\right).$ It happens that the complete graph K3 is isomorphic to its own line graph (vertex-edge dual) and hence the edge permutation group induced by the vertex permutation group is the same as the vertex permutation group, namely S3 and the cycle index is Z(S3). This is not the case for complete graphs on more than three vertices, since these have strictly more edges (${\binom {n}{2}}$ ) than vertices (n).

### The cycle index of the edge permutation group of the complete graph on four vertices

This is entirely analogous to the three-vertex case. These are the vertex permutations (S4 in its natural action) and the edge permutations (S4 acting on unordered pairs) that they induce:

• The identity: This permutation maps all vertices (and hence, edges) to themselves and the contribution is $a_{1}^{6}.$ • Six permutations that exchange two vertices: These permutations preserve the edge that connects the two vertices as well as the edge that connects the two vertices not exchanged. The remaining edges form two two-cycles and the contribution is $6a_{1}^{2}a_{2}^{2}.$ • Eight permutations that fix one vertex and produce a three-cycle for the three vertices not fixed: These permutations create two three-cycles of edges, one containing those not incident on the vertex, and another one containing those incident on the vertex; the contribution is $8a_{3}^{2}.$ • Three permutations that exchange two vertex pairs at the same time: These permutations preserve the two edges that connect the two pairs. The remaining edges form two two-cycles and the contribution is $3a_{1}^{2}a_{2}^{2}.$ • Six permutations that cycle the vertices in a four-cycle: These permutations create a four-cycle of edges (those that lie on the cycle) and exchange the remaining two edges; the contribution is $6a_{2}a_{4}.$ We may visualize the types of permutations geometrically as symmetries of a regular tetrahedron. This yields the following description of the permutation types.

• The identity.
• Reflection in the plane that contains one edge and the midpoint of the edge opposing it.
• Rotation by 120 degrees about the axis passing through a vertex and the midpoint of the opposite face.
• Rotation by 180 degrees about the axis connecting the midpoints of two opposite edges.
• Six rotoreflections by 90 degrees.

The cycle index of the edge permutation group G of K4 is:

$Z(G)={\frac {1}{24}}\left(a_{1}^{6}+9a_{1}^{2}a_{2}^{2}+8a_{3}^{2}+6a_{2}a_{4}\right).$ ### The cycle index of the face permutations of a cube

Consider an ordinary cube in three-space and its group of symmetries (automorphisms), call it C. It permutes the six faces of the cube. (We could also consider edge permutations or vertex permutations.) There are twenty-four automorphisms.

• The identity:
There is one such permutation and its contribution is $a_{1}^{6}.$ • Six 90-degree face rotations:
We rotate about the axis passing through the centers of the face and the face opposing it. This will fix the face and the face opposing it and create a four-cycle of the faces parallel to the axis of rotation. The contribution is $6a_{1}^{2}a_{4}.$ • Three 180-degree face rotations:
We rotate about the same axis as in the previous case, but now there is no four cycle of the faces parallel to the axis, but rather two two-cycles. The contribution is $3a_{1}^{2}a_{2}^{2}.$ • Eight 120-degree vertex rotations:
This time we rotate about the axis passing through two opposite vertices (the endpoints of a main diagonal). This creates two three-cycles of faces (the faces incident on the same vertex form a cycle). The contribution is $8a_{3}^{2}.$ • Six 180-degree edge rotations:
These edge rotations rotate about the axis that passes through the midpoints of opposite edges not incident on the same face and parallel to each other and exchanges the two faces that are incident on the first edge, the two faces incident on the second edge, and the two faces that share two vertices but no edge with the two edges, i.e. there are three two-cycles and the contribution is $6a_{2}^{3}.$ The conclusion is that the cycle index of the group C is

$Z(C)={\frac {1}{24}}\left(a_{1}^{6}+6a_{1}^{2}a_{4}+3a_{1}^{2}a_{2}^{2}+8a_{3}^{2}+6a_{2}^{3}\right).$ ## Cycle indices of some permutation groups

### Identity group En

This group contains one permutation that fixes every element (this must be a natural action).

$Z(E_{n})=a_{1}^{n}.$ ### Cyclic group Cn

A cyclic group, Cn is the group of rotations of a regular n-gon, that is, n elements equally spaced around a circle. This group has φ(d) elements of order d for each divisor d of n, where φ(d) is the Euler φ-function, giving the number of natural numbers less than d which are relatively prime to d. In the regular representation of Cn, a permutation of order d has n/d cycles of length d, thus:

$Z(C_{n})={\frac {1}{n}}\sum _{d|n}\varphi (d)a_{d}^{n/d}.$ ### Dihedral group Dn

The dihedral group is like the cyclic group, but also includes reflections. In its natural action,

$Z(D_{n})={\frac {1}{2}}Z(C_{n})+{\begin{cases}{\frac {1}{2}}a_{1}a_{2}^{(n-1)/2},&n{\mbox{ odd, }}\\{\frac {1}{4}}\left(a_{1}^{2}a_{2}^{(n-2)/2}+a_{2}^{n/2}\right),&n{\mbox{ even.}}\end{cases}}$ ### Alternating group An

The cycle index of the alternating group in its natural action as a permutation group is

$Z(A_{n})=\sum _{j_{1}+2j_{2}+3j_{3}+\cdots +nj_{n}=n}{\frac {1+(-1)^{j_{2}+j_{4}+\cdots }}{\prod _{k=1}^{n}k^{j_{k}}j_{k}!}}\prod _{k=1}^{n}a_{k}^{j_{k}}.$ The numerator is 2 for the even permutations, and 0 for the odd permutations. The 2 is needed because ${\frac {1}{|A_{n}|}}={\frac {2}{n!}}$ .

### Symmetric group Sn

The cycle index of the symmetric group Sn in its natural action is given by the formula:

$Z(S_{n})=\sum _{j_{1}+2j_{2}+3j_{3}+\cdots +nj_{n}=n}{\frac {1}{\prod _{k=1}^{n}k^{j_{k}}j_{k}!}}\prod _{k=1}^{n}a_{k}^{j_{k}}$ that can be also stated in terms of complete Bell polynomials:

$Z(S_{n})={\frac {B_{n}(0!\,a_{1},1!\,a_{2},\dots ,(n-1)!\,a_{n})}{n!}}.$ This formula is obtained by counting how many times a given permutation shape can occur. There are three steps: first partition the set of n labels into subsets, where there are $j_{k}$ subsets of size k. Every such subset generates $k!/k$ cycles of length k. But we do not distinguish between cycles of the same size, i.e. they are permuted by $S_{j_{k}}$ . This yields

${\frac {n!}{\prod _{k=1}^{n}(k!)^{j_{k}}}}\prod _{k=1}^{n}\left({\frac {k!}{k}}\right)^{j_{k}}\prod _{k=1}^{n}{\frac {1}{j_{k}!}}={\frac {n!}{\prod _{k=1}^{n}k^{j_{k}}j_{k}!}}.$ There is a useful recursive formula for the cycle index of the symmetric group. Set $Z(S_{0})=1$ and consider the size l of the cycle that contains n, where ${\begin{matrix}1\leq l\leq n.\end{matrix}}$ There are ${\begin{matrix}{n-1 \choose l-1}\end{matrix}}$ ways to choose the remaining $l-1$ elements of the cycle and every such choice generates ${\begin{matrix}{\frac {l!}{l}}\end{matrix}}$ different cycles.

This yields the recurrence

$Z(S_{n})={\frac {1}{n!}}\sum _{g\in S_{n}}\prod _{k=1}^{n}a_{k}^{j_{k}(g)}={\frac {1}{n!}}\sum _{l=1}^{n}{n-1 \choose l-1}\;{\frac {l!}{l}}\;a_{l}\;(n-l)!\;Z(S_{n-l})$ or

$Z(S_{n})={\frac {1}{n}}\sum _{l=1}^{n}a_{l}\;Z(S_{n-l}).$ ## Applications

Throughout this section we will modify the notation for cycle indices slightly by explicitly including the names of the variables. Thus, for the permutation group G we will now write:

$Z(G)=Z(G;a_{1},a_{2},\ldots ,a_{n}).$ Let G be a group acting on the set X. G also induces an action on the k-subsets of X and on the k-tuples of distinct elements of X (see #Example for the case k = 2), for 1 ≤ kn. Let fk and Fk denote the number of orbits of G in these actions respectively. By convention we set f0 = F0 = 1. We have:

a) The ordinary generating function for fk is given by:

$\sum _{k=0}^{n}f_{k}t^{k}=Z(G;1+t,1+t^{2},\ldots ,1+t^{n}),$ and

b) The exponential generating function for Fk is given by:

$\sum _{k=0}^{n}F_{k}t^{k}/k!=Z(G;1+t,1,1,\ldots ,1).$ Let G be a group acting on the set X and h a function from X to Y. For any g in G, h(xg) is also a function from X to Y. Thus, G induces an action on the set YX of all functions from X to Y. The number of orbits of this action is Z(G; b, b, ...,b) where b = |Y|.

This result follows from the orbit counting lemma (also known as the Not Burnside's lemma, but traditionally called Burnside's lemma) and the weighted version of the result is Pólya's enumeration theorem.

The cycle index is a polynomial in several variables and the above results show that certain evaluations of this polynomial give combinatorially significant results. As polynomials they may also be formally added, subtracted, differentiated and integrated. The area of symbolic combinatorics provides combinatorial interpretations of the results of these formal operations.

The question of what the cycle structure of a random permutation looks like is an important question in the analysis of algorithms. An overview of the most important results may be found at random permutation statistics.