I have a group $G$ that is a group of matrices of the form
$$\left( \begin{array}{ccc} 1 & a & b \\ 0 & 1 & c \\ 0 & 0 & 1 \end{array} \right)$$
where $a,b,c \in \Bbb Z_3$.
I have shown it is of order $27$ and non-abelian. How do I show that there's only one non-abelian group of order $n$ less than $27$, and how do I find $n$?
First, enumerate the odd numbers beneath $27$. You'll notice something: everything is either a prime $p$, of the form $p^2$ for a prime $p$, or of the form $pq$ for primes $p<q$. You should prove and then use the following theorems.