Maths WorkshopMaths problems with full solutions
Exercise 980Algebra › GroupsL1Added 3 Nov 2026

Order of an element in $\mathbb{Z}/n\mathbb{Z}$

#order#cyclic group#gcd

Statement

Show that the order of kˉ\bar k in (Z/nZ,+)(\mathbb{Z}/n\mathbb{Z},+) is n/gcd⁡(k,n)n/\gcd(k,n).

Hint

The order is the smallest positive integer mm with mk≡0(modn)mk\equiv0\pmod n.

Show solutionHide solution

Solution

Condition. mk≡0(modn)  ⟺  n∣mk  ⟺  n/gcd⁡(k,n)∣mmk\equiv0\pmod n\iff n\mid mk\iff n/\gcd(k,n)\mid m.

Order. The smallest such mm is n/gcd⁡(k,n)n/\gcd(k,n).

Conclusion. ord⁡(kˉ)=n/gcd⁡(k,n)\operatorname{ord}(\bar k)=n/\gcd(k,n).

Application. In Z/8Z\mathbb{Z}/8\mathbb{Z}: order of 2ˉ\bar2 is 8/2=48/2=4; order of 3ˉ\bar3 is 8/1=88/1=8; order of 4ˉ\bar4 is 8/4=28/4=2.