Homework 3: Honor Code Pledge: I Certify That I Am Aware of The Honor Code in Effect in This Course and
Homework 3: Honor Code Pledge: I Certify That I Am Aware of The Honor Code in Effect in This Course and
Homework 3: Honor Code Pledge: I Certify That I Am Aware of The Honor Code in Effect in This Course and
Name______________________________ PID______________________________
Honor Code Pledge: I certify that I am aware of the Honor Code in effect in this course and
observed the Honor Code in the completion of this homework.
Signature___________________________
Determine whether each of the following statements 1-4 is true or false. If it is true, prove it from
the definitions (nonetheless, the proof can be either direct or indirect); if it is false, disprove it
by a counterexample.
Prove the following statement. You can use the Quotient-Remainder Theorem. That is, assume
Theorem 4.4.1 on pp. 180 in the textbook is already proven.
(20’) 5. For all integer n, if 3 | n2 then 3 | n.
(Hint: By contradiction and by division into cases while deriving the contradiction.)
Solution:
Proof: we prove this statement by contradiction. We suppose the statement is false. That is, we
suppose there exists an integer n such that 3 | n2 and 3 ∤ n. By the Quotient-Remainder Theorem,
n=3k for some integer k, or n=3k+1 for some integer k, or n=3k+2 for some integer k.
Because 3 ∤ n, n≠3k for any integer k. Therefore, n=3k+1 for some integer k, or n=3k+2 for some
integer k.
Case 1: n=3k+1 for some integer k.
In this case, n2=(3k+1)2 = 9k2+6k+1 = 3(3k2+2k) + 1.
Therefore, 3 ∤ n2 (because by the Quotient-Remainder Theorem, it is impossible that both
n2=3r for some integer r and n2=3s+1 for some integer s).
Case 2: n=3k+2 for some integer k.
In this case, n2=(3k+2)2 = 9k2+12k+4 = 3(3k2+4k+1) + 1.
Therefore, 3 ∤ n2
Combining Case 1 and Case 2, we can conclude that 3 ∤ n2. However, we supposed 3 | n2. Therefore,
3 ∤ n2 and 3 | n2, which is a contradiction. Thus, the supposition cannot be true, and the original
statement is true.
Prove the following statement. You can use statement 5 above. That is, assume you have correctly
proven the statement above.
(20’) 6. √3 is irrational.
Solution:
Proof: we prove this statement by contradiction. We suppose the statement is false. That is, we
suppose √3 is rational. By the definition of rational numbers, √3 = 𝑎/𝑏 for some integers a, b
where a, b have no common factor (by dividing a and b by any common factors if necessary).
Squaring both sides of √3 = 𝑎/𝑏, we have 3 = 𝑎2 /𝑏 2, i.e., 3𝑏 2 = 𝑎2 . Therefore, 3 | 𝑎2 .
By statement 5 above, we have 3 | a. (*)
Therefore, a = 3k for some integer k. Substituting in the equation 3𝑏 2 = 𝑎2 , we have 3𝑏 2 = 9𝑘 2 ,
which is 𝑏 2 = 3𝑘 2. Therefore, 3 | 𝑏 2 .
By statement 5 above, we have 3 | b. (**)
By (*) and (**), we have 3 | a and 3 | b. That is, a and b have a common factor of 3. This contradicts
the supposition that a and b have no common factor. Thus, the supposition cannot be true, and the
original statement is true.
2/2