MIT6 042JS15 cp2 Solutions
MIT6 042JS15 cp2 Solutions
MIT6 042JS15 cp2 Solutions
https://github.com/spamegg1
Contents
1 Problem 1 1
2 Problem 2 1
2.1 Generalizing even further . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Problem 3 5
4 Problem 4 5
1 Problem 1
Prove that if a·b = n, then either a or b must be ≤ n, where a, b, and n are nonnegative
real numbers. Hint: by contradiction, Section 1.8 in the course textbook.
2 Problem 2
√
Generalize the proof of Theorem 1.8.1 repeated
√ below that 2 is irrational in the
course textbook. For example, how about 3?
We want to prove:
1
√
Theorem 1. 3 is an irrational number.
First we will need another result:
Lemma 1. Assume n is a positive integer. If 3 divides n2 , then 3 divides n.
This is actually Problem 1.10
√ part (b) in the textbook! Prof. Meyer tells
us to do it in the proof of 2 is irrational.
2
4. Multiplying both sides by d2 we get 3d2 = n2 .
5. From this equation we notice that 3 divides n2 . (Because there exists an integer
k = d2 such that n2 = 3k, which is the definition of divisibility).
6. By (5) and the Lemma, 3 divides n.
7. By (6) and the definition of divisibility, there exists an integer m such that 3m = n.
8. Substituting (7) into (4) we get 3d2 = (3m)2 = 9m2 .
9. Dividing by 3, we get d2 = 3m2 . This means d is divisible by 3, which is a
contradiction to the fact that n and d have no common divisors greater than 1.
√
10. Therefore our initial assumption was false, hence 3 is irrational.
3
4. If r = 0 then n = qm so m divides n, and we are done. So now consider the case
r > 0.
5. Then n2 = (qm + r)2 = q 2 m2 + 2qmr + r2 .
6. By (2) and (4) we have q 2 m2 + 2qmr + r2 = mk.
r2
7. Dividing by m we get q 2 m + 2qr + m = k.
2
8. Moving terms, we get q 2 m + 2qr − k = − rm .
9. Since m is prime and 0 < r < m, r2 is not divisible by m. (We need to prove
this!)
10. So the LHS of (8) is an integer, while the RHS of (8) is not an integer (because
r ̸= 0), a contradiction.
11. Our initial assumption must have been false, therefore m divides n.
Let’s prove step (9). We have to use the Fundamental Theorem of Arithmetic and
properties of prime numbers.
Claim 1. Assume m is prime and 0 < r < m is an integer. Then m does not divide
r2.
With Lemma 2, we are able √ to generalize the Theorem to square roots of any primes
(just repeat the proof for 3 where m replaces 3, and use Lemma 2 in the place of
Lemma 1):
√
Theorem 2. Assume m is prime. Then m is irrational.
4
Earlier we said that the theorem should hold not just for prime m, but any m that is
not a perfect square itself. However proving this greater generalization would require
more work.
3 Problem 3
If we raise an irrational number to √an irrational power, can the result be rational?
√ 2
Show that it can, by considering 2 and arguing by cases.
√
√ 2
Proof. 1. Case 1. 2 is rational.
√
1.1. We know that 2 is irrational (earlier Theorem from the lecture).
√
1.2. So in this case, an irrational, namely √2, raised to an irrational power, namely
√ √ 2
2, gives us a rational number, namely 2 . Therefore we proved the claim in this
case.
√ √2
2. Case 2. 2 is irrational.
2.1. By the law of exponents (ab )c = abc we have:
√ √2 √ √
√ √ √
2 2· 2 2
2 = 2 = 2 =2
√
√ 2
2.2. So, in this case, once√again we have an irrational, namely 2 , raised to an
irrational power, namely 2, that results in a rational number, namely 2. So we
proved the claim in this case too.
4 Problem 4
The fact that that there are irrational numbers a, b such that ab is rational was proved
earlier by cases. Unfortunately, that proof was nonconstructive: it didn’t reveal √ a
specific pair, a, b with this property. But in fact, it’s easy to do this: let a ::= 2 and
b ::= 2 log2 (3). We know a is irrational, and ab = 3 by definition. Finish the proof
that these values for a, b work by showing that 2 log2 (3) is irrational.
5
5. By the definition of log2 , we get 3 = 2n/2d .
6. Raising both sides to the power 2d we get 32d = 2n .
7. Dividing, we get
32d
=1
2n
8. Since 2 and 3 are different primes, 2n cannot divide 32d , unless n = 0. So by (7) we
have n = 0.
9. By (8) and (2) we have 2 log2 (3) = d0 = 0 which is a contradiction. (Because for
the log2 function, the only root is x = 1. So log2 (3) ̸= 0.)
10. Therefore 2 log2 (3) is irrational.