Algebraic structures: monoids, groups and rings
Warm-upHumanWhich of these are groups? (Choose all that apply.)
Practice · Early undergraduate
Which of these are groups? (Choose all that apply.)
The operation on is associative and commutative. Which natural number is its identity element, i.e. satisfies for every ?
Find the inverse of in : the number with . (This is the key step in decoding an affine cipher.)
The proof that inverses in a monoid are unique reads: if and then . Which equality uses associativity?
Between groups, any with automatically satisfies . Which example shows that this fails for monoids, so that must be required separately?
is not a field. Find the smallest with , which exhibits as a zero divisor.
Which Lean statement correctly formalises "in a monoid, a left inverse and a right inverse of the same element are equal"?
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 .