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

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

Homework #2 solutions Due: June 15, 2012

Discrete Mathematics GCD, LCM, RSA Algorithm

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

Fall 2017 Test II review problems

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

MATH 215 Final. M4. For all a, b in Z, a b = b a.

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

Ch 4.2 Divisibility Properties

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

Integers and Division

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Math 109 HW 9 Solutions

MAT 243 Test 2 SOLUTIONS, FORM A

Notes on Systems of Linear Congruences

Chapter 3 Basic Number Theory

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

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

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

M381 Number Theory 2004 Page 1

3 The fundamentals: Algorithms, the integers, and matrices

Numbers and their divisors

4 Number Theory and Cryptography

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

1 Overview and revision

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

NOTES ON SIMPLE NUMBER THEORY

Elementary Properties of the Integers

Simple Math: Cryptography

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

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

A number that can be written as, where p and q are integers and q Number.

CS483 Design and Analysis of Algorithms

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Chapter 5. Number Theory. 5.1 Base b representations

CPSC 467b: Cryptography and Computer Security

Chapter 1 : The language of mathematics.

CS2800 Questions selected for fall 2017

Definition For a set F, a polynomial over F with variable x is of the form

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

Number Theory. Introduction

2 Elementary number theory

Math 230 Final Exam, Spring 2009

Ma/CS 6a Class 2: Congruences

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

The Euclidean Algorithm and Multiplicative Inverses

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

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

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

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Arithmetic. Integers: Any positive or negative whole number including zero

Contribution of Problems

Mathematical Foundations of Public-Key Cryptography

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

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

Part V. Chapter 19. Congruence of integers

Senior Math Circles Cryptography and Number Theory Week 2

Discrete Mathematics for CS Fall 2003 Wagner MT2 Soln

A Readable Introduction to Real Mathematics

Exam 2 Review Chapters 4-5

CSE 20 DISCRETE MATH. Winter

LP03 Chapter 5. A prime number is a natural number greater that 1 that has only itself and 1 as factors. 2, 3, 5, 7, 11, 13, 17, 19, 23, 29,

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

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

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

MATH 361: NUMBER THEORY FOURTH LECTURE

Number Sense. Basic Ideas, Shortcuts and Problems #1-20 from the Sequence Chart

Number theory (Chapter 4)

(3,1) Methods of Proof

REVIEW Chapter 1 The Real Number System

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

Number Theory and Divisibility

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

Contribution of Problems

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

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

Discrete Structures Lecture Primes and Greatest Common Divisor

{ independent variable some property or restriction about independent variable } where the vertical line is read such that.

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

N= {1,2,3,4,5,6,7,8,9,10,11,...}

8 Primes and Modular Arithmetic

Introduction to Public-Key Cryptosystems:

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

ECE 646 Lecture 5. Mathematical Background: Modular Arithmetic

Writing Assignment 2 Student Sample Questions

Decimal Addition: Remember to line up the decimals before adding. Bring the decimal straight down in your answer.

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

CPSC 467b: Cryptography and Computer Security

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Algebra for error control codes

Introduction to Number Theory. The study of the integers

MATH Fundamental Concepts of Algebra

EDULABZ INTERNATIONAL NUMBER SYSTEM

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Transcription:

Assignments for Math 2030 then the hard copy will not be correct whenever your instructor modifies the assignments. exams, but working through the problems is a good way to prepare for the exams. It is also important to know the examples that your instructor covers in class. Section Problems Exponents Simplify the expressions as much as possible leaving the answer free of negative exponents. Find the following greatest common divisors and least common multiples by obtaining the prime factorizations of each number. 6. lcm(504,2079), 7. gcd(504,2079) 8. lcm(301,1849), 9. gcd(301,1849) 10. lcm(1505,18533), 11. gcd(1505,18533) Find an exact simple fraction for each of the following. A simple fraction is in the form where p and q are integers. Write each of the following numbers as sums of powers of 2 using the smallest number of powers of 2 that is possible. 14. 1059, 15. 164351 16. Bob needs to get a job real bad since otherwise his wife is going to change the locks to their apartment. Bob tells a potential employer that he is willing to just accept pennies if he will give him a job. His employer agrees to pay him one penny for the first day, 2 pennies for the second day, 4 pennies for the third day, 8 pennies for the fourth day, and so on. Since his employer usually pays his employees about $40 a day his employer agrees to this plan. For how many working days will Bob keep this job? How many days until Bob is making $50000 a day if his employer likes Bob a lot? 17. Find a counterexample to the statement where a and b are positive integers.

18. Find a counterexample to the statement where a is an integer. Combinations and Binomial Theorem 6. Compute the integer coefficient of if we expand. 7. Compute the integer coefficient of if we expand. 3 Difference Quotients Compute the difference quotient for each of the following functions. Use the formula given below and do the algebra correctly showing all steps down to the step where the h in the denominator is cancelled. Find one counterexample for each of the following statements. Your counterexample can be any integers for and, but for you must use a nonzero integer. 1. 2. 3. 4 1.1 Set Theory 5 3.1 Hashing Functions 6 1.2 Propositions Find the DNF for for pnr if we have the three vaiables p, q, and r.

