Docsity

Homework 4 in CMSC 250: Proving Statements about Integers and Rationals - Prof. Donald R. , Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Fall 2009
CMSC 250: Homework 4
Perlis
Due at the start of discussion section Wednesday, September 30, 2009.
Please staple your homeworks together if you use more than one page.
Problem 1. (1 point) Print your name ,
section number , and your TA’s name .
Problem 2. (1 point) When is the first exam? |
Problem 3. (30 points) For each of the following statements either (1) write TRUE and explain
why, or (2) write FALSE and give a counterexample.
a. For any integer 𝑎, if 𝑎 ≠ 0 then 𝑎−1 is rational.
TRUE. 𝑎−1=1
𝑎 which is a quotient of two integers.
b. For any real numbers 𝑥 and 𝑦, if 𝑥>𝑦, 𝑥 ≠ 0, and 𝑦 ≠ 0 then 𝑥
𝑦>𝑦
𝑥.
FALSE. Let 𝑥= 1 and 𝑦=−1. 1
−1=−1≯−1
1=−1.
c. For any real numbers 𝑥 and 𝑦, if 𝑦 ≠ 0 and 𝑥
𝑦 is an integer then 𝑥 and 𝑦 are
integers.
FALSE. Let 𝑥=𝑦=1
2.
1
2
1
2
= 1.
d. For any any rational numbers 𝑟 and 𝑠, if 𝑠 ≠ 0 then 𝑟
𝑠 is rational.
TRUE. Since 𝑟 and 𝑠 are rational, 𝑟=𝑎
𝑏 and 𝑠=𝑐
𝑑 for some integers 𝑎, 𝑏, 𝑐, and
𝑑. 𝑟
𝑠=
𝑎
𝑏
𝑐
𝑑
=𝑎𝑑
𝑏𝑐 . Since 𝑎, 𝑏, 𝑐, and 𝑑 are integers, 𝑎𝑑 and 𝑏𝑐 are integers. As 𝑟
𝑠 is
the quotient of two integers, 𝑟
𝑠 is rational.
e. For any integers 𝑎 and 𝑏, if 𝑎 and 𝑏 are even, then 𝑎𝑏 is even.
TRUE. Since 𝑎 and 𝑏 are even 𝑎= 2𝑘 and 𝑏= 2𝑚 for some integers 𝑛 and 𝑚.
𝑎𝑏 = 4𝑘𝑛 = 2(2𝑘𝑛). Since 𝑎𝑏 = 2𝑛, and 𝑛 is an integer (𝑛= 2𝑘𝑛), 𝑎𝑏 is even.
f. For any integers 𝑎, 𝑏, and 𝑐, if 𝑎 divides 𝑐 and 𝑏 divides 𝑐 then 𝑎𝑏 divides 𝑐.
FALSE. Let 𝑎= 2, 𝑏= 6, and 𝑐= 6. 𝑎 divides 𝑐 as 6 = 2 ∙3. 𝑏 divides 𝑐 as
6 = 1 ∙6. However, 𝑎𝑏 does not divide 𝑐 as there is no integer 𝑘 such that
6 = 12𝑘.
pf3

Partial preview of the text

Download Homework 4 in CMSC 250: Proving Statements about Integers and Rationals - Prof. Donald R. and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

Fall 2009 CMSC 250: Homework 4 Perlis

Due at the start of discussion section Wednesday, September 30, 2009.

Please staple your homeworks together if you use more than one page.

Problem 1. (1 point) Print your name , section number , and your TA’s name.

Problem 2. (1 point) When is the first exam? |

Problem 3. (30 points) For each of the following statements either (1) write TRUE and explain why, or (2) write FALSE and give a counterexample.

a. For any integer 𝑎, if 𝑎 ≠ 0 then 𝑎−^1 is rational.

TRUE. 𝑎−^1 = 1 𝑎 which is a quotient of two integers.

b. For any real numbers 𝑥 and 𝑦, if 𝑥 > 𝑦, 𝑥 ≠ 0 , and 𝑦 ≠ 0 then 𝑥 𝑦 >^

