Let $G$ be a finite group having order $n$, prove that $n$ is odd if and only if for each $a\in G$, there is $b\in G$ such that $a=b^2$.
I first assume $n$ is odd, then let $a$ be an element in $G$, since $a^n=e$, we have $$a=a^{n+1}=(a^{(n+1)/2})^2$$ which tells $a$ is the square of $a^{(n+1)/2}$.
To prove the converse, I use contraposition, which I assume $n$ is even, then I want to find $a\in G$ such that it is not a square. My intuition is, "assume" we can always find an element $a\in G$ such that the smallest positive integer $k$ satisfy $$a^k=e$$ is $k=n$. Then it is not true that $a$ can be expressed as a square, indeed if $a=b^2$ for some $b\in G$, then the smallest $k$ satisfy $b^k=e$ will be $k=2n$, but this contradicts the smallest $k$ cannot exceed $n$.
My problem is, is the assumption I made always true? If it is true then it should be in the very beginning of the textbook, but I have forgotton it. Any help?
Source: Apostol Analytic Number Theory.