I have G where $|G|=2p$ ; p is prime. $\exists a\in Z\left(G\right);\:a^2=e$. I need to prove that G is abelian.
Now, let's translate it into math. To prove that G is abelian, is in other words ti prove that $Z\left(G\right)=G$, but $Z\left(G\right)\in G$, so if I prove that \left|Z\left(G\right)\right|=\left|G\right|, I've done.
Now, by lagrange's theorem, $\left|Z\left(G\right)\right|$ can be 2, p or 2p (which I want to prove).
It cant be p, because there is $a\in Z\left(G\right)$, which means $a\in G$ so $a^{2}=e$, therefore $2 : |Z(G)|$.
So I'm left with 2 and 2p. But as I see, theoretical the center can be only 2 elements: $\left\{e,a\right\}$, because all the data I have that there is there some $a$, but $a^{-1}=a$ because $a^{2}=e$, so I have for sure 2 elements.
I dont see how can i prove that there is at least one another abelian element in Z(G), because the existence of two fits perfect eather, as I can see.
Can somebody give me a hint ? Can this exercize be solved like that or Am I in the wrong direction from the first place ?
Can somebody give me a hint?