Name: Mathematics 1C03

Similar documents
8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

Solutions to Practice Final 3

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

CHAPTER 3. Congruences. Congruence: definitions and properties

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

University of Regina Department of Mathematics & Statistics Final Examination (April 21, 2009)

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Math 109 September 1, 2016

Fall 2014 CMSC250/250H Midterm II

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

Math 109 HW 9 Solutions

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

Candidates must show on each answer book the type of calculator used. Only calculators permitted under UEA Regulations may be used.

Math.3336: Discrete Mathematics. Mathematical Induction

Chapter 1 : The language of mathematics.

Math 430 Exam 2, Fall 2008

MATH 2200 Final Review

Discrete Mathematics and Probability Theory Summer 2015 Chung-Wei Lin Midterm 1

Math 430 Exam 1, Fall 2006

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

Discrete Mathematics for CS Fall 2003 Wagner MT2 Soln

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Prob. 1 Prob. 2 Prob. 3 Total

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Homework #2 solutions Due: June 15, 2012

MATH 2200 Final LC Review

A Readable Introduction to Real Mathematics

The security of RSA (part 1) The security of RSA (part 1)

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

2k n. k=0. 3x 2 7 (mod 11) 5 4x 1 (mod 9) 2 r r +1 = r (2 r )

Practice Midterm Exam Solutions

MATH 145 Algebra, Solutions to Assignment 4

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1 (Version B)

Name (print): Question 4. exercise 1.24 (compute the union, then the intersection of two sets)

1 Take-home exam and final exam study guide

Math 223, Spring 2009 Final Exam Solutions

Writing Assignment 2 Student Sample Questions

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

MTH 299 In Class and Recitation Problems SUMMER 2016

Number Theory Homework.

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Number Theory. Modular Arithmetic

Section 0. Sets and Relations

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs

Name: Student ID: Instructions:

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

Number Theory and Group Theoryfor Public-Key Cryptography

MATH 158 FINAL EXAM 20 DECEMBER 2016

Math 19 Practice Exam 2B, Winter 2011

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

CPSC 467b: Cryptography and Computer Security

CPSC 467b: Cryptography and Computer Security

Practice Midterm 1 UCLA: Math 61, Winter 2018

Mathematical Foundations of Public-Key Cryptography

Basic elements of number theory

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Midterm #2 Solution

Signature: (In Ink) UNIVERSITY OF MANITOBA TEST 1 SOLUTIONS COURSE: MATH 2170 DATE & TIME: February 11, 2019, 16:30 17:15

Basic elements of number theory

MAS114: Exercises. October 26, 2018

HOMEWORK 8 SOLUTIONS MATH 4753

Math 430 Final Exam, Fall 2008

MATH FINAL EXAM REVIEW HINTS

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Mathematics 222a Quiz 2 CODE 111 November 21, 2002

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

Solutions to Practice Final

Math 261 Spring 2014 Final Exam May 5, 2014

Midterm 2. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

Math 51 Midterm 1 July 6, 2016

Congruence Classes. Number Theory Essentials. Modular Arithmetic Systems

About This Document. MTH299 - Examples Weeks 1-6; updated on January 5, 2018

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

University of New Mexico Department of Computer Science. Midterm Examination. CS 261 Mathematical Foundations of Computer Science Spring, 2010

Senior Math Circles Cryptography and Number Theory Week 2

MATH 13 FINAL EXAM SOLUTIONS

MATH 1B03 Day Class Final Exam Bradd Hart, Dec. 13, 2013

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false.

ECE596C: Handout #11

Linear Congruences. The equation ax = b for a, b R is uniquely solvable if a 0: x = b/a. Want to extend to the linear congruence:

Review Sheet for the Final Exam of MATH Fall 2009

Part IA. Numbers and Sets. Year

Proofs. Chapter 2 P P Q Q

CPSC 467: Cryptography and Computer Security

Math 230 Final Exam, Spring 2009

