Hint:
Let $p$ be any prime which divides $a$, and let $m$ respectively $n$ be the powers of $p$ in $a$ respectively $b$.
You need to prove that $m \leq n$ and $n \leq m$.
Now for each $k$ we have
$$p^{(2k-1)m} \mid a^{2k-1} \mid b^{2k}$$
As the power of $p$ in $b^{2k}$ is $n(2k)$we get that
$$(2k-1)m \leq 2k n \Rightarrow \frac{m}{n} \leq \frac{2k}{2k-1}$$
use the fact that this is true for all $k$ to conclude that $\frac{m}{n} \leq 1$.
Now repeat with $m,n$ interchanged and with the even $k's$.
P.S. You don't need to look at the prime factorization:
Assume by contradiction $a >b$. Then
$$\lim_k \left( \frac{a}{b} \right)^k =\infty$$
which implies that there exists an $k$ so that
$$\left( \frac{a}{b} \right)^{2k} >a \Rightarrow a^{2k-1} > b^{2k} $$
which contradicts $a^{2k-1} \mid b^{2k}$.
Now assume by contradiction $a < b$ and repeat the argument with $a,b$ switches (and $2k+1$ instead of $2k$).
\mid
always reads better than|
because of spacing. @N.S. – Thomas Andrews May 14 '15 at 01:50