Prove the existence of non-abelian group of order $125$

abelian-groupsabstract-algebrafinite-groupsgroup-theoryp-groups

The following question was part of my algebra assignment.

Let $G$ be a non abelian group. Can its order be $125 ?$

$p$ groups have non-trivial center. So, if $|Z(G)| =125$ and the group is abelian, if $|Z(G)| =25$ then $G/Z(G)$ is cyclic and the group is abelian.But if $|Z(G)|= 5$ then G/Z(G) can be $\mathbb{Z}_5 \times \mathbb{Z}_5$ but how to prove that group is non-abelian in this case?

Any other approach of proving it non-abelian is also welcome.

Best Answer

The Heisenberg group modulo $5$ is a non-abelian group of order $125$.

It is the set of all $3 \times 3$ matrices with entries in $\mathbb F_5$ of the form $$ \begin{pmatrix} 1 & a & c\\ 0 & 1 & b\\ 0 & 0 & 1\\ \end{pmatrix} $$