Theory of RSA. Hiroshi Toyoizumi 1. December 8,

ASSIGNMENT Use mathematical induction to show that the sum of the cubes of three consecutive non-negative integers is divisible by 9.

MATH 363: Discrete Mathematics

1 Recommended Reading 1. 2 Public Key/Private Key Cryptography Overview RSA Algorithm... 2

EECS 70 Discrete Mathematics and Probability Theory Fall 2015 Walrand/Rao Final

Contribution of Problems

Part IA Numbers and Sets

NOTE: You have 2 hours, please plan your time. Problems are not ordered by difficulty.

Elementary Properties of the Integers

Name: There are 8 questions on 13 pages, including this cover.

Discrete Math I Exam II (2/9/12) Page 1

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

CS2800 Questions selected for fall 2017

Transcription:

Name: Student ID Number: Mathematics 1C03 Day Class Instructor: M. Harada Duration: 2.5 hours April 2018 McMaster University PRACTICE Final Examination This is a PRACTICE final exam. The actual final exam will look almost exactly like this one. In particular, the number of problems on this practice exam is the same as what will be on the real exam. THIS EXAM IS PRINTED DOUBLE-SIDED AND INCLUDES 20 PAGES AND 12 QUESTIONS. YOU ARE RESPONSIBLE FOR ENSURING THAT YOUR COPY OF THE PAPER IS COMPLETE. BRING ANY DISCREPANCIES TO THE ATTENTION OF THE INVIGILATOR. Instructions: You are not permitted to use books, notes, or other course aids, including calculators. The test contains 12 questions. YOU ARE TO CHOOSE 10 OUT OF THE 12 QUESTIONS. The exam is out of 100 marks total. Pages 15 to 18 are blank for additional rough work. For full credit you must show all your work and justify your statements. You are to select 10 out of 12 of the problems. You MUST CROSS OUT, with a clear X, the boxes for the questions which you do NOT wish to have marked, in the chart below. Problem Marks Problem Marks 1 7 2 8 3 9 4 10 5 11 6 12 TOTAL Page 1 of 18 continued...

Page 2 of 18 continued... Problem 1. [10 marks total] True or False. Decide whether the statement is True or False and give a one-sentence justification of your answer. There is some space for scratch work, but write your answer in the space provided. a. (2 marks) For integers a and b, if 2 a and 2 b, then 4 ab. (Circle one) True False Justification: b. (2 marks) For an equivalence relation R on a set S, if two equivalence classes [a] and [b] satisfy [a] [b], then [a] = [b]. (Circle one) True False Justification: c. (2 marks) The statement P Q is logically equivalent to (P = Q) AND NOT Q. (Circle one) True False Justification: d. (2 marks) If S is the set {1, 2, 3}, then {2, 3} S. (Circle one) True False Justification: e. (2 marks) If S is the set {1, 2, 3}, then {1} S. (Circle one) True False Justification: Page 2 of 18 continued...

Page 3 of 18 continued... Problem 2. [10 marks total] a. (1 mark) Fill in the blank. A Diophantine equation ax + by = c has a solution iff c. b. (1 mark) Fill in the blank. An integer x is invertible modulo m iff x and m are. c. (1 mark) Fill in the blank. The of P = Q is Q = P. d. (1 mark) Fill in the blank. A function f : X Y is if distinct elements x 1 and x 2 of X must be mapped to distinct elements f(x 1 ) and f(x 2 ) of Y. e. (2 marks) Let Z 5 be the set of integers modulo 5. Using mathematical notation, give a precise description of the congruence class of 3 in Z 5 as a subset of Z. f. (2 marks) Let m > 0 be a positive integer and a, x, y be integers. Under what circumstances does ax ay modulo m imply that x y modulo m? g. (2 marks) What is the difference between the principle of mathematical induction (POMI) and the principle of strong induction (POSI)? (You do not have to give the full statment of POMI and POSI. Just say what the difference is.) Page 3 of 18 continued...

