Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for Exercise 02 from Chapter 01 in Baby Rudin #10

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

gapry
Copy link
Contributor

@gapry gapry commented Jan 5, 2024

This pull request provides the solution for Exercise 02, Chapter 01, from the third edition of Principles of Mathematical Analysis by Walter Rudin.

@ceciliachan1979
Copy link
Owner

ceciliachan1979 commented Jan 6, 2024

While the proof is fine, we could generalize it.

Consider positive integer $x$ such that it is not a perfect square, let the prime factorization of $x = p_1^{a_1}p_2^{a_2} \cdots p_n^{a_n}$. Without loss of generality, let $a_1$ be odd, so we can write $x = p q$ where $p = p_1^{a_1}$ and $q = p_2^{a_2} \cdots p_n^{a_n}$ and so $\gcd(p, q) = 1$. For the sake of contradiction, we also let $\sqrt{x}$ to be rational. So $\sqrt{x} = \frac{r}{s}$, where $r$ and $s$ are coprime integers.

First, we have $pq = x = (\sqrt{x})^2 = \left(\frac{r}{s}\right)^2 = \frac{r^2}{s^2}$, which implies $pqs^2 = r^2$. Now it is clear that $r$ must have $m = p_1^{(a_1 + 1)/2}$ as a factor since $p$ is a factor of $r^2$, write $r = m t$.

Using $r = mt$, we have $ pq = \left(\frac{mt}{s}\right)^2$, which implies $pqs^2 = m^2 t^2 = p_1^{a_1 + 1}t^2 = p p_1 t^2$. Cancelling the $p$, we have $qs^2 = p_1 t^2$. Since $p_1$ is a factor of $qs^2$, it must be a factor of $q$ or $s^2$. However, $\gcd(p, q) = 1$, so $p_1$ is not a factor of $q$, so $p_1$ is a factor of $s^2$ and so $p_1$ is a factor of $s$.

Now we have our contradiction, since $\gcd(r, s) = 1$, but $p_1$ is a factor of both $r$ and $s$.

@ceciliachan1979 ceciliachan1979 force-pushed the BabyRudinCh01Ex02 branch 2 times, most recently from 3bf312f to 959d379 Compare January 14, 2024 18:01
@ceciliachan1979 ceciliachan1979 merged commit a09ba56 into ceciliachan1979:main Jan 20, 2024
1 check passed
@gapry gapry deleted the BabyRudinCh01Ex02 branch January 29, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants