

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Fall 2009 CMSC 250: Homework 5 Solutions Perlis
Due at the start of discussion section Wednesday, October 7, 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 two real numbers 𝑟 and 𝑠, if 𝑟 < 𝑠 there is a real number 𝑥 such that 𝑟 < 𝑥 < 𝑠. TRUE. Since ever rational number is a real number. b. For any real number 𝑥, 𝑥 − 𝑥 < 1. TRUE. 𝑥 ≤ 𝑥 ≤ 𝑥. 0 ≤ 𝑥 − 𝑥 ≤ 𝑥 − 𝑥. Since 𝑥 − 𝑥 are at most 1 apart, c. For any positive real number 𝑥, 𝑥 𝑥 > 0. TRUE. If 𝑥 > 0, then 𝑥 > 0. The product of two positive numbers is positive. d. For any real numbers 𝑥 and 𝑦, if 𝑥 − 𝑦 = 0, then 𝑥 − 𝑦 = 0. FALSE. Let 𝑥 = 1.5 and 𝑦 = 0.6. 1.5 − .6 = 0.9 = 0, but 1.5 − 0.6 = 1 − 0 = 1 e. For any real numbers 𝑥 and 𝑦, if 𝑥𝑦 = 0, 𝑥 > 0 and 𝑦 > 0, then 𝑥 < 𝑦. TRUE. To have 𝑥𝑦 = 0, 0 ≤ 𝑥𝑦 < 1 must be true. Since 𝑥 and 𝑦 are positive, 0 ≤ 𝑥 < 𝑦. f. For any integer 𝑎 and real number 𝑥, if 𝑎 divides 𝑥 , then 𝑎 divides 𝑎𝑥. FALSE. Let 𝑎 = 2 and 𝑥 = 4.9. 4.9 = 4, 2 ∙ 4.9 = 9.8 = 9. 2|4, but not 2|9. Problem 4. (20 points) Prove that for any integers 𝑚 > 1 and 𝑛 > 1, 𝑚𝑛 − 1 is not divisible by either 𝑚 or 𝑛. Proof by contradiction: Suppose that 𝑚𝑛 − 1 is divisible by 𝑛 or 𝑚. Then either 𝑚|𝑚𝑛 − 1 or 𝑛|𝑚𝑛 − 1. Without loss of generality, suppose that it is 𝑚 that divides
𝑚𝑛 − 1. There is some integer 𝑘 such that 𝑚𝑘 = 𝑚𝑛 − 1. This gives 𝑘 = 𝑛 − (^) 𝑚^1. Since 𝑚 is greater than 1, (^) 𝑚^1 is not an integer. Therefore, 𝑘 is not an integer. This is a contradiction, since 𝑘 is an integer. Therefore, the original theorem is correct. Problem 5. (24 points) a. Prove 5|𝑛^2 → 5|𝑛. Use the unique factorization theorem. By the unique factorization theorem, n has a unique prime factorization 𝑛 = 𝑝 1 𝑎^1 𝑝 2 𝑎^2 … 𝑝𝑘𝑎𝑘^ , where 𝑝 1 … 𝑝𝑘 are different prime numbers and 𝑎 1 … 𝑎𝑘 are integers. 𝑛^2 = 𝑝 12 𝑎^1 𝑝 22 𝑎^2 … 𝑝𝑘^2 𝑎𝑘^. Since 𝑛^2 prime factorization must be unique and 𝑛^2 = 𝑝 12 𝑎^1 𝑝 22 𝑎^2 … 𝑝𝑘^2 𝑎𝑘^ has the form of a prime factorization, it must be that prime factorization. If 5|𝑛^2 , as 5 is prime, one of the 𝑝 1 … 𝑝𝑘 , must be 5. Suppose that 𝑝𝑖 = 5. That 𝑝𝑖 also occurs in the prime factorization of 𝑛. Therefore, 5 divides 𝑛. b. How would you modify your proof in (a) to prove 17|𝑛^2 → 17|𝑛. (Describe the modifications, but do not actually write out the proof.) Substitute 17 for 5. Problem 6. (24 points) a. Prove 5|𝑛^2 → 5|𝑛. Do not use the unique factorization theorem. Proof by contrapositive: Suppose that 5 does not divide 𝑛. There are 4 cases: i. 𝑛 ≡ 1 𝑚𝑜𝑑 5. 𝑛^2 ≡ 12 ≡ 1 ≢ 0. 5 does not divide 𝑛. ii. 𝑛 ≡ 2 (𝑚𝑜𝑑 5). 𝑛^2 ≡ 22 ≡ 4 ≢ 0. 5 does not divide 𝑛. iii. 𝑛 ≡ 3 (𝑚𝑜𝑑 5). 𝑛^2 ≡ 32 ≡ 9 ≡ 4 ≢ 0. 5 does not divide 𝑛. iv. 𝑛 ≡ 4 (𝑚𝑜𝑑 5). 𝑛^2 ≡ 42 ≡ 16 ≡ 4 ≢ 0. 5 does not divide 𝑛. Since in none of these cases 5 divides 𝑛^2 , if 5 does not divide 𝑛, 5 does not divide 𝑛^2. Therefore, the contrapositive, if 5 divides 𝑛^2 , 5 divides 𝑛 is also true. b. How would you modify your proof in (a) to prove 17|𝑛^2 → 17|𝑛. (Describe the modifications, but do not actually write out the proof.) Write out the cases for all 16 ways that 17 does not divide 𝑛 instead of the 4 cases 5 does not divide 𝑛.