$\sqrt {3} \in Q$. Then, $\sqrt{3} = \frac ab$ with the lowest term for $a,b \in Z$.
Then, $3b^2=a^2$, which implies that $a^2$ is divisible by 3.
That is, $a$ is also divisible by 3 (by fundamental theorem of arithmetic).
I don't understand here $a^2$ divisible by 3 implies $a$ divisible by 3.
Could you explain it?