Let $p$ and $q$ be odd primes such that such that $q \ | \ p-1.$ Suppose we have a group $G$ which is a split extension of the cyclic group $B$ of order $q$ by a finite abelian $p$-group $A.$ Can we say that $Z(G)$ is a direct summand of $G?$
I have tried up to some extent but I am stuck.
Suppose $B = \langle b \rangle.$ Then as $Z(G) \subseteq A,$ we have that all the elements of $A$ which commute with $b$ are the only central elements of $G.$ If $Z(G)$ is non-trivial, then we only need to prove that it is a direct summand of $A.$ For that assume that $A = \langle a_1 \rangle \times \langle a_2 \rangle \times \ldots \times \langle a_n \rangle$ with $o(a_i) = p^i.$ If for some $i,$ $a_i^{p^k}$ commutes with $b,$ then I am trying to prove that $a_i$ also commutes with $b.$
Any comments would be highly appreciated!