Page 4 of 18 continued... Problem 3. [10 marks total] a. (5 marks) Use the Euclidean algorithm to find gcd (43, 17). Show your work. Page 4 of 18 continued...

Page 5 of 18 continued... Problem 3, cont d. b. (5 marks) Find all solutions to the Diophantine equation: 43x+17y = gcd(43, 17). Show your work and justify your answer. Page 5 of 18 continued...

Page 6 of 18 continued... Problem 4. [10 marks total] a. (5 marks) Find all solutions to the simultaneous linear congruences: x 6 mod 7 and x 9 mod 12. Show your work. b. (5 marks) Give an example of a relation on the set X = {1, 2, 3} which is reflexive and transitive, but not symmetric. Justify your answer. Page 6 of 18 continued...

Page 7 of 18 continued... Problem 5. [10 marks total] a. (5 marks) Write the contrapositive and the negation of the following statement: If x Z such that x 2 = y then y is a positive integer. b. (5 marks) Give an example of two infinite sets X and Y of the same cardinality and a function f : X Y which is not a bijection. Page 7 of 18 continued...

Page 8 of 18 continued... Problem 6. [10 marks] Let a, b, c 1, c 2 Z. Suppose that the Diophantine equations ax + by = c 1 and ax + by = c 2 have integer solutions (x 1, y 1 ) and (x 2, y 2 ) respectively. Prove that ax + by = kc 1 + lc 2 also has an integer solution (x, y) for all k, l Z. Page 8 of 18 continued...

Page 9 of 18 continued... Problem 7. [10 marks] Does x 3 a modulo p always have a solution for every value of a and any prime p? Fully justify your answer. Page 9 of 18 continued...

Page 10 of 18 continued... Problem 8. [10 marks] Let f 1, f 2, f 3,..., be the Fibonacci sequence, which is the sequence of integers defined (inductively!) by: f 1 = 1, f 2 = 1, and for integers n with n 3, we define f n = f n 1 + f n 2. Prove, by using the principle of mathematical induction, that gcd(f n, f n 1 ) = 1, n Z, n 2. Page 10 of 18 continued...

Page 11 of 18 continued... Problem 9. [10 marks] Suppose that X and Y are sets and f : X Y is injective. Prove: for any set T and any functions g : T X and h : T X, f g = f h implies that g = h. Page 11 of 18 continued...

Page 12 of 18 continued... Problem 10. [10 marks] For any set X, let P(X) denote the set of all subsets (including and X) of the set X. If # X = n, a finite number, find a formula for # P(X). Prove your answer. (Hint: try some examples with sets of small size in order to make an educated guess for what the formula should be. Then see if you can prove your guess.) Page 12 of 18 continued...

Page 13 of 18 continued... Problem 11. [10 marks] If φ(m) is the Euler φ-function, prove that φ(m) = φ(2m) if and only if m is odd. Page 13 of 18 continued...

Page 14 of 18 continued... Problem 12. [10 marks] Let p and q be distinct odd primes and let n = pq. Let r be the least common multiple of p 1 and q 1, i.e., the smallest positive integer which is a multiple of both p 1 and q 1. Let e be an encryption exponent for the RSA cryptosystem based on n. This means that encryption is given by m m e mod n. Show that any d with de 1 mod r can be used as a decryption exponent. (Hint 1: use the Chinese Remainder Theorem. Hint 2: this problem is harder than the others. Generous partial marks will be awarded, so even if you do not have a complete solution, you should write down your thoughts.) END OF PRACTICE EXAM QUESTIONS Page 14 of 18 continued...

Extra page for rough work. Page 15 of 18 continued... DO NOT DETACH! Page 15 of 18 continued...

Extra page for rough work. Page 16 of 18 continued... DO NOT DETACH! Page 16 of 18 continued...

Extra page for rough work. Page 17 of 18 continued... DO NOT DETACH! Page 17 of 18 continued...

Page 18 of 18 Extra page for rough work. DO NOT DETACH! THE END Page 18 of 18