Section 1 · 8 min read
Monoids and groups
Algebraic structures from closure to groups, identity and inverse calculations, cyclic groups, element orders, subgroups and Lagrange's theorem.
On this page
GATE questions on groups are usually one mark and test definitions: is this structure a group, what is the identity or inverse under an unusual operation, how many generators does a cyclic group have, which orders are possible for subgroups or elements. Each needs only a few facts, applied carefully.
The hierarchy of structures
Let be a set and a binary operation on it.
| Structure | Closure | Associative | Identity | Inverses |
|---|---|---|---|---|
| Groupoid (magma) | yes | |||
| Semigroup | yes | yes | ||
| Monoid | yes | yes | yes | |
| Group | yes | yes | yes | yes |
| Abelian group | group axioms plus |
Each row adds one axiom to the row above. A monoid is a semigroup with an identity element.
Standard examples
| Structure | What it is | Why not higher |
|---|---|---|
| with | semigroup | no identity |
| monoid | no inverses | |
| groupoid | subtraction is not associative | |
| , , | abelian groups | |
| monoid | only have inverses | |
| abelian group | ||
| , strings under concatenation | monoid, identity | no inverses, not commutative |
| monoid, identity | no inverses | |
| (symmetric difference) | abelian group, identity , | |
| abelian group of order | ||
| group iff is prime | otherwise not closed | |
| , units mod | abelian group of order | |
| invertible real matrices under multiplication | group, not abelian for |
Basic facts in any group
- The identity is unique, and each element has a unique inverse.
- (order reverses).
- Cancellation: . So every row and every column of a group's operation table is a permutation of the elements (the Latin square property).
- If every element satisfies , the group is abelian.
- Every group with at most 5 elements is abelian. The smallest non-abelian group is , with 6 elements.
Identity and inverse under a custom operation
GATE likes operations such as or . The method is always the same.
- Identity: solve for , and confirm does not depend on .
- Inverse: solve for .
- Associativity: expand and and compare. Also check that the set is closed.
For , note . This shows the operation is ordinary multiplication in disguise after the shift , so it is associative and commutative, the identity is , and must be excluded because has no multiplicative inverse.
Order of elements and cyclic groups
The order of , written , is the smallest with . In the "power" means , and
Properties:
- , and .
- iff .
- .
A group is cyclic if some element generates it: . Facts:
- Every cyclic group is abelian. The converse fails (Klein four group ).
- A cyclic group of order has exactly generators. In these are the with .
- Every subgroup of a cyclic group is cyclic. For each divisor of there is exactly one subgroup of order , and exactly elements of order .
- Every group of prime order is cyclic.
- is cyclic iff .
Euler's totient: for , Examples: , , , for prime .
Subgroups and Lagrange's theorem
is a subgroup if it is a group under the same operation. Tests:
- One-step test: nonempty and .
- For finite : nonempty and closed under the operation is enough.
Lagrange's theorem. If is finite and is a subgroup, then divides . The number of distinct cosets is .
Consequences:
- The order of every element divides , so .
- A group of prime order has only the trivial subgroups.
- Fermat's little theorem is the case : .
The converse of Lagrange is false in general: the alternating group has order 12 but no subgroup of order 6. It is true for cyclic groups.
The union of two subgroups is a subgroup only if one contains the other. The intersection of two subgroups is always a subgroup.
Worked examples
Worked example 1: Identity and inverse
On define . Find the identity and the inverse of 9.
- gives .
- gives .
Check associativity: . Closure holds in . So is an abelian group with identity 4, and in general .
Worked example 2: Orders in a cyclic group
In , find the order of 8 and the number of elements of order 10.
- . Check: .
- Elements of order 10: . They are , the with .
Worked example 3: Is it a group?
Is under multiplication mod 9 a group?
These are exactly the residues coprime to 9, so the set is , which has order and is closed. Identity is 1. Inverses: , , . It is a group. Powers of 2: , so 2 generates it and is cyclic of order 6.
Worked example 4: Possible subgroup orders
A group has order 30. Can it have a subgroup of order 4? An element of order 15?
- , so no subgroup of order 4.
- , so Lagrange does not rule out an element of order 15, and has one (the element 2). Lagrange only gives necessary conditions.
Worked example 5: Counting monoid structure
Let . Which of these are monoids: , , ?
- with concatenation: associative, identity . Monoid.
- excludes , so there is no identity. Semigroup only.
- Even length strings: concatenation of two even strings is even, and has length 0. Monoid. Still not a group since has no inverse.
Common traps
- Forgetting closure. under fails because .
- Assuming abelian implies cyclic. is abelian and not cyclic.
- Using the converse of Lagrange. A divisor of need not be a subgroup order (except in cyclic groups).
- Checking only but not that is the same for all , or not checking that lies in the set.
- Writing in a non-abelian group.
- Counting generators of as . Only elements coprime to generate; the count is .
- Treating as a group for composite .
Quick revision
- Semigroup = closure + associativity. Monoid adds identity. Group adds inverses.
- Strings under concatenation: monoid. under : group.
- Identity and inverse are unique; .
- for all implies abelian. All groups of order at most 5 are abelian.
- In : ; generators number .
- Prime order implies cyclic implies abelian.
- Lagrange: subgroup order and element order divide . Converse false in general ().
- cyclic iff .
- is a group iff is prime; always is.