Course Test · University: upper level

Abstract algebra I: groups: RatMath answers

The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.

Agrees 20

Libraries used here: core, structures. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.

  1. 1.Element orders in S4Agrees
    How many elements of each order are there in S4S_4?
    Independent answer
    Order 1: the identity. Order 2: 6 transpositions and 3 double transpositions, 9 in all. Order 3: (43)⋅2=8\binom43\cdot2 = 8 three-cycles. Order 4: 3!=63! = 6 four-cycles. Total 1+9+8+6=241 + 9 + 8 + 6 = 24.
    RatMath code
    [...structures.symmetric(4).orderStatistics()]
    Output
    [[1, 1], [2, 9], [3, 8], [4, 6]]
  2. 2.Order of a permutationAgrees
    Find the order of (1 2 3)(4 5)(1\,2\,3)(4\,5) in S5S_5.
    Independent answer
    Disjoint cycles of lengths 3 and 2: order lcm⁡(3,2)=6\operatorname{lcm}(3, 2) = 6.
    RatMath code
    const G = structures.symmetric(5);
    G.elementOrder(G.element("(1 2 3)(4 5)"))
    Output
    6
  3. 3.ParityAgrees
    Is the 4-cycle (1 2 3 4)(1\,2\,3\,4) even or odd?
    Independent answer
    (1 2 3 4)=(1 4)(1 3)(1 2)(1\,2\,3\,4) = (1\,4)(1\,3)(1\,2), three transpositions: odd.
    RatMath code
    structures.sign("(1 2 3 4)", 4)
    Output
    -1
    sign gives −1: odd. (Membership in A4A_4 agrees.)
    Fix: ratmath/structures#6, sign/isEven of a permutation; Gauss–Wantzel inside constructible; chainComplex and homology
  4. 4.Subgroups of a cyclic groupAgrees
    How many subgroups does Z12\mathbb Z_{12} have?
    Independent answer
    One for each divisor of 12: 1, 2, 3, 4, 6, 12. Six subgroups.
    RatMath code
    structures.cyclic(12).subgroups().length
    Output
    6
  5. 5.Order in Z_nAgrees
    What is the order of 8 in Z20\mathbb Z_{20}?
    Independent answer
    20/gcd⁡(8,20)=20/4=520/\gcd(8, 20) = 20/4 = 5.
    RatMath code
    const G = structures.cyclic(20);
    G.elementOrder(G.element(8))
    Output
    5
  6. 6.Centre and class equation of D4Agrees
    For the dihedral group D4D_4 of order 8, find the order of the centre and the class equation.
    Independent answer
    Z(D4)={e,r2}Z(D_4) = \{e, r^2\}, order 2. The other classes are {r,r3}\{r, r^3\}, {s,sr2}\{s, sr^2\}, {sr,sr3}\{sr, sr^3\}: 8=2+2+2+28 = 2 + 2 + 2 + 2 (centre first), i.e. 1+1+2+2+21 + 1 + 2 + 2 + 2.
    RatMath code
    const D = structures.dihedral(4);
    [D.order, D.centre().order, D.classEquation()]
    Output
    [8, 2, 8 = 2 + 2 + 2 + 2]
  7. 7.Conjugacy classes of S3Agrees
    Write the class equation of S3S_3.
    Independent answer
    Identity, three transpositions, two 3-cycles: 6=1+2+36 = 1 + 2 + 3.
    RatMath code
    structures.symmetric(3).classEquation()
    Output
    6 = 1 + 2 + 3
  8. 8.Sylow theoremsAgrees
    How many Sylow 3-subgroups and Sylow 2-subgroups does S4S_4 have?
    Independent answer
    n3≡1(mod3)n_3 \equiv 1 \pmod 3, n3∣8n_3 \mid 8: n3∈{1,4}n_3 \in \{1, 4\}; the eight 3-cycles make four subgroups of order 3, so n3=4n_3 = 4. n2n_2 is odd and divides 3; the Sylow 2-subgroups are the three copies of D4D_4: n2=3n_2 = 3.
    RatMath code
    const G = structures.symmetric(4);
    [G.sylowCount(3), G.sylowCount(2)]
    Output
    [4, 3]
  9. 9.Finite abelian groupsAgrees
    List the abelian groups of order 72 up to isomorphism.
    Independent answer
    72=23⋅3272 = 2^3\cdot3^2: three partitions of 3 times two partitions of 2, six groups: Z72\mathbb Z_{72}, Z3×Z24\mathbb Z_3\times\mathbb Z_{24}, Z2×Z36\mathbb Z_2\times\mathbb Z_{36}, Z6×Z12\mathbb Z_6\times\mathbb Z_{12}, Z2×Z2×Z18\mathbb Z_2\times\mathbb Z_2\times\mathbb Z_{18}, Z2×Z6×Z6\mathbb Z_2\times\mathbb Z_6\times\mathbb Z_6.
    RatMath code
    structures.abelianGroups(72).map(String)
    Output
    ["Z/72", "Z/3 × Z/24", "Z/2 × Z/36", "Z/6 × Z/12", "Z/2 × Z/2 × Z/18", "Z/2 × Z/6 × Z/6"]
  10. 10.A4Agrees
    Is A4A_4 simple? What are the orders of its normal subgroups, and does it have a subgroup of order 6?
    Independent answer
    No: the Klein four-group VV is normal. Normal subgroups have orders 1, 4, 12. There is no subgroup of order 6 (the converse of Lagrange fails): subgroup orders are 1, 2, 3, 4, 12.
    RatMath code
    const A = structures.alternating(4);
    [A.isSimple, A.normalSubgroups().map((h) => h.order), [...new Set(A.subgroups().map((h) => h.order))].sort((a, b) => a - b)]
    Output
    [false, [1, 4, 12], [1, 2, 3, 4, 12]]
  11. 11.IsomorphismAgrees
    Is Z6≅Z2×Z3\mathbb Z_6 \cong \mathbb Z_2\times\mathbb Z_3? Is Z2×Z2≅Z4\mathbb Z_2\times\mathbb Z_2 \cong \mathbb Z_4?
    Independent answer
    Yes, since gcd⁡(2,3)=1\gcd(2, 3) = 1 and (1,1)(1, 1) has order 6. No: Z2×Z2\mathbb Z_2\times\mathbb Z_2 has no element of order 4.
    RatMath code
    const S = structures;
    [S.isIsomorphic(S.cyclic(6), S.directProduct(S.cyclic(2), S.cyclic(3))), S.isIsomorphic(S.kleinFour(), S.cyclic(4))]
    Output
    [true, false]
  12. 12.Quotient groupsAgrees
    Describe Z12/⟨4⟩\mathbb Z_{12}/\langle 4\rangle.
    Independent answer
    ⟨4⟩={0,4,8}\langle4\rangle = \{0, 4, 8\} has order 3, so the quotient has order 4, generated by 1+⟨4⟩1 + \langle4\rangle: it is Z4\mathbb Z_4.
    RatMath code
    const G = structures.cyclic(12);
    const Q = G.quotient(G.subgroup([G.element(4)]));
    [Q.order, Q.isCyclic]
    Output
    [4, true]
  13. 13.Groups of unitsAgrees
    Describe the group of units U(15)U(15).
    Independent answer
    U(15)≅U(3)×U(5)≅Z2×Z4U(15) \cong U(3)\times U(5) \cong \mathbb Z_2\times\mathbb Z_4, of order 8, not cyclic.
    RatMath code
    structures.Zn(15).unitGroup().text
    Output
    C2 × C4
  14. 14.Lagrange's theoremAgrees
    What are ∣A5∣|A_5| and the index [S5:A5][S_5 : A_5]?
    Independent answer
    ∣A5∣=120/2=60|A_5| = 120/2 = 60, index 2.
    RatMath code
    [structures.alternating(5).order, structures.symmetric(5).index(structures.alternating(5))]
    Output
    [60, 2]
  15. 15.Commutator subgroupAgrees
    Find the commutator subgroup of S3S_3.
    Independent answer
    Commutators are even, and [(1 2),(1 3)]=(1 2 3)±1[(1\,2), (1\,3)] = (1\,2\,3)^{\pm1}, so S3′=A3S_3' = A_3, of order 3.
    RatMath code
    structures.symmetric(3).derivedSubgroup().order
    Output
    3
  16. 16.Quaternion groupAgrees
    How many elements of order 4 are in the quaternion group Q8Q_8?
    Independent answer
    ±i,±j,±k\pm i, \pm j, \pm k: six. (−1-1 has order 2 and 11 order 1.)
    RatMath code
    [...structures.quaternion().orderStatistics()]
    Output
    [[1, 1], [2, 1], [4, 6]]
  17. 17.Zero divisors and unitsAgrees
    List the zero divisors and the units of Z6\mathbb Z_6.
    Independent answer
    Zero divisors: 2, 3, 4 (2⋅3=02\cdot3 = 0, 4⋅3=04\cdot3 = 0), plus 0 if counted. Units: 1, 5.
    RatMath code
    const R = structures.Zn(6);
    [R.elements().filter((x) => R.isZeroDivisor(x)).map(String), R.units().map(String)]
    Output
    [["0", "2", "3", "4"], ["1", "5"]]
  18. 18.Inverses in a fieldAgrees
    Is Z7\mathbb Z_7 a field? Find 3−13^{-1} in it.
    Independent answer
    Yes, 7 is prime. 3⋅5=15≡13\cdot5 = 15 \equiv 1, so 3−1=53^{-1} = 5.
    RatMath code
    const R = structures.Zn(7);
    [R.isField, String(R.inverse(3))]
    Output
    [true, "5"]
  19. 19.Gaussian integersAgrees
    Factor 5 into primes in Z[i]\mathbb Z[i].
    Independent answer
    5=(2+i)(2−i)5 = (2 + i)(2 - i), both of norm 5 and hence prime.
    RatMath code
    const f = structures.gaussianIntegers().factor(5);
    [String(f.unit), f.factors.map((x) => `${x.prime}^${x.exponent}`)]
    Output
    ["1", ["2 − i^1", "2 + i^1"]]
  20. 20.Burnside's lemmaAgrees
    How many necklaces of 4 beads in 2 colours are there, up to rotation?
    Independent answer
    Fixed colourings: identity 16, rotation by 2 fixes 4, rotations by 1 and 3 fix 2 each: (16+2+4+2)/4=6(16 + 2 + 4 + 2)/4 = 6.
    RatMath code
    const C = structures.cyclic(4);
    const strings = Array.from({ length: 16 }, (_, m) => m.toString(2).padStart(4, "0"));
    structures.burnside(structures.action(C, strings, (g, s) => s.slice(Number(g)) + s.slice(0, Number(g))))
    Output
    (1/4)·(16 + 4 + 2 + 2) = 6