I'm trying to refresh my mathematics after 10 years and I'm having some problems understanding this. The following is used to show how the square root of 7 is not a rational number:
$\sqrt{7} = \frac{m}{n}$ where $m,n \in \Bbb Z; n \neq 0; m, n$ are coprimes.
$m^2 = 7n^2$
$m^2$ is a multiple of $7$, so $m$ is also multiple of $7$.
$m = 7k; ~ m^2 = 7(7k^2)$
$ 7n^2 = 7(7k^2) $
$ n^2 = 7k^2 $
Thus, both n and m are multiples of 7 which cannot be possible.
But with the same logic I end up with this for $ \sqrt[3]8 $:
$\sqrt[3]{8} = \frac{m}{n}$ where $m,n \in \Bbb Z; n \neq 0$
$m^3 = 8n^3$
$m = 8k;~m^3 = 8(8^2k^3)$
$8(8^2k^3) = 8n^3$
$8^2k^3 = n^3$
$8(8k^3) = n^3$
$m^2 = 8(8^2k^3)$ and $n = 8(8k^3)$
By the same reasoning, both $m$ and $n$ are multiples of 8 and it should be invalid, but as we all know it is $2$, a completely rational number. What am I missing here?
This is because $7$ is a square free number but $8$ is not a cube free number. In general, such proofs to show irrationality only work for $\sqrt[k]n$ if $n$ is a k-free number. If $n$ is not a $k$ free number, then you need to write $\sqrt[k]n = r \sqrt[k]s$ where $s$ is k-free. Let's see why this is so.
Suppose $n$ is not k-free. So, $n = r^ks$ where $s$ is k-free. We will work by our usual proof using contradiction:
Suppose $\sqrt[k]n$ is rational. Then $$\sqrt[k]n = \frac ab$$ for some $a,b \in \Bbb Z, b \neq 0, \gcd(a,b) = 1$. We get: $$a^k = nb^k$$ $n$ divides $a^k$, but may or may not divide $a$. To see this, consider $$\color{blue}{a^k} = \color{blue}{r^k}sb^k$$ It is clear that $r^k$ may or may not divide $a$, although it divides $a^k$, but $s$ certainly divides $a$. $a = r$, $s = 1$ is an easy example.
We have established that numbers which are not k-free may lead to fallacies in the proof. We will now show that the proof works for a k-free integer. Suppose $n>1$ is k-free. We need to show that $\sqrt[k]n$ is irrational. Assume the opposite - it's rational. Then, $\sqrt[k]n = \frac ab$ for some $a,b \in \Bbb Z, b \neq 0, \gcd(a,b) = 1$. $$a^k = nb^k$$ $n$ is k-free, $$n = p_1^{q_1}p_2^{q_2} \cdots$$where $p_i$ are prime and $q_i<k$. $$a^k = xp_1^{km_1}p_2^{km_2}\cdots$$Since $q_i\le k-1$, $q_i\le (k-1)m_i$ hence we get $$xp_1^{q_1+l_l}p_2^{q_1+l_2}\cdots = a^k = b^kp_1^{q_1}p_2^{q_2} \cdots$$ Hence $p_i^{l_i}$ divides $b$, $l_i$ is positive, thus $a$ and $b$ are not coprime, a contradiction.
Thus, for the proof, we need to write it in the form of $r\sqrt[k]s$. For $\sqrt[3]8$, it immediately fails since $\sqrt[3]8 = 2\sqrt[3]1 = 2$ which is rational. Let's try an example for, say $\sqrt[3]{32} = 2\sqrt[3]4$.