Chapter 5.1: Induction

Similar documents
Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

Senior Math Circles Cryptography and Number Theory Week 2

Fall 2017 Test II review problems

1 Overview and revision

Homework #2 solutions Due: June 15, 2012

M381 Number Theory 2004 Page 1

2301 Assignment 1 Due Friday 19th March, 2 pm

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

Problem Set 5 Solutions

Homework 3, solutions

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

5: The Integers (An introduction to Number Theory)

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

2. THE EUCLIDEAN ALGORITHM More ring essentials

Fibonacci Numbers. Justin Stevens. Lecture 5. Justin Stevens Fibonacci Numbers (Lecture 5) 1 / 10

Chapter 1. Number of special form. 1.1 Introduction(Marin Mersenne) 1.2 The perfect number. See the book.

Chapter 5: The Integers

NOTES ON INTEGERS. 1. Integers

NOTES ON SIMPLE NUMBER THEORY

1 Examples of Weak Induction

4 Powers of an Element; Cyclic Groups

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

n f(k) k=1 means to evaluate the function f(k) at k = 1, 2,..., n and add up the results. In other words: n f(k) = f(1) + f(2) f(n). 1 = 2n 2.

MATH FINAL EXAM REVIEW HINTS

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

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

MATH 145 Algebra, Solutions to Assignment 4

Course: CS1050c (Fall '03) Homework2 Solutions Instructor: Prasad Tetali TAs: Kim, Woo Young: Deeparnab Chakrabarty:

The Euclidean Algorithm

Theory of RSA. Hiroshi Toyoizumi 1. December 8,

Notes for Recitation 6

CMSC Discrete Mathematics SOLUTIONS TO SECOND MIDTERM EXAM November, 2005

Mathematics for Computer Science Exercises for Week 10

Applied Cryptography and Computer Security CSE 664 Spring 2017

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

1. (16 points) Circle T if the corresponding statement is True or F if it is False.

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

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

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

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.

Induction and recursion. Chapter 5

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

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

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

Solutions to Practice Final 3

Writing Assignment 2 Student Sample Questions

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Introduction to Number Theory

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Notes Spring 2011

Introduction to Abstract Mathematics

CS280, Spring 2004: Prelim Solutions

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

n n P} is a bounded subset Proof. Let A be a nonempty subset of Z, bounded above. Define the set

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

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

Arithmetic Algorithms, Part 1

3 Finite continued fractions

1. Algebra 1.7. Prime numbers

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

2015 Hypatia Contest

Quiz 3 Reminder and Midterm Results

CHARACTERIZATION OF THE STRONG DIVISIBILITY PROPERTY FOR GENERALIZED FIBONACCI POLYNOMIALS

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

Olympiad Number Theory Through Challenging Problems

1. multiplication is commutative and associative;

. In particular if a b then N(

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

Week Some Warm-up Questions

Ma/CS 6a Class 4: Primality Testing

Math.3336: Discrete Mathematics. Mathematical Induction

The Fundamental Theorem of Arithmetic

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

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

PRACTICE PROBLEMS: SET 1

Ch 4.2 Divisibility Properties

Basic elements of number theory

Basic elements of number theory

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

Number Theory Proof Portfolio

Homework 7 Solutions, Math 55

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

Induction and Recursion

SIX PROOFS OF THE INFINITUDE OF PRIMES

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

18 Divisibility. and 0 r < d. Lemma Let n,d Z with d 0. If n = qd+r = q d+r with 0 r,r < d, then q = q and r = r.

PROBLEM SET 1 SOLUTIONS 1287 = , 403 = , 78 = 13 6.

Math 283 Spring 2013 Presentation Problems 4 Solutions

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

Lecture 4: Number theory

Transcription:

Chapter.1: Induction Monday, July 1 Fermat s Little Theorem Evaluate the following: 1. 1 (mod ) 1 ( ) 1 1 (mod ). (mod 7) ( ) 8 ) 1 8 1 (mod ). 77 (mod 19). 18 (mod 1) 77 ( 18 ) 1 1 (mod 19) 18 1 (mod ) and 18 (mod ), so solving the simultaneous equations (by whatever method you like) gives 18 (mod 1).. (mod 1) (mod ) and (mod 7), so solving the two equations gives (mod 1).. 100 (mod ) 100 1 (mod ) and 100 1 (mod 11), so solving the two equations gives 100 1 (mod ). (Hard) A composite number n is called a Carmichael number b n 1 1 (mod n) for every number b such that gcd(b, n) 1 (their existence is unfortunate, since it means that we cannot use FLT to tell for certain whether a number is prime). Prove: There is one and only one Carmichael number of the form p q, where p and q are prime numbers. We know that if n pq is a Carmichael number and gcd(b, n) 1 then b pq 1 1 (mod pq) b pq 1 1 (mod ) b pq 1 1 (mod p) b pq 1 1 (mod q) Using Fermat s Little Theorem on the last three equations in turn gives us pq 1 p 1 pq 1 q 1 pq 1 1

