After studying the group of roots of unity, we now turn to a second fundamental finite example: residue classes modulo
n under addition. These groups are among the most important examples in algebra and number theory. They show how arithmetic can be performed inside a finite set while still satisfying all group axioms. The case
Z3 is small enough to compute completely, but the same proof works for every positive integer
n. In this lesson, students will prove that
(Zn,+n) is a finite group.
:::definition[Residue Class]
Let
n∈N with
n≥2. For
a∈Z, the
residueclass of
a modulo
n is denoted by
a and is defined by
a={a+kn:k∈Z}.
The set of all residue classes modulo
n is
Zn={0,1,…,n−1}.
:::
:::definition[Addition Modulo n]
Let
n∈N with
n≥2. Addition modulo
n on
Zn is defined by
a+nb=a+b.
This operation is called
additionmodulon.
:::
The operation
+n adds representatives and then takes the residue class modulo
n. For example, in
Z5,
3+54=7=2.
The result is again a class in
Z5. This is the finite version of closure under addition.
:::theorem
Let
n∈N with
n≥2. Then
(Zn,+n) is a finite group.
:::
:::proof
Given that
n∈N with
n≥2 and
Zn={0,1,…,n−1}.
To prove that
(Zn,+n) is a finite group.
[1] To prove closure.
Let
a,b∈Zn. By definition,
a+nb=a+b.
Since
a+b is a residue class modulo
n, we get
a+nb∈Zn.
[2] To prove associativity.
Let
a,b,c∈Zn. Then
(a+nb)+nc=a+b+nc=a+b+c=a+nb+c=a+n(b+nc).
Therefore addition modulo
n is associative.
[3] To prove the existence of identity element.
The element
0∈Zn satisfies
a+n0=0+na=a∀a∈Zn.
Therefore
0 is the identity element.
[4] To prove the existence of inverse elements.
Let
a∈Zn. Then
−a∈Zn and
a+n−a=−a+na=0.
Therefore every element has an additive inverse in
Zn.
Since
Zn has
n elements, the group is finite.
Hence,
(Zn,+n) is a finite group.
□
:::
:::example
For
n=3,
Z3={0,1,2}.
The addition table is
+3012001211202201
The identity is
0, and the inverse of
1 is
2.
:::
:::example
In
Z8 under addition, the inverse of
3 is
5 because
3+85=8=0.
The order of
3 is
8 because
83=24=0
and no smaller positive multiple gives
0.
:::
:::solved-problem
Find the inverse of
7 in
(Z12,+12).
:::
:::solution
Let
7∈Z12.
To find the inverse of
7 under addition modulo
12.
We need
x∈Z12 such that
7+12x=0.
This means
7+x=0.
Taking
x=5, we get
7+125=12=0.
Therefore the inverse of
7 is
5.
Hence,
−7=5
in
Z12.
□
:::
:::solved-problem
Find the order of
4 in
(Z10,+10).
:::
:::solution
Let
4∈Z10.
To find the order of
4 under addition modulo
10.
We need the least positive integer
k such that
k4=0.
This means
4k=0,
or equivalently,
10∣4k.
The least positive such
k is
k=gcd(4,10)10=210=5.
Hence,
o(4)=5.
□
:::
:::remark
The additive group
(Zn,+n) exists for every
n≥2. Multiplication modulo
n on all of
Zn is different: it is not usually a group because
0 has no multiplicative inverse. This distinction between addition modulo
n and multiplication modulo
n is a frequent source of errors.
:::
Addition in
Zn moves around a finite cycle of residues. We observe the running sums
a,2a,3a,… modulo
n until the identity residue
0 appears. Change
n and
a to see how the additive inverse and the order of
a are controlled by modular arithmetic. The first return to
0 gives the order of
a.
:::scientific-preview[Modulo Addition Cycle Explorer]
@libraries: plotly
:::
Use the calculator to compute addition and inverses in
Zn. Enter
n,
a, and
b. The calculator gives
a+nb, the additive inverse of
a, and the order of
a. This supports the group proof by making identity and inverse behavior explicit.
:::calculator[Addition Modulo n]
:::
:::exercise
[1] Define
Zn.
[2] Prove that
0 is the identity element of
(Zn,+n).
[3] Find the inverse of
9 in
Z14.
[4] Find the order of
6 in
Z15.
[5] Write the addition table of
Z2.
:::
:::answer
[1]
Zn={0,1,…,n−1}.
[2] For every
a∈Zn,
a+n0=0+na=a.
[3] The inverse is
5 because
9+145=0.
[4]
o(6)=15/gcd(6,15)=5.
[5] The table has
0+20=0,
0+21=1,
1+20=1, and
1+21=0.
:::
:::faq
Q: Is
(Zn,+n) always a group?
A: Yes. It is a finite group for every integer
n≥2.
Q: What is the identity element in
Zn under addition?
A: The identity element is
0.
Q: What is the inverse of
a?
A: The inverse is
−a.
Q: How many elements does
Zn have?
A: It has
n elements.
:::
:::call-to-action[Permutation Groups]
subtitle: Continue to permutation groups, where the operation is composition of functions.
button: Next Lesson | /abstract-algebra/introduction-to-groups/standard-examples-of-groups/permutation-groups
button-ghost: Previous Lesson | /abstract-algebra/introduction-to-groups/standard-examples-of-groups/roots-of-unity-groups
:::