After that, we will introduce more ideas from Chapter 5: Number Theory. Your quiz in recitation tomorrow will involve writing proofs like those.

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

Number theory (Chapter 4)

For your quiz in recitation this week, refer to these exercise generators:

Modular Arithmetic Instructor: Marizza Bailey Name:

Section 29: What s an Inverse?

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

EULER S THEOREM KEITH CONRAD

One-to-one functions and onto functions

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving.

COMP Intro to Logic for Computer Scientists. Lecture 15

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

MATH 25 CLASS 12 NOTES, OCT Contents 1. Simultaneous linear congruences 1 2. Simultaneous linear congruences 2

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?

Quiz 07a. Integers Modulo 12

Basic Combinatorics. Math 40210, Section 01 Fall Homework 8 Solutions

Algorithms: Review from last time

MATH 25 CLASS 21 NOTES, NOV Contents. 2. Subgroups 2 3. Isomorphisms 4

CHAPTER 1. REVIEW: NUMBERS

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?

8 Primes and Modular Arithmetic

Euler s, Fermat s and Wilson s Theorems

Math Lecture 3 Notes

Putnam Pigeonhole Principle October 25, 2005

CIS Spring 2018 (instructor Val Tannen)

Problems for Recitation 15

Math 31 Lesson Plan. Day 22: Tying Up Loose Ends. Elizabeth Gillaspy. October 31, Supplies needed: Colored chalk.

Checkpoint Questions Due Monday, October 1 at 2:15 PM Remaining Questions Due Friday, October 5 at 2:15 PM

Mathematics for Computer Scientists

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Understanding Decimal Addition

Proof by contrapositive, contradiction

Math 308 Spring Midterm Answers May 6, 2013

NORTHWESTERN UNIVERSITY Tuesday, Oct 6th, 2015 ANSWERS FALL 2015 NU PUTNAM SELECTION TEST

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

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Number theory (Chapter 4)

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Counting in the Twilight Zone

Discrete Mathematics. Kenneth A. Ribet. January 31, 2013

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

1. Determine (with proof) the number of ordered triples (A 1, A 2, A 3 ) of sets which satisfy

CS1800: Mathematical Induction. Professor Kevin Gold

Chemistry. Friday, February 23 rd Monday, February 26 th, 2018

The RSA public encryption scheme: How I learned to stop worrying and love buying stuff online

MATH 13 FINAL EXAM SOLUTIONS

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

9 Modular Exponentiation and Square-Roots

Number Theory and the abc Conjecture

Numbers. The aim of this lesson is to enable you to: describe and use the number system. use positive and negative numbers

CS 124 Math Review Section January 29, 2018

Part V. Chapter 19. Congruence of integers

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

How to write maths (well)

Gaussian elimination

ASTR 4 Solar System Astronom y

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

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

CS 210 Foundations of Computer Science

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

1 Maintaining a Dictionary

The remains of the course

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division

Lecture 6: Finite Fields

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 5

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

CIS 6930/4930 Computer and Network Security. Topic 5.1 Basic Number Theory -- Foundation of Public Key Cryptography

Problem Set #1 solutions

Introduction to Cryptology. Lecture 19

Inference and Proofs (1.6 & 1.7)

5 + 9(10) + 3(100) + 0(1000) + 2(10000) =

Computer Science Foundation Exam

#26: Number Theory, Part I: Divisibility

The statement calculus and logic

STEP Support Programme. Hints and Partial Solutions for Assignment 17

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

Proof Techniques (Review of Math 271)

2 Exercises 1. The following represent graphs of functions from the real numbers R to R. Decide which are one-to-one, which are onto, which are neithe

The next sequence of lectures in on the topic of Arithmetic Algorithms. We shall build up to an understanding of the RSA public-key cryptosystem.

4. Congruence Classes

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Solving Equations by Adding and Subtracting

Recitation 7: Existence Proofs and Mathematical Induction

Lesson 8: Why Stay with Whole Numbers?

Math 2602 Finite and Linear Math Fall 14. Homework 8: Core solutions

Lecture 5: Latin Squares and Magic