The first just tells us that p and q must be odd. Then since pq 1 pq q + q 1 q(p 1) + q 1 (and similarly pq 1 p(q 1) + p 1), we can conclude p 1 q 1 q 1 p 1 Suppose (without loss of generality) that p < q. Then since q 1 p 1 < q 1, we know that either q 1 p 1 or (q 1) p 1. The first possibility would give q p, contradicting the given that p was prime. Therefore (q 1) p 1. We can then substitute this into the first statment: p 1 q 1 q + ((q 1))+ (p 1)+, so (p 1) 9 p + 1/, or p 9p + 1, or p 9p + 1 (p ) p + 9. Since p p + 9 means that p p + 9, we must have p 11. Since p, checking the other cases, 7, and 11 show that p 11 is the only option. Therefore q 17, and the only Carmichael number of the form pq is 11 17 1. Induction 1. Prove that 1 + + + + n n(n + 1)(n + 1) for n 0. Base case: it works for n 0 since 0 0(0 + 1)(0 + )/. Inductive step. Suppose that the formula works for n. Then (1 + + + n ) + (n + 1) n(n + 1)(n + 1)/ + n + n + 1 ( ) n(n + 1). Prove that 1 + + + + n for n 0. Base case: it works for n 0. Inductive step: suppose it works for n. Then n + n + n + n + 1n + n + 9n + 1n + (n + 1)(n + )(n + ) (1 + + + n ) + (n + 1) n (n + 1) + n + n + n + 1 n + n + n + n + 1n + 1n + n + n + 1n + 1n + (n + 1) (n + ). Prove that 1 1! +! + + n n! (n + 1)! 1 for n 1. Base case: it works for n 1. Inductive step: suppose it works for n. Then (1 1! +! + + n n!) + (n + 1) (n + 1)! (n + 1)! 1 + [(n + ) (n + 1)! (n + 1)!] (n + )! 1

. Find a closed form for n k1 ( 1)k k and prove that it is correct. The first few terms are 1,,, 10, 1,..., so guess that the formula is ( 1) n n(n + 1)/. Base case: The formula works for n 1. Inductive step: suppose that it works for n. Then ( 1) k k k1 n ( 1) k k + ( 1) (n + 1) k1. For what integers is n n true? Prove it. True for n 0, n 1, but also for n 10. Base case: 10 10 1000 10. Inductive step: suppose that n n. Then ( 1) n n(n + 1)/ + ( 1) (n + n + 1) ( 1) n + n + n n ( 1) n + n + (n + 1)(n + ) ( 1) n n + n n + n n + 10n n + n + n + 1 (n + 1) The step n + n n + 10n relied on the fact that n 10.

From to many 1. Given that ab ba, prove that a n b ba n for all n 1. (Original problem had a typo.) Base case: a 1 b ba 1 was given, so it works for n 1. Inductive step: if a n b ba n, then a b a(a n b) aba n baa n ba.. Given that ab ba, prove that a n b m b m a n for all n, m 1 (let n be arbitrary, then use the previous result and induction on m). Base case: if m 1 then a n b ba n was given by the result of the previous problem. Inductive step: if a n b m b m a n then a n b m+1 a n b m b b m a n b b m ba n b m+1 a n.. Given: if a b (mod m) and c d (mod m) then a + c b + d (mod m). Prove: if a i b i (mod m) for i 1,,..., n, then n a i n b i (mod m). Base case: When n the formula a + c b + d (mod m) was already given. Inductive step: Supposing the formula works for n, we get n a i ( a i ) + a n b i + b. (Calculus) Suppose we know that d dx x 1 and that for any functions f and g, (fg) f g + fg. Prove that d dx xn nx n 1 for all n 1. d Base case: when n 1, dx x1 1 1 x 0. d Inductive step: If dx xn nx n 1, then. Prove: n A i n A i. b i d dx x (x x n ) x x n + (x n ) x x n + nx n 1 x (n + 1)x n Base case: When n A B A B is given by one of DeMorgan s Laws.

