this is a question from a brazillian book, Paulo A. Martin's "Grupos, Corpos e Teoria de Galois" (portuguese for "Groups, fields and Galois Theory" (The actual word field translate as "Campo", but in the math context, the term used is "Corpo", wich means "body")).
It starts with the classic old question that was answered many times in this site, in this link, only changing $p$ for $3$.
The next part is to prove the following:
Let $G$ be a group of order $3^2q$, with $q$ prime, $q>3$. If $q\equiv 1\pmod3$ and $G$ is not abelian show that $|Z(G)|=1 \ \text{or} \ 3$.
Ok, here I start to work. Right, if $G$ is not abelian, then $G / Z(G)$ is not cyclic, so, $|G / Z(G)|$ is not a prime and as $ |Z(G)|$ divides $|G|$, $|Z(G)| = 1, 3 \ \text{or} \ q$. The problem here is show that we can't have $|Z(G)|=q$. But how? How can I prove this? Is this right? I got some things, like $n_{q}=1$ and $n_{3}=1 \ \text{or} \ q$ but I don't know if this is usefull.
I appreciate any help! Thanks in advance for everyone who read!