2. Two binary operations (addition, denoted + and multiplication, denoted

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

Math From Scratch Lesson 20: The Chinese Remainder Theorem

Some Review Problems for Exam 1: Solutions

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Solutions to Problem Set 4 - Fall 2008 Due Tuesday, Oct. 7 at 1:00

Fall 2017 Test II review problems

Chapter 2 - Relations

Fractions. Warm up galleryitem. If I eat the two pizza slices shown, how much of the pizza did I eat?

Number of People Contacted

Transcription:

Wednesday, Oct 17 Today we will finish Course Notes 3.2: Methods of Proof. After that, we will introduce more ideas from Chapter 5: Number Theory. The exercise generator Methods of Proof, 3.2 (also includes concepts from Chapter 5) creates multiple choice or true/false questions that get at the correct way to start and structure a proof. The Get a Clue link then provides access to the complete proof. Your quiz in recitation tomorrow will involve writing proofs like those. There is no online quiz this week. The date for Test 2 has been shifted to Thursday, Oct 25.

Existence Proofs A. True or B. False!n! 2n 2 1 = 5n + 2 We are asked to prove the existence of an object (in this case, a certain unique integer). We will perform a calculation to see if we can produce a unique integer n such that 2n 2 1 = 5n + 2. If we are able to produce such a number, we will have employed a constructive existence proof.

The Pigeonhole Principle The pigeonhole principle is an idea that underlies certain indirect existence proofs that involve claims about counting: If n+1 objects (pigeons) are distributed among n containers (pigeonholes), at least one container must receive two or more objects.

An example related to the pigeonhole principle Suppose we are going to use an indirect proof to prove the following claim: In a classroom, seats are arranged in a rectangular array of 8 rows, with 10 seats in each row. If 52 people are seated in that room, at least one row must have more than six people. Select an appropriate assumption with which to begin the proof. A. Assume that at least one row has more than six people. B. Assume that no row has more than six people. C. Assume that every row has more than six people. D. Assume that every row has at least six people. E. Assume than every person sits in at least six rows.

To avoid losing points on a proof exercise: 1. Avoid using terminology or notation that gives the reader the impression that you don t know what you are talking about. For instance, an informed writer would not use terminology such as x is a real integer or x is a rational integer when he/she is trying to say x is an integer. 2. Never include the conclusion in your opening assumption. This gives the impression that you are using circular reasoning, or arguing from the converse, which are illogical. Such an error will cause you to lose at least half of the possible points for the exercise. For example, suppose we are asked to use the definition of even number to prove: If n is even, then n 2 is even. Then the direct proof should begin like this: Assume n is an arbitrary even number You would lose at least half credit if your wrote something like: Assume n is an arbitrary even number and n 2 is even or Assume n 2 is even

3. Never try to use specific cases to prove a general conjecture. For example, suppose, again, we are asked to use the definition of even number to prove: If n is even, then n 2 is even. If your proof looked something like this: 2 is even and 2 2 = 4 is even 6 is even and 6 2 = 36 is even 10 is even and 10 2 = 100 is even and so on, you would earn 0 points credit. 4. Use words A proof is an explanation. In order for your proof to be readable, it must contain words, along with the appropriate mathematical manipulations. If your proof is just a splat of equations, then it isn t a proof.

Return to Chapter 5 In discussing Methods of Proof (Chapter 3, Section 2) we introduced the divisibility relation from Chapter 5: Let a, b, be integers; then a b if and only if there is an integer k such that ak = b. We also introduced the modular congruence relation from Chapter 5: For integers a, b, and positive integer m, a b (mod m) if and only if m a b. These relations, and further concepts from number theory, are at the heart of some fundamental ideas in computing, including cryptography.

The Division Algorithm Let a be an integer and d be a positive integer. Then there are unique integers q and r, with 0 r<d, such that a = qd + r. In the relation a = qd + r, a is called the, d is called the, q is called the, and r is called the. Note that the Division Algorithm isn t really an algorithm, but that is the commonly used name for this theorem. As the following examples suggest, finding q and r for a particular a and d can be done using an algorithmic approach, which is probably the basis for the name.

EXAMPLE Let a = 61, d = 13; find q and r according to the division algorithm. (You may have already completed this exercise in your head; the following systematic approach indicates the association between this theorem and the word algorithm.) To find q, and then nonnegative r, we can carry out the following sequence of calculations of the form kd for integers k until kd exceeds a. 0 13 = 1 13 = 2 13 = 3 13 = 4 13 = 5 13 =

EXAMPLE Let a = 21, d = 6; find q and r according to the division algorithm. True/false: q = 3 The approach taken in the previous example can be helpful in the case where a is negative; remember that r must be nonnegative and less than d (= 6). 0 6 = 1 6 = 2 6 = 3 6 = 4 6 =

An operation derived from the Division Algorithm In the expression a = qd + r we say that r = a modulo d or r = a mod d That is, a mod d is the remainder according to the Division Algorithm when the integer a is divided by the positive integer d. Referring to the results of the previous examples, we say that 61 mod 13 = 21 mod 6 = Beware: most calculators and programming languages have a feature is that like the mod operation (frequently denoted a % d ); exactly how these functions work can vary from one device or language to another, but they tend to not align with our mathematical definition of a mod d, which insists, among other things, that d must be positive and a mod d must be nonnegative and less than d. Note that a mod d is an operation, unlike a b (mod m), which is a relation. The two concepts are connected to one another however.

Theorem Let a, b, be integers and let m be a positive integer. a b (mod m) if and only if a mod m = b mod m. Here is an example of what this theorem is stating. Let m = 5, a = 28, b = 53. Then a mod m = 28 mod 5 = b mod m = 53 mod 5 = Also note that a b (mod m) because