Semigroups, monoids, groups and abelian groups: checking the axioms for a given operation, identities and inverses, order of an element, cyclic groups and generators, subgroups and Lagrange's theorem.
A binary operation is a function ; closure means the image stays inside .
Modular arithmetic, gcd and Euler's totient
The groups GATE uses most are under addition and units modulo under multiplication.
Concept notes
1. From closure to groups: the ladder of structures
Take a set with a binary operation . Each axiom added gives a named structure:
Structure
Axioms
Groupoid (magma)
closure:
Semigroup
+ associativity:
Monoid
+ identity :
Group
+ inverse for every :
Abelian group
+ commutativity:
Standard examples:
Set and operation
Strongest structure
groupoid only (not associative)
(positive integers)
semigroup (no identity)
with ;
monoid
strings over under concatenation
monoid, identity is the empty string
, ,
abelian group
invertible real matrices under ,
non-abelian group
To test a strange operation such as , check each axiom in order. Find the identity by solving , then the inverse by solving .
2. Basic facts true in every group
The identity is unique, and each element has a unique inverse.
Cancellation: and . So the equation has exactly one solution .
Socks and shoes: , and .
In a finite group's Cayley table, every element appears exactly once in each row and each column (a Latin square). A table with a repeat in a row is not a group.
If for every , the group is abelian: .
Every group of order 1 to 5 is abelian. The smallest non-abelian group has order 6 (the symmetries of a triangle, ).
There are exactly two groups of order 4 up to isomorphism: the cyclic group and the Klein group , in which every non-identity element has order 2.
A group of even order has an odd number of elements of order 2, so at least one.
A monoid's identity is also unique, but in a monoid only some elements may have inverses. The invertible elements of any monoid form a group, for example the units of .
3. Order of an element and cyclic groups
The order of a group is its number of elements. The order of an element is the smallest with (in additive notation, ).
if and only if .
. In this reads .
A group is cyclic if some element (a generator) gives every element as a power: . Every cyclic group is abelian, and every subgroup of a cyclic group is cyclic.
For a cyclic group of order :
Question
Answer
Number of generators
Generators of
the with
Elements of order
if , otherwise 0
Number of subgroups
the number of divisors of , one subgroup of each order
Euler's totient: , so and .
The group of units under multiplication mod has order . It may or may not be cyclic: is cyclic (generated by 3), is not (every element has order 2).
Subgroup lattice of the cyclic group Z12: exactly one subgroup for each divisor of 12.
4. Subgroups and Lagrange's theorem
A subgroup is a subset that is itself a group under the same operation.
Subgroup tests:
One-step: non-empty and .
Finite: a non-empty finite subset closed under the operation is a subgroup.
Lagrange's theorem: if is finite and , then divides . The index is the number of left cosets , which partition into equal-sized blocks.
Consequences:
divides , because is a subgroup of order . So .
A group of prime order is cyclic, and every non-identity element generates it.
Fermat's little theorem follows: for .
The converse is false: a divisor of need not be the order of a subgroup. The alternating group has order 12 but no subgroup of order 6. For cyclic groups the converse does hold.
Other facts asked as true/false:
The intersection of two subgroups is a subgroup.
The union is a subgroup only when or .
and are the trivial subgroups of every group.
Formulas to remember
Order of an element of Z_n
Order of a power
Generators of a cyclic group of order n
Elements of order d in a cyclic group
Lagrange's theorem
Order divides group order
Inverse of a product
Common mistakes
Writing ; the order reverses: .
Assuming the converse of Lagrange: a divisor of the group order need not be the order of a subgroup (except in cyclic groups).
Taking the identity of an odd operation to be 0 or 1 by habit instead of solving .
Counting generators of as ; it is .
Forgetting to check associativity: closure, identity and inverses alone do not make a group.
Assuming every abelian group is cyclic; the Klein four-group is abelian but not cyclic.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Is this operation a group?
conceptual
On define . Is a group? Is it abelian?
Step 1: Rewrite the operation in a friendlier form and check closure.
Try it on paper first.
Example 2: Orders and generators in Z12
numerical
In , find the order of 8, all generators, and the number of elements of order 4.
Step 1: Use $o(k) = n/\gcd(k,n)$ for $k = 8$.
Try it on paper first.
Example 3: Using Lagrange on U(8)
numerical
under multiplication mod 8. Find the order of each element. Is cyclic?
Step 1: What orders are possible?
Try it on paper first.
Example 4: Filling a Cayley table of order 3
conceptual
is a group with identity . Find , and .
Step 1: What can $a \cdot b$ be? Use the Latin-square rule.
Try it on paper first.
Previous year questions
11 official GATE CSE questions on this topic, newest first.
10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.