𝑦 𝑥.

FALSE. Let 𝑥 = 1 and 𝑦 = − 1. 1 − 1 =^ −^1 ≯^

− 1 1 =^ −^1.

c. For any real numbers 𝑥 and 𝑦, if 𝑦 ≠ 0 and 𝑥 𝑦 is an integer then^ 𝑥^ and^ 𝑦^ are integers.

FALSE. Let 𝑥 = 𝑦 = 1

1 (^21) 2

d. For any any rational numbers 𝑟 and 𝑠, if 𝑠 ≠ 0 then

𝑟 𝑠 is rational.

TRUE. Since 𝑟 and 𝑠 are rational, 𝑟 = 𝑎 𝑏 and^ 𝑠^ =^

𝑐 𝑑 for some integers^ 𝑎,^ 𝑏,^ 𝑐, and 𝑑. 𝑟 𝑠 =

𝑎 𝑏𝑐 𝑑

𝑎𝑑 𝑏𝑐. Since^ 𝑎,^ 𝑏,^ 𝑐, and^ 𝑑^ are integers,^ 𝑎𝑑^ and^ 𝑏𝑐^ are integers. As^

𝑟 𝑠 is the quotient of two integers, 𝑟 𝑠 is rational. e. For any integers 𝑎 and 𝑏, if 𝑎 and 𝑏 are even, then 𝑎𝑏 is even.

TRUE. Since 𝑎 and 𝑏 are even 𝑎 = 2𝑘 and 𝑏 = 2𝑚 for some integers 𝑛 and 𝑚. 𝑎𝑏 = 4𝑘𝑛 = 2(2𝑘𝑛). Since 𝑎𝑏 = 2𝑛, and 𝑛 is an integer (𝑛 = 2𝑘𝑛), 𝑎𝑏 is even.

f. For any integers 𝑎, 𝑏, and 𝑐, if 𝑎 divides 𝑐 and 𝑏 divides 𝑐 then 𝑎𝑏 divides 𝑐.

FALSE. Let 𝑎 = 2, 𝑏 = 6, and 𝑐 = 6. 𝑎 divides 𝑐 as 6 = 2 ∙ 3. 𝑏 divides 𝑐 as 6 = 1 ∙ 6. However, 𝑎𝑏 does not divide 𝑐 as there is no integer 𝑘 such that 6 = 12𝑘.

Problem 4. (18 points) For each of the following, explain why the proof is invalid.

a. ∀𝑎, 𝑏 ∈ ℤ 𝑎𝑏^ ∈ ℚ

If 𝑏 > 0 then 𝑎𝑏^ can be expressed as the product of 𝑏 integers. Therefore, if 𝑏 > 0, then 𝑎𝑏^ is an integer, which is rational. If 𝑏 < 0 then 𝑎𝑏^ = 1 𝑎−𝑏^. Since

  • 𝑏 > 0, 𝑎−𝑏^ is an integer by the first part of the proof. Therefore, if 𝑏 < 0, then 𝑎𝑏^ is rational. Therefore, 𝑎𝑏^ is rational.

This proof misses the case 𝑏 = 0.

b. ∀𝑎, 𝑏 ∈ ℤ if 𝑎 − 𝑏 is even then 𝑎^2 + 𝑏^2 is even.

Suppose that 𝑎^2 + 𝑏^2 is even. Then there is some integer 𝑘 such that 𝑎^2 + 𝑏^2 = 2 𝑘. 𝑎 + 𝑏 2 = 𝑎^2 + 2𝑎𝑏 + 𝑏^2 = 2(𝑘 + 𝑎𝑏). Since 𝑎 + 𝑏 2 can be represented as 2 𝑚 for some integer 𝑚 = 𝑘 + 𝑎𝑏, it is even. This gives 𝑎^2 + 2 𝑎𝑏 + 𝑏^2 = 2𝑚. 𝑎^2 + 𝑏^2 = 2(𝑚 − 𝑎𝑏). Since 𝑎^2 + 𝑏^2 = 2𝑛, for 𝑛 = (𝑚 − 𝑎𝑏), 𝑎^2 + 𝑏^2 is even.

