I'm talking specifically about a proof that I've found. I don't seem to get some parts of it. It states that if you take: $$\sqrt{n}=\frac{p}{q} \:\: \;\;p,q \in \mathbb{Z} $$ where $p$ and $q$ share no common prime factors. Now $p^2=nq^2$ so that every prime factor of $q$ divides $p^2$, and hence (by the fundamental theorem of arithmetic) it also divides $p$. We deduce that $q$ has no prime factor; thus $q=1$ and $n=p^2$.
I get up to the part where it says that every prime factor of $q$ divides $p^2$ since $p^2/q=nq\in \mathbb{Z}$. It's the next part where it says that hence it also divides $p$. Since it seems that would imply: $$ q|p^2 \implies q|p $$ which is false ($q=4$ and $p=6$ for example, it seems that if $p$ is square it's false, but true otherwise. Though I can't seem to prove that either...). It's probably just me misreading it but I can't seem to make the proof clear; I'm just wondering if anyone can explain that last bit in a little more detail.
It starts with $m^2 < n < (m+1)^2$ and concludes that $\sqrt{n}$ is irrational.
– marty cohen Aug 25 '15 at 23:08