Docsity

5 Problems Test 2 - Constructing Proofs | CS 1050, Exams of Computer Science

Toggle sidebar
bg1
Test 2 โ€“ CS 1050C, Spring 2006
Grading: 25 points each minus half the lowest score for a problem (max-
imum: 100 + 12.5 extra credit)
1. Assume that the last decimal digit of a natural number nis 9 and kis
any natural number. Prove that the last decimal digit of nkis either
9 or 1.
2. Prove that gcd(k2+ 1, k + 1) is either 1 or 2 for any integer k.
3. Let aand bbe integers and consider the function f:Zโ†’Z(Zis the set
of all integers) defined by f(x) = ax +b. Prove that:
(a0) If fis one-to-one then a6= 0
(a1) If a6= 0 then fis one-to-one
(b0) If fis onto then a= 1 or a=โˆ’1
(b1) If a= 1 or a=โˆ’1 then fis onto
4. Find integers xand ysuch that 15x+ 22y= 1 if they exist. Otherwise,
prove they donโ€™t exist.
5. Assume that f:Rโ†’R(Ris the set of all real numbers) is a function
such that f(f(f(x))) = โˆ’xfor any xโˆˆR. Prove that fis a bijection.
1

Partial preview of the text

Download 5 Problems Test 2 - Constructing Proofs | CS 1050 and more Exams Computer Science in PDF only on Docsity!

Test 2 โ€“ CS 1050C, Spring 2006

Grading: 25 points each minus half the lowest score for a problem (max- imum: 100 + 12.5 extra credit)

  1. Assume that the last decimal digit of a natural number n is 9 and k is any natural number. Prove that the last decimal digit of nk^ is either 9 or 1.
  2. Prove that gcd(k^2 + 1, k + 1) is either 1 or 2 for any integer k.
  3. Let a and b be integers and consider the function f : Z โ†’ Z (Z is the set of all integers) defined by f (x) = ax + b. Prove that:

(a0) If f is one-to-one then a 6 = 0 (a1) If a 6 = 0 then f is one-to-one (b0) If f is onto then a = 1 or a = โˆ’ 1 (b1) If a = 1 or a = โˆ’1 then f is onto

  1. Find integers x and y such that 15x + 22y = 1 if they exist. Otherwise, prove they donโ€™t exist.
  2. Assume that f : R โ†’ R (R is the set of all real numbers) is a function such that f (f (f (x))) = โˆ’x for any x โˆˆ R. Prove that f is a bijection.