Skip to content

AlternatingGroup ​

The alternating group AnA_n: the even permutations of {1,…,n}\{1, \dots, n\}, of order n!/2n!/2. A pure carrier like SymmetricGroup — GroupOrder, GroupElements and GroupGenerators read it directly, without materialising a Cayley table.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageAlternatingGroup✓
AlternatingGroup(n)the alternating group on nn points
Typed signatures
TypePackageApplies
(integer) -> expression<AlternatingGroup>groupalgebraalways

Domain: Permutations

Details
  • GroupOrder(AlternatingGroup(n)) is n!/2n!/2 without materialising all n!/2n!/2 permutations — A1A_1 and A2A_2 are both trivial, order 1
  • GroupGenerators(AlternatingGroup(n)) is the 3-cycle (1 2 3)(1\,2\,3) together with the longest even cycle available: (1 2 … n)(1\,2\,\dots\,n) when nn is odd, (2 3 … n)(2\,3\,\dots\,n) when nn is even — an nn-cycle is an even permutation exactly when nn is odd
  • GroupElements(AlternatingGroup(n)), like PermutationGroup's, prints elements as Cycles and takes an optional Part-style position selector

Examples

Basic #

∣A5∣=5!/2=60|A_5| = 5!/2 = 60

live ↗
InGroupOrder(AlternatingGroup(5))\mathrm{GroupOrder}(\mathrm{AlternatingGroup}(5))Out6060

for odd nn, an nn-cycle is even — (1 2 3 4 5)(1\,2\,3\,4\,5) decomposes into 4 transpositions

live ↗
InGroupGenerators(AlternatingGroup(5))\mathrm{GroupGenerators}(\mathrm{AlternatingGroup}(5))Out[Cycles([[1,2,3]]),Cycles([[1,2,3,4,5]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3, 4, 5\bigr\rbrack\bigr\rbrack)\bigr\rbrack

for even nn, the full nn-cycle would be odd, so the second generator is one point shorter: (2 3 4)(2\,3\,4)

live ↗
InGroupGenerators(AlternatingGroup(4))\mathrm{GroupGenerators}(\mathrm{AlternatingGroup}(4))Out[Cycles([[1,2,3]]),Cycles([[2,3,4]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack2, 3, 4\bigr\rbrack\bigr\rbrack)\bigr\rbrack

at n=3n = 3 the two generators coincide, so there is only one

live ↗
InGroupGenerators(AlternatingGroup(3))\mathrm{GroupGenerators}(\mathrm{AlternatingGroup}(3))Out[Cycles([[1,2,3]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack)\bigr\rbrack

A3A_3 is cyclic of order 3 — the identity and the two 3-cycles

live ↗
InGroupElements(AlternatingGroup(3))\mathrm{GroupElements}(\mathrm{AlternatingGroup}(3))Out[Cycles([]),Cycles([[1,2,3]]),Cycles([[1,3,2]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3, 2\bigr\rbrack\bigr\rbrack)\bigr\rbrack

Order is 10!/210!/2, half of the symmetric group

live ↗
InGroupOrder(AlternatingGroup(10))\mathrm{GroupOrder}(\mathrm{AlternatingGroup}(10))Out1 814 4001\,814\,400

A 3-cycle and an 9-cycle generate A10A_{10}

live ↗
InGroupGenerators(AlternatingGroup(10))\mathrm{GroupGenerators}(\mathrm{AlternatingGroup}(10))Out[Cycles([[1,2,3]]),Cycles([[2,3,4,5,6,7,8,9,10]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack2, 3, 4, 5, 6, 7, 8, 9, 10\bigr\rbrack\bigr\rbrack)\bigr\rbrack

All twelve even permutations of four points

live ↗
InGroupElements(AlternatingGroup(4))\mathrm{GroupElements}(\mathrm{AlternatingGroup}(4))Out[Cycles([]),Cycles([[2,3,4]]),Cycles([[2,4,3]]),Cycles([[1,2],[3,4]]),Cycles([[1,2,3]]),Cycles([[1,2,4]]),Cycles([[1,3,2]]),Cycles([[1,3,4]]),Cycles([[1,3],[2,4]]),Cycles([[1,4,2]]),Cycles([[1,4,3]]),Cycles([[1,4],[2,3]])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack2, 3, 4\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack2, 4, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2\bigr\rbrack, \bigl\lbrack3, 4\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 4\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3, 2\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3, 4\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3\bigr\rbrack, \bigl\lbrack2, 4\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 4, 2\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 4, 3\bigr\rbrack\bigr\rbrack), \mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 4\bigr\rbrack, \bigl\lbrack2, 3\bigr\rbrack\bigr\rbrack)\bigr\rbrack
Scope #

A1A_1 is the trivial group — 1!/21!/2 isn't even an integer, so this is a base case, not the formula

live ↗
InGroupOrder(AlternatingGroup(1))\mathrm{GroupOrder}(\mathrm{AlternatingGroup}(1))Out11

A2A_2 is trivial too — S2S_2's only even permutation is the identity

live ↗
InGroupOrder(AlternatingGroup(2))\mathrm{GroupOrder}(\mathrm{AlternatingGroup}(2))Out11

The trivial group has only the identity

live ↗
InGroupElements(AlternatingGroup(1))\mathrm{GroupElements}(\mathrm{AlternatingGroup}(1))Out[Cycles([])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigr\rbrack)\bigr\rbrack

A2A_2 is also trivial: no even permutation but the identity

live ↗
InGroupElements(AlternatingGroup(2))\mathrm{GroupElements}(\mathrm{AlternatingGroup}(2))Out[Cycles([])]\bigl\lbrack\mathrm{Cycles}(\bigl\lbrack\bigr\rbrack)\bigr\rbrack
About
Examples12
Checked againstWolfram Language 12 agree
CrosswalkWolfram Language

See also: SymmetricGroup, GroupOrder, GroupElements, GroupGenerators, PermutationGroup, Permute