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.Element orders in S4AgreesHow many elements of each order are there in ?Independent answerOrder 1: the identity. Order 2: 6 transpositions and 3 double transpositions, 9 in all. Order 3: three-cycles. Order 4: four-cycles. Total .RatMath code
[...structures.symmetric(4).orderStatistics()]Output[[1, 1], [2, 9], [3, 8], [4, 6]]
- 2.Order of a permutationAgreesFind the order of in .Independent answerDisjoint cycles of lengths 3 and 2: order .RatMath code
const G = structures.symmetric(5); G.elementOrder(G.element("(1 2 3)(4 5)"))Output6
- 3.ParityAgreesIs the 4-cycle even or odd?Independent answer, three transpositions: odd.RatMath code
structures.sign("(1 2 3 4)", 4)Output-1
signgives −1: odd. (Membership in agrees.)Fix: ratmath/structures#6,sign/isEvenof a permutation; Gauss–Wantzel insideconstructible;chainComplexand homology - 4.Subgroups of a cyclic groupAgreesHow many subgroups does have?Independent answerOne for each divisor of 12: 1, 2, 3, 4, 6, 12. Six subgroups.RatMath code
structures.cyclic(12).subgroups().lengthOutput6
- 5.Order in Z_nAgreesWhat is the order of 8 in ?Independent answer.RatMath code
const G = structures.cyclic(20); G.elementOrder(G.element(8))Output5
- 6.Centre and class equation of D4AgreesFor the dihedral group of order 8, find the order of the centre and the class equation.Independent answer, order 2. The other classes are , , : (centre first), i.e. .RatMath code
const D = structures.dihedral(4); [D.order, D.centre().order, D.classEquation()]Output[8, 2, 8 = 2 + 2 + 2 + 2]
- 7.Conjugacy classes of S3AgreesWrite the class equation of .Independent answerIdentity, three transpositions, two 3-cycles: .RatMath code
structures.symmetric(3).classEquation()Output6 = 1 + 2 + 3
- 8.Sylow theoremsAgreesHow many Sylow 3-subgroups and Sylow 2-subgroups does have?Independent answer, : ; the eight 3-cycles make four subgroups of order 3, so . is odd and divides 3; the Sylow 2-subgroups are the three copies of : .RatMath code
const G = structures.symmetric(4); [G.sylowCount(3), G.sylowCount(2)]Output[4, 3]
- 9.Finite abelian groupsAgreesList the abelian groups of order 72 up to isomorphism.Independent answer: three partitions of 3 times two partitions of 2, six groups: , , , , , .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.A4AgreesIs simple? What are the orders of its normal subgroups, and does it have a subgroup of order 6?Independent answerNo: the Klein four-group 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.IsomorphismAgreesIs ? Is ?Independent answerYes, since and has order 6. No: 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.Quotient groupsAgreesDescribe .Independent answerhas order 3, so the quotient has order 4, generated by : it is .RatMath code
const G = structures.cyclic(12); const Q = G.quotient(G.subgroup([G.element(4)])); [Q.order, Q.isCyclic]Output[4, true]
- 13.Groups of unitsAgreesDescribe the group of units .Independent answer, of order 8, not cyclic.RatMath code
structures.Zn(15).unitGroup().textOutputC2 × C4
- 14.Lagrange's theoremAgreesWhat are and the index ?Independent answer, index 2.RatMath code
[structures.alternating(5).order, structures.symmetric(5).index(structures.alternating(5))]Output[60, 2]
- 15.Commutator subgroupAgreesFind the commutator subgroup of .Independent answerCommutators are even, and , so , of order 3.RatMath code
structures.symmetric(3).derivedSubgroup().orderOutput3
- 16.Quaternion groupAgreesHow many elements of order 4 are in the quaternion group ?Independent answer: six. ( has order 2 and order 1.)RatMath code
[...structures.quaternion().orderStatistics()]Output[[1, 1], [2, 1], [4, 6]]
- 17.Zero divisors and unitsAgreesList the zero divisors and the units of .Independent answerZero divisors: 2, 3, 4 (, ), 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.Inverses in a fieldAgreesIs a field? Find in it.Independent answerYes, 7 is prime. , so .RatMath code
const R = structures.Zn(7); [R.isField, String(R.inverse(3))]Output[true, "5"]
- 19.Gaussian integersAgreesFactor 5 into primes in .Independent answer, 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.Burnside's lemmaAgreesHow many necklaces of 4 beads in 2 colours are there, up to rotation?Independent answerFixed colourings: identity 16, rotation by 2 fixes 4, rotations by 1 and 3 fix 2 each: .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