

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!


**CS1050 HW 3 Answer Key
5) [20 points] Prove or disprove that " n Œ Z ≥ 0, 2n^ + 1 is prime. If we can find at least one counterexample, then the statement is false. A counterexample is 2^3 + 1 = 9 = 3*3, which is composite. 6) [40 points] Prove that the square of an integer not divisible by 5 leaves a remainder of 1 or 4 when divided by 5. We can use a proof by cases, considering the cases that correspond to the possible remainders when an integer is divided by 5. This yields 5 cases for an integer n. n = 5k, n = 5k +1, n = 5k+2, n = 5k+3, n = 5k+4, where k ŒZ. To complete the proof, we will look at each case individually. Case 1: n = 5k For this case, n is divisible by 5 and is not considered. Case 2: n = 5k + 1 For some integer k, n = 5k + 1. It follows that n 2 = (5k + 1) 2 = 25k 2