In this post showing that $\sqrt{12}$ is irrational, Prof. Lubin gives an answer which I didn't fully understand. Here is Prof. Lubin's answer :
If you’re willing to use the Fundamental Theorem of Arithmetic, which says that the decomposition of any nonzero integer as a product of primes is unique, then this proof, and all others for irrationality of $r$-th roots, drops right out.
Write $m^2=12n^2$. This contradicts FTA because there are evenly many $3$’s on the left but oddly many on the right.
The specific part of the proof which I'm not sure I understand correctly is where Prof. Lubin says there are evenly many $3$'s on the left but oddly many on the right. Is this because $m^2$ and $n^2$ are perfect squares? Also, since $12 = 2^23$ does this means there are evenly many $2$'s on both sides (which is why we are choosing $3$ instead of $2$ to prove that $\sqrt{12} \notin \mathbb Q$)?
Just to be sure, if we want to prove that $\sqrt{18}$ and $\sqrt{7}$ are irrational using the FTA we say that :
- For $\sqrt{18} : $$m^2 = 18n^2$ so there are evenly many $2$'s on the left but oddly many on the right which contradicts the FTA.
- For $\sqrt{7} : $$m^2 = 7n^2$ so there are evenly many $7$'s on the left but oddly many on the right which contradicts the FTA.
Is that correct?