This proof suffers from begging the question. It assumes the conclusion and then uses that to prove the conclusion.

c. ∀𝑎, 𝑏 ∈ ℤ if 𝑎 + 𝑏 is even then 𝑎 and 𝑏 are even.

Suppose that 𝑎 + 𝑏 is not even. Then 𝑎 + 𝑏 = 2𝑘 + 1 for some integer 𝑘. If 𝑎 is even then 𝑎 = 2𝑚 for some integer 𝑚. As, 𝑎 + 𝑏 = 2𝑘 + 1, 𝑏 = 2(𝑘 − 𝑚) + 1, so 𝑏 is odd. Similarly, if 𝑏 is even then 𝑏 = 2𝑛 for some integer 𝑛. As, 𝑎 + 𝑏 = 2 𝑘 + 1, 𝑎 = 2(𝑘 − 𝑛) + 1, so 𝑎 is odd. If both 𝑎 and 𝑏 are even, then 𝑎 = 2𝑚, and 𝑏 = 2𝑛 for some integers 𝑚 and 𝑛. This gives 𝑎 + 𝑏 = 2(𝑚 + 𝑛), so 𝑎 + 𝑏 is even. This is a contradiction, so 𝑎 and 𝑏 cannot both be even. Trivially, if both 𝑎 and 𝑏 are odd, one of them is odd. If 𝑎 + 𝑏 is not even, then 𝑎 or 𝑏 is not even. Therefore, if 𝑎 + 𝑏 is even then 𝑎 and 𝑏 are even.

This proof attempts to prove by inverse. It proves ~𝑃(𝑥, 𝑦) → ~𝑄(𝑥, 𝑦), but this does not prove 𝑃(𝑥, 𝑦) → 𝑄 𝑥, 𝑦 as 𝑃(𝑥, 𝑦) → 𝑄(𝑥, 𝑦) ≢ ~𝑃(𝑥, 𝑦) → ~𝑄(𝑥, 𝑦).

Problem 5. (25 points) Density of the Rationals: Prove that for any two rational numbers 𝑟 and 𝑠, if 𝑟 < 𝑠 there is another rational number 𝑡, such that 𝑟 < 𝑡 < 𝑠. (Hint: Consider the average of 𝑟 and 𝑠 .)

Since 𝑟 and 𝑠 are rational, 𝑟 = 𝑎 𝑏 =^

𝑎𝑑 𝑏𝑑 and^ 𝑠^ =^

𝑐 𝑑 =^

𝑏𝑐 𝑏𝑑 for some integers^ 𝑎,^ 𝑏,^ 𝑐, and^ 𝑑. Without loss of generality, assume 𝑏𝑑 is positive, as we could always rewrite 𝑟 and 𝑠 so that 𝑏 and 𝑑 and positive (𝑎 and 𝑐 can be made negative). Since 𝑟 = 𝑎𝑑 𝑏𝑑 <^ 𝑠^ =^

𝑏𝑐 𝑏𝑑 , 𝑎𝑑 < 𝑏𝑐. We can divide both sides by 𝑏𝑑 without affecting the inequality because 𝑏𝑑 is positive. 𝑎𝑑 + 𝑏𝑐 < 2𝑏𝑐.

1 2 𝑎𝑑^ +^ 𝑏𝑐^ <^ 𝑏𝑐.^ Similarly,^2 𝑎𝑑^ <^ 𝑏𝑐^ +^ 𝑎𝑑.^ 𝑎𝑑^ <^

1 2 (𝑏𝑐^ + 𝑎𝑑). Consider a rational number 𝑡 =

1 2 (𝑎𝑑^ +𝑏𝑐^ ) 𝑏𝑑. Since^

1 2 𝑎𝑑^ +^ 𝑏𝑐^ <^ 𝑏𝑐,

1 2 𝑎𝑑^ +𝑏𝑐 𝑏𝑑 <^

𝑏𝑐 𝑏𝑑 ,