Are there any examples of groups, $G$, such that $|G|=p^aq^b$ (where $p$ and $q$ are distinct primes and $a,b\geq 1$) and $|\mathrm{Z}(G)|=p^a$?
($\mathrm{Z}(G)$ denotes the center of $G$)
I tried seeing if such a group could be constructed by a more general method - by taking the direct product of two groups, $X$ and $Y$, where $|X|=p^a$, $|Y|=q^b$, and $X$ is abelian.
But, of course, $\mathrm{Z}(X\times Y)=\mathrm{Z}(X)\times\mathrm{Z}(Y)$, and since $|Y|$ is a prime power, $Y$ must have a non-trivial center, meaning that $|\mathrm{Z}(X\times Y)|$ will always be some multiple of $p^a$ rather than just $p^a$.
I also looked at some small groups, but I couldn't find any example (because most were Dihedral or Dicyclic groups with trivial/ near-trivial centers).
(I am aware of Burnside theorem, but I can't figure out anything substantive from it in this situation)