I am studying the proof that $\sqrt 2$ is an irrational number. Now I understand most of the proof, but I lack an understanding of the main idea which is:
We assume $\frac{m^2}{n^2} = 2$. Then both $m$ and $n$ can't be even.
I do not understand, why can't both $m$ and $n$ be even?
we can assume that $$\gcd(m,n)=1$$ and $$2=\frac{m^2}{n^2}$$ then $$2n^2=m^2$$ thus the left-hand side is even and so $$m^2$$ this is a contradiction, both numbers $m,n$ can not be even