I was working on my group theory exercises, and I encountered this problem.
"Let $G$ be a group and $a$ be a unique element of $G$ with order 2. Then $a$ is in the center of $G$."
My solution was considering a conjugation, which is an isomorphism. Since $a$ is the only element with the given property, it must be fixed by an isomorphism thus $gag^{-1} = a$ for all $g$, hence the result.
However, I want to generalize it as follows:
"Let $G$ be a group and $\langle a \rangle$ be a unique subgroup of $G$ with order $n$. Then $a$ is in the center of $G$."
I am stuck because I do not even know whether the statement is true or false. If this generalization fails to hold, for what $n$? Is there a condition for $n$, or $G$, to make this statement true?
Thanks in advance for all help, solution, or hint.
Consider the group $D_3 = \left<a,b:a^3= b^2=e,ab=ba^{-1}\right>$. The group has a unique subgroup of order $3$, given by $\left<a\right> = \{a,a^2,e\}$. However, $D_3$ has trivial center, so $a$ is not in the center.