Inductive step: Suppose the formula works for n. Then A i n A i A n A i A n A i A A i Recursion 1. Define a sequence a n by a 0 1, a 1 and a n a n 1 + a n for n. Find a. Prove that a n n+ + ( 1) n. a 0 a 1 a a a a a 1 11 1 8 Base case for proof by induction: The formula works for n 0 and n 1. Inductive step: Suppose that the formula works for n AND n + 1. Then a n+ a + a n n+ + ( 1) n+ + ( 1) n n+ + ( 1) n+ + n+ + ( 1) n Note that this time we needed to use the formula for both a and a n, so we needed to prove two base cases.. Define a sequence a n by a 0 1, a n a n 1 + 1 if n 1. Find a non-recursive formula for a n and prove that it is correct. The sequence goes 1,, 7, 1, 1,... guess that it is equal to 1. Prove the base case: it works for n 0. Inductive step: If it works for n, then a a n + 1 ( 1) + 1 n+ + 1 n+ 1.

. Prove: gcd(f, f n ) 1 for all n 0. Proof: gcd(f 0, f 1 ) gcd(0, 1) 1 for the base case n 0. Inductive step: use the fact that gcd(a, b) gcd(a b, b). Then if the proposition holds for n, we have gcd(f n+, f ) gcd(f n+ f, f ) gcd(f n, f ) 1.. Prove that f 1 + f + + f n f n f for n 1. Base case: it works for n 1 since f 1 1 1 f 1 f. Inductive step: if the formula holds for n, then (f 1 + f + + f n) + f f n f + f f f (f n + f ) f f n+. Prove that f 1 + f + + f n 1 f n for n 1. (Original problem had a typo.) Base case: f 1 1 f when n 1. Inductive step: if the formula holds for n, then. Show that f f n 1 f n ( 1) n for n 1. (f 1 + f + + f n 1 ) + f f n + f f n+ Base case: when n 1, we have f f 0 f 1 0 1 ( 1) 1. Inductive step: If the formula holds for n then f n+ f n f (f n + f )f n f f n + f f n f f n + f (f n f ) f n + f ( f n 1 ) (f f n 1 f n) ( 1) n ( 1) 7. Prove that f n (α n β n )/, where α (1 + )/ and β (1 )/. (Hint: both α and β satisfy the equation x x + 1). Proof: It holds for f 0 and f 1, base cases n 0 and n 1. Inductive step: if it holds for n AND n + 1 then f n+ f + f n α β + αn β n αn (α + 1) β n (β + 1) αn+ β n+

8. Prove that f m+n f m 1 f n + f m f. (fix n arbitrarily, then use induction on m) Base case: when m 1 the formula becomes f f 0 f n + f 1 f, which is true because f 0 0 and f 1 1. Inductive step: Suppose the formula holds for m. Then f (m+1)+n f m+() f m 1 f + f m f n+ f m 1 f + (f m f + f m f n ) (f m 1 + f m )f + f m f n f m f n + f m+1 f f (m+1) 1 f n + f m+1 f 9. Prove (now using induction on n) that f m f mn for all n 1. Base case: When n 1 this is just f m f m, which is clearly true. Inductive step: suppose f m f mn. Then f m() f mn+m f mn 1 f m + f mn f m+1. Since f m and (by the inductive hypothesis) f mn are both divisible by f m, the linear combination (and therefore f m() ) is also divible by f m. 10. Prove that gcd(f m, f n ) f gcd(m,n). Let n qm + r. Since f m f qm (from the previous problem), we know that gcd(f m, f n ) gcd(f m, f qm+r ) gcd(f m, f qm 1 f r + f qm f r+1 ) gcd(f m, f qm 1 f r ), Then since f m f qm but gcd(f qm, f qm 1 ) 1, we can conclude that gcd(f m, f n ) gcd(f m, f qm 1 f r ) gcd(f m, f r ). This allows us to use a process similar to the Euclidean Algorithm and continue until we hit the greatest common divisor. In particular, this means that if p is a prime number, then f p shares a common divisor with f n if and only if p n (and if p n then f p f n ). In particlar, we know that f, so (since is prime), the even Fibonacci numbers will be precisely those of the form f k for k Z. 7