Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Early undergraduate

Algebraic structures: monoids, groups and rings

Name: ______________________

Date: ______________________

You will learn to

  • Define binary operations, monoids, groups, rings and fields, and test examples and non-examples such as (N,+)(\N, +), (Z,+)(\Z, +), (Z,×)(\Z, \times), Z/nZ\Z/n\Z, 2×22 \times 2 matrices and functions under composition
  • Prove that an identity element is unique and that inverses in a monoid are unique, and derive the basic rules of algebra in a group
  • Explain why Z\Z is a ring but not a field while Q\Q is a field, and prove that Z/nZ\Z/n\Z is a field exactly when nn is prime
  • Show that the functions from a set to itself form a monoid under composition whose invertible elements form the symmetric group
  • Recognise homomorphisms and isomorphisms, and prove that a group homomorphism preserves identities and inverses
  1. 1.

    Which of these are groups? (Choose all that apply.)

    • A.(N,+)(\N, +)
    • B.(Z,+)(\Z, +)
    • C.(Z∖{0},×)(\Z \setminus \{0\}, \times)
    • D.(Q>0,×)(\Q_{>0}, \times), the positive rationals
    • E.(Z/6Z,×)(\Z/6\Z, \times)
    • F.the bijections {1,2,3}→{1,2,3}\{1, 2, 3\} \to \{1, 2, 3\} under composition
  2. 2.

    The operation a∗b=gcd⁡(a,b)a \ast b = \gcd(a, b) on N={0,1,2,… }\N = \{0, 1, 2, \dots\} is associative and commutative. Which natural number ee is its identity element, i.e. satisfies gcd⁡(e,a)=a\gcd(e, a) = a for every a∈Na \in \N?

  3. 3.

    Find the inverse of 77 in Z/26Z\Z/26\Z: the number x∈{1,…,25}x \in \{1, \dots, 25\} with 7x≡1(mod26)7x \equiv 1 \pmod{26}. (This is the key step in decoding an affine cipher.)

  4. 4.

    The proof that inverses in a monoid are unique reads: if ba=1ba = 1 and ac=1ac = 1 then b=b1=b(ac)=(ba)c=1c=cb = b1 = b(ac) = (ba)c = 1c = c. Which equality uses associativity?

    • A.b=b1b = b1
    • B.b1=b(ac)b1 = b(ac)
    • C.b(ac)=(ba)cb(ac) = (ba)c
    • D.1c=c1c = c
  5. 5.

    Between groups, any ff with f(ab)=f(a)f(b)f(ab) = f(a)f(b) automatically satisfies f(1)=1f(1) = 1. Which example shows that this fails for monoids, so that f(1)=1f(1) = 1 must be required separately?

    • A.f:(Z,×)→(Z,×)f : (\Z, \times) \to (\Z, \times), f(a)=0f(a) = 0
    • B.exp⁡:(R,+)→(R>0,×)\exp : (\R, +) \to (\R_{>0}, \times)
    • C.Z→Z/5Z\Z \to \Z/5\Z, a↦a mod 5a \mapsto a \bmod 5, for multiplication
    • D.the identity map (N,+)→(N,+)(\N, +) \to (\N, +)
  6. 6.

    Z/91Z\Z/91\Z is not a field. Find the smallest x∈{1,…,90}x \in \{1, \dots, 90\} with 7x≡0(mod91)7x \equiv 0 \pmod{91}, which exhibits 77 as a zero divisor.

  7. 7.

    Which Lean statement correctly formalises "in a monoid, a left inverse and a right inverse of the same element are equal"?

    • A.theorem t {M : Type*} [Monoid M] {a b c : M} (hb : b * a = 1) (hc : a * c = 1) : b = c
    • B.theorem t {M : Type*} [Monoid M] {a b c : M} (hb : a * b = 1) (hc : a * c = 1) : b = c
    • C.theorem t {M : Type*} [Monoid M] {a b c : M} : b * a = 1 ∧ a * c = 1 ∧ b = c
    • D.theorem t {M : Type*} [Group M] {a b : M} (h : b * a = 1) : b = a⁻¹
  8. 8.

    Write is_group(elements, op) that returns True exactly when op (a Python function of two arguments) is a group operation on the finite list elements: check closure, associativity, an identity, and inverses. Then test it on addition modulo 5, multiplication modulo 6, and multiplication modulo 12 on the units {1,5,7,11}\{1, 5, 7, 11\}.

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0