So I know there have been some answers to this question or similar questions. However, I am looking for the proof that includes taking fractional parts? My maths teacher mentioned it and briefly went through it but too quickly for me to follow.
I do know that it is a proof by contradiction that starts out by assuming sqrt n does not = Z but sqrt n=a/b (in it's lowest terms) a,b are elements of Z.
Something about:
0 is less than c/b = d/a is less than 1
0 is less than c is less than 1
0 is less than d is less than a
so a/b=d/c contradicts sqrt n=a/b in it's lowest terms thus the assumption is false.
However, how you get to this part from the assumption is what I don't understand.
Thanks!
If $$\sqrt{n}=\frac{a}{b}$$ the $$b^2n=a^2$$ If $p$ is a prime that divides $n$ to power $k$, that is $n=p^k...$ then $p$ divides $a$, say to power $l$. We assume that $a$ and $b$ are relatively prime and thus we have $$k=2l$$. In other words all primes dividing $n$ do so to an even power and thus $n$ is a perfect square.