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?
Just for completeness I'll add my comment as an answer. You're exactly correct yourself. What the author is saying is that writing $m$ and $n$ in terms of their prime decompositions gives:
$m = p_1^{a_1}...p_j^{a_j}$ and
$n = q_1^{b_1}...q_i^{b_i}$
for primes $p_k, q_k$ and positive integers $a_k, b_k$.
Then $m^2 = 12n^2$ becomes $p_1^{2a_1}...p_j^{2a_j} = 3 \cdot 2^2 q_1^{2b_1}...q_i^{2b_i}$
and these must be the SAME representations in terms of primes. But then the power of 3 on the RHS is odd, even if some $q_k=3$, but the power of 3 on the LHS is even. Hence we have reached a contradiction to the fact that these must be the same representations in terms of primes. So we cannot have $m^2 = 12n^2$ and hence cannot have $\frac{m}{n} = \sqrt{12}$.