Write the DNF form for the following table. (?) T T T T T T F F T F T F T F F T F T T F F T F F F F T T F F F T 7 1.3 Conditional Propositions Translate each of the following expressions to an expression that contains only nand. Find a specific counterexample to the assertion that equivalent to. is 1.5 Quantifiers 9 1.6 Nested Quantifiers 3.2 Sequences 11 Preview of Mathematical induction 1. Each of the following questions concerns the predicate Each of the answers must have the property that it is true or false, but don't just write true or false. a. What is P(1)? a. What is P(5)? a. What is P(10)? a. What is P(n+2)? 2. Each of the following questions concerns the predicate

Each of the answers must have the property that it is true or false, but don't just write true or false. a. What is P(1)? a. What is P(5)? a. What is P(10)? a. What is P(n+2)? 3. Each of the following questions concerns the predicate for every integer n. Each of the answers must have the property that it is true or false, but don't just write true or false. a. What is P(1)? a. What is P(5)? a. What is P(10)? a. What is P(n+2)? 2.4 Mathematical Induction 13 5.1 Divisors What are the quotient and remainder when a. 47 is divided by 8 b. -2002 is divided by 87 c. -2 is divided by 7 d. 0 is divided by 10 Evaluate these quantities(no negative answers) a. -17 mod 3 b. 207 mod 15 c. -2003 mod 3 d. 10277 mod 12 Find 5 different integers that are congruent to 4 modulo 12. What does a 12-hour clock read a. 100 hours after it reads 2:00 b. 5000 hours after it reads 12:00 What does a 24-hour clock read a. 100 hours after it reads 13:00 b. 5000 hours after it reads 23:00 c. 5000 hours after it reads 10:50 d. 700 days after it reads 10:50 ab then p a or p b. Assume that p, a, and b are positive integers greater than 1. What extra condition on p would guarantee that the above assertion is true.

2.4 Mathematical Induction Use mathematical induction to prove each of the following facts: a. Show that 3 divides where n is a nonnegative integer. b. Show that 5 divides where n is a nonnegative integer. Find specific counterexamples to the following statements: a. All prime numbers are odd numbers. b. The perimeter of a rectangle is never an odd number. c. If n is an integer and is divisible by 4 then n is divisible by 4. 15 6.1 Basic Principles of Counting 1, 2, 3, 4, 7, 13, 14, 16, 20, 23, 26, 28, 30, 31, 34, 37, 38, 41,44, 45, 46, 47, 50, 52, 55, 58, 64, 67, 74 6.2 Permutations and Combinations 1-4, 7, 10, 13, 19, 21, 24, 25, 28, 31, 33, 36, 39, 43, 44, 45, 46, 48, 49 3.3 Relations 3.4 Equivalence Relations 5.2 Integer Algorithms Compute the following quantities carefully. (Any calculator errors are your fault.) a. b. c. d. 1. Using addition of ' mod 26 to find the ciphertext corresponding to each of the following messages. In each case the ciphertext should be a sequence of numbers separated by commas. (a) Let and the message is "Jane is guilty". (b) Let and the message is "Use the fifth drop". 2. Using multiplication by ' mod 26 to find the ciphertext corresponding to each of the following messages. In each case the ciphertext should be a sequence of numbers separated by commas. (a) Let and the message is "Jane is guilty". (b) Let and the message is "Use the fifth drop".

3. Using subtraction of ' mod 26 to find the plaintext corresponding to each of the following secret messages. In each case the plaintext should be words that might appear in some English dictionaries. (a) Let and the message is "23 8,5,1 25,23,10 10,11,16 8, 5,18,1". (b) Let and the message is "6,20,17,11 25,13,23,17 6,20,17 20,21,19,20,5 20,21,19,20,17,4 13,0,16 6,20,17 23,1,9,5 25,1, 4,17 18,4,17,3,7,17,0,6". 4. Using multiplication by ' mod 26 to find the plaintext corresponding to each of the following secret messages. In each case the plaintext should be words that might appear in some English dictionaries. (a) Let and the message is "0 11,1,2,14,13,17 5,0,24 21,5, 14 24,0,16,14 14,13,14,16,2,14,24". (b) Let and the message is "20,19 8,22,24 18,0,13 13,22,15 10,25,5,21,0,20,13 8,22,24 1,22 13,22,15 24,13,1,10,23,6,15,0, 13". 5.3 Euclidean Algorithm Find the gcd for problems 1,4,7,10 by factoring the numbers. Find the gcd for problems 1,4,7,10 by using the Euclidean Algorithm. For each of the above pairs of integers find the integers s and t so that For each of the above pairs of integers find the lcm. Use the Euclidean Algorithm to do each of the following computations. (a) Find the inverse of 17 modulo 26. (b) Find the inverse of 3 modulo 26. (c) Find the inverse of 2 modulo 26. (wierd problem) (d) Find the inverse of 81 modulo 98. (d) Find the inverse of 8 modulo 13. 3.2 Strings In the following exercises we are looking at strings in. ALL derivations should begin with S, but derived strings must not contain an S. derived? derived?