PLEASE DO ANY 6 of the following 8 problems. Work carefully

Similar documents
PLEASE DO ANY 6 of the following 8 problems. Work carefully

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Basic Proof Examples

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

Math 261 Spring 2014 Final Exam May 5, 2014

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

We want to show P (n) is true for all integers

Name: Mathematics 1C03

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

Midterm Exam Solution

Math 4400 First Midterm Examination September 21, 2012 ANSWER KEY. Please indicate your reasoning and show all work on this exam paper.

M381 Number Theory 2004 Page 1

Chapter 3 Basic Number Theory

The running time of Euclid s algorithm

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Final exam (practice) UCLA: Math 31B, Spring 2017

1 Overview and revision

Ma/CS 6a Class 2: Congruences

Math.3336: Discrete Mathematics. Mathematical Induction

The Chinese Remainder Theorem

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

MATH 2200 Final Review

201-1A5-MT - Mathematics Summer 2015 HOMEWORK 2 Deadline : Sunday, August 30, 2015 at 12 :30.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

3 The fundamentals: Algorithms, the integers, and matrices

Solutions to Practice Final

Chapter 5.1: Induction

Ma/CS 6a Class 2: Congruences

Attempt QUESTIONS 1 and 2, and THREE other questions. penalised if you attempt additional questions.

Notes on Systems of Linear Congruences

Discrete Mathematics for CS Fall 2003 Wagner MT2 Soln

Complete Induction and the Well- Ordering Principle

then the hard copy will not be correct whenever your instructor modifies the assignments.

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

Exam 3. Math Spring 2015 April 8, 2015 Name: } {{ } (from xkcd) Read all of the following information before starting the exam:

Wollongong College Australia

Solutions to Problem Set 3 - Fall 2008 Due Tuesday, Sep. 30 at 1:00

Number Theory A focused introduction

NORTHWESTERN UNIVERSITY Thrusday, Oct 6th, 2011 ANSWERS FALL 2011 NU PUTNAM SELECTION TEST

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

MATH 501: Discrete Mathematics

Part IA Numbers and Sets

Preparing for the CS 173 (A) Fall 2018 Midterm 1

4 Number Theory and Cryptography

Part IA Numbers and Sets

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

Contribution of Problems

CS280, Spring 2004: Prelim Solutions

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Applied Cryptography and Computer Security CSE 664 Spring 2017

Answers to Final Exam

Notes on Primitive Roots Dan Klain

a the relation arb is defined if and only if = 2 k, k

9 Modular Exponentiation and Square-Roots

Solutions to Assignment 1

Wilson s Theorem and Fermat s Little Theorem

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Fall 2017 Test II review problems

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

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Number Theory and Group Theoryfor Public-Key Cryptography

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

UNIVERSITY OF MICHIGAN UNDERGRADUATE MATH COMPETITION 27 MARCH 28, 2010

Covering Subsets of the Integers and a Result on Digits of Fibonacci Numbers

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

The Chinese Remainder Theorem

CMPSCI 250: Introduction to Computation. Lecture #15: The Fundamental Theorem of Arithmetic David Mix Barrington 24 February 2014

Informatics 1 - Computation & Logic: Tutorial 3

#G03 INTEGERS 10 (2010), MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS

MASTERS EXAMINATION IN MATHEMATICS SOLUTIONS

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

MATH 145 Algebra, Solutions to Assignment 4

Final exam (practice) UCLA: Math 31B, Spring 2017

The number of ways to choose r elements (without replacement) from an n-element set is. = r r!(n r)!.

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form.

CS280, Spring 2004: Final

Math 109 HW 9 Solutions

PMA225 Practice Exam questions and solutions Victor P. Snaith

Homework #2 solutions Due: June 15, 2012

Solutions to 2015 Entrance Examination for BSc Programmes at CMI. Part A Solutions

Homework 4, 5, 6 Solutions. > 0, and so a n 0 = n + 1 n = ( n+1 n)( n+1+ n) 1 if n is odd 1/n if n is even diverges.

Introduction to Number Theory

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Algebraic Structures Exam File Fall 2013 Exam #1

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

School of Mathematics

STEP Support Programme. Hints and Partial Solutions for Assignment 17

Simplification by Truth Table and without Truth Table

PRINCIPLE OF MATHEMATICAL INDUCTION

Number Theory and Algebra: A Brief Introduction

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

Beautiful Mathematics

Recitation 7: Existence Proofs and Mathematical Induction

Math 3000 Section 003 Intro to Abstract Math Homework 6

Part IA. Numbers and Sets. Year

SQUARE PATTERNS AND INFINITUDE OF PRIMES

Transcription:

Ma2201/CS2022 Discrete Mathematics D Term, 2016 FINAL EXAM PRINT NAME NEATLY: SIGN : PLEASE DO ANY 6 of the following 8 problems. Work carefully and neatly. 1. (5 pts) A tech company currently has 5 programmers, 3 engineers, 1 accountant, and 12 administrators. A programmer hiring committee requires two programmers, two engineers and four administrators. An engineering hiring committee requires three engineers, one programmer, and four administrators. An administrator hiring committee consists only administrators. For the following, an algebraic expression is sufficient. a) How many different administrator hiring committees can be formed? : Every subset but the empty set could be a committee, so 2 12 1 b) How many different programmer hiring committees can be formed? ( 3 2 : Three independent choices of two of five programmers ( 5 ) ( 2), two of three engineers and four of twelve administrators, 12 ) ( 4, so 5 ) 2 by the multiplicative principle. )( 3 )( 12 2 4 c) Suppose the company needs to hire one engineer and one programmer and doesn t want anyone to be a member of both committees. How many ways can that be done? : 0, there aren t enough engineers. 1 of 6

2. (5 pts) Suppose a n is a sequence of numbers with a 0 = 2, a 1 = 10, and the remaining elements defined recursively by a) Find a formula for a n. a n+1 = 5a n 6a n 1 : It is a linear recursion, so we look for a solution of the form Ar n, so Ar n+1 = 5Ar n 6Ar n 1 gives the characteristic equation 0 = r 2 5r + 6 = (r 2)(r 3), with solution A2 n + B3 n. a 0 = 2 gives A + B = 2 and a 1 = 10 gives 2A + 3B = 10, so B = 6 and A = 4. So a n = ( 4)2 n + 6 3 n = 2 n+2 + 2 3 n+1 a n b) Compute lim n e n : lim n 2 n = 0 and lim en n 3 n =, so the limit is. en 2 of 6

3. (5 pts) Let A and B be two sets. Use the double inclusion method to show A B = A B. : We first show A B A B. Let x A B, so x A B, so either x A or x B. That is to say, x A or x B, hence x A B as required. We next show A B A B. Let x A B, so x A or x B. If x A, then x A, so x A B, so x A B. If x B, then x B, so x A B, so x A B. So in either case x A B, as required. Since A B A B and A B A B, the result is true. 4. (5 pts) Prove by induction that n 2 + 7n 7 is odd for all n 0. : Base Case: n = 0. The statement is that 0 2 + 7 0 7 = 7 is odd, which is true. Induction Step: Assume the Induction Hypothesis, that n 2 + 7n 7 is odd. So n 2 + 7n 7 = 2k + 1 for some k. Consider (n + 1) 2 + 7(n + 1) 7. We have (n + 1) 2 + 7(n + 1) 7 = n 2 + 2n + 1 + 7n + 7 7 = (n 2 + 7n 7) + 2n + 8 = 2k + 1 + 2n + 8 by the induction hypothesis, s (n + 1) 2 + 7(n + 1) 7 = 2(k + n + 4) + 1 and (n + 1) 2 + 7(n + 1) 7 is odd, as required. Since the base case is true and the induction step is satisfied, the statement is true for all n 0 by induction. 3 of 6

5. (5 pts) Let p, q and r be statements. a) Write (p q) r in conjunctive normal form. : Using the definition of, (p q) r = r (p q) = r (q p) = r ( q p) which is in disjunctive normal form, which is the answer to part b). Using the distributive law we have r ( q p) = (r q) (r p) which is in conjunctive normal form. b) Write (p q) r in disjunctive normal form. : r ( q p) 6. (5 pts) Let A and B be finite sets, and suppose the A B = 100 and A B = 50. a) What is the largest value that A can have? What can you say about B in this case? : A cannot be larger than A B, so the largest A can be is 100, in which case B is a subset of A. b) What is the smallest value that A can have? What can you say about B in this case? : A cannot be smaller than than A B, so the smallest A can be is 50, in which case A is a subset of B. c) How many one to one functions are there from A B to A B? : We have a formula for this. To reason it out, there are 50 choices to be made from the 100 elements of A B, with each choice decreasing the number of options for the next choice by 1, so 100(99)(98) (51) = (100!)/(50!) 4 of 6

7. (5 pts) Suppose x 6mod = 19 and x 7 mod 29. Find x. : This is the Chinese Remainder Theorem: We use the Euclidean Algorithm to find λ and µ so that λ 19 + µ 29 = 1. 29 = 1 19 + 10 : 2 19 = 1 10 + 9 : 1 10 = 1 9 + 1 : 1 Adding gives (2)(29) + ( 3)(19) = 1. (Checking 58 57 = 1) So (6)(2)(29) is 6 modulo 19 and 0 modulo 29. Similarly (7)( 3)(29) is 7 modulo 29 and 0 modulo 19. Adding them gives the result: (6)(2)(29) + (7)( 3)(19) = 348 399 = 51. To make it positive we add (19)(29) = 551 and get x = 500. 8. (5 pts) Compute 2 2222222 mod 101 : By Fermat s Little Theorem, 2 100 1 mod 101, since 101 is prime. So 2 2222222 = 2 2222200 2 22 = (2 100 ) 22222 2 22 2 22 mod 101 For 2 22 we use fast multiplication: 2 22 = 4 11 = 4 4 10 = 4 16 5 = 4 16 16 4 = 4 16 (16 2 ) 2 so we still have to do 4 stupid multiplications. 16 2 = 256 = 54 mod 101 54 2 = 2916 2310 88 mod 101 So 4 16 (16 2 ) 2 4 16 88 64 88 5632 77 mod 101 5 of 6

SCRAP PAPER 6 of 6