CycleIndexPolynomial
The cycle index of a permutation group, with the number of -cycles of and the th variable. Evaluated at it counts the colorings with colors up to the group (Pólya).
CycleIndexPolynomial✓CycleIndexPolynomial(group, {x1, x2, ...})the cycle index of group in the variables x1, x2, ..., x_i marking the cycles of length Typed signatures
| Type | Package | Applies |
|---|---|---|
(expression<AlternatingGroup> | expression<CyclicGroup> | expression<DihedralGroup> | expression<GroupDirectProduct> | expression<PermutationGroup> | expression<SymmetricGroup> | indexed_collection, list) -> number | groupalgebra | always |
Details
- The groups act as Wolfram's do: CyclicGroup and DihedralGroup on the vertices of an -gon (rotations, and with the reflections), SymmetricGroup and AlternatingGroup on points, a PermutationGroup on the points it moves. swaps two points and is the Klein four-group on four points
- Those four are summed by closed formulas, not by listing their elements (the symmetric and alternating groups run over the partitions of , up to ); a PermutationGroup is listed
- The variable list must reach the group's degree, or the call stays unevaluated (Wolfram answers with a polynomial in the wrong variables); extra variables are ignored
- Pólya's count: setting every to gives the colorings with colors up to the group. For that is the necklace count of KNecklaces, for the bracelet count of KBracelets
Examples
Basic #
The rotations of a square: the identity, two quarter turns (one 4-cycle each) and a half turn (two 2-cycles)
live ↗Scope #
Applications #
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 7 agreeCombinatorica 5 agree1 differ1 unevaluatedSageMath 7 agree |
| Crosswalk | Wolfram LanguageCombinatoricaSageMath |
Implementation
combinatoricapackages/oracle/src/mappings.tsCombinatorica's groups are lists of permutations, which core CycleIndexPolynomial does not take; its CycleIndex is in x[i], renamed to the variable list here. Covered for the groups Combinatorica builds (a list of one-line permutations), not a PermutationGroup of Cycles, which its GroupElements rejects.
sagepackages/oracle/src/mappings.tsSage's cycle_index() is in its power-sum basis, one p_i per i-cycle, renamed to the variable list here. Its group is on the points up to its degree, ours on the points it moves, so a variable list shorter than the degree is no answer there.
See also: GroupOrder, GroupElements, PermutationGroup, CyclicGroup, DihedralGroup, KNecklaces, KBracelets