Solutions to Practice Final 3

Similar documents
Solutions to Practice Final

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

Name: Mathematics 1C03

Beautiful Mathematics

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

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.

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

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

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

Introduction to Public-Key Cryptosystems:

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

Review Sheet for the Final Exam of MATH Fall 2009

1 The Fundamental Theorem of Arithmetic. A positive integer N has a unique prime power decomposition. Primality Testing. and. Integer Factorisation

Math 430 Midterm II Review Packet Spring 2018 SOLUTIONS TO PRACTICE PROBLEMS

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

MATH 201 Solutions: TEST 3-A (in class)

Math.3336: Discrete Mathematics. Mathematical Induction

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

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

Introduction to Abstract Mathematics

Part IA Numbers and Sets

Fibonacci numbers. Chapter The Fibonacci sequence. The Fibonacci numbers F n are defined recursively by

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

Simplifying Rational Expressions and Functions

Math 299 Supplement: Modular Arithmetic Nov 8, 2013

Iterated Encryption and Wiener s attack on RSA

Ma/CS 6a Class 2: Congruences

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

Number Theory and Algebra: A Brief Introduction

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

Chapter 5.1: Induction

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

Fundamentals of Pure Mathematics - Problem Sheet

In Exercises 1 12, list the all of the elements of the given set. 2. The set of all positive integers whose square roots are less than or equal to 3

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

Introduction to Number Theory. The study of the integers

Day 12. Thursday June 7, 2012

Math 109 HW 9 Solutions

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

A Readable Introduction to Real Mathematics

Introduction to Cybersecurity Cryptography (Part 5)

CS/MATH 111 Winter 2013 Final Test

CS2800 Questions selected for fall 2017

Ma/CS 6a Class 2: Congruences

Math 320: Real Analysis MWF 1pm, Campion Hall 302 Homework 2 Solutions Please write neatly, and in complete sentences when possible.

CPSC 467: Cryptography and Computer Security

HOMEWORK 11 MATH 4753

Homework 10 M 373K by Mark Lindberg (mal4549)

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

Ma/CS 6a Class 4: Primality Testing

Number Theory and Group Theoryfor Public-Key Cryptography

A Readable Introduction to Real Mathematics

Notation Index. gcd(a, b) (greatest common divisor) NT-16

Theory of Numbers Problems

Cryptosystem. Traditional Cryptosystems: The two parties agree on a secret (one to one) function f. To send a message M, thesendersendsthemessage

Elementary Number Theory MARUCO. Summer, 2018

CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS

Algebraic Systems, Fall 2012, Skeleton notes as of 11/16/12

Proof by Contradiction

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

3 Finite continued fractions

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

The RSA cryptosystem and primality tests

A Guide to Arithmetic

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

3.2 Constructible Numbers

Solving Diophantine Equations With Unique Factorization

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

that if a b (mod m) and c d (mod m), then ac bd (mod m) soyou aren't allowed to use this fact!) A5. (a) Show that a perfect square must leave a remain

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

Basic Algorithms in Number Theory

Theory of RSA. Hiroshi Toyoizumi 1. December 8,

Basic elements of number theory

Writing Assignment 2 Student Sample Questions

Basic elements of number theory

Chapter 8 Public-key Cryptography and Digital Signatures

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

Part IA Numbers and Sets

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

CPSC 467b: Cryptography and Computer Security

MATH 363: Discrete Mathematics

MATH FINAL EXAM REVIEW HINTS

MATH 361: NUMBER THEORY FOURTH LECTURE

Galois Theory, summary

17 Geometric Constructions and Field Extensions

Number Theory A focused introduction

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Factorization in Polynomial Rings

a 2 = ab a 2 b 2 = ab b 2 (a + b)(a b) = b(a b) a + b = b

Contribution of Problems

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

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

Factorization in Integral Domains II

HMMT February 2018 February 10, 2018

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

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

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

Chapter 1 : The language of mathematics.

Transcription:

s to Practice Final 1. The Fibonacci sequence is the sequence of numbers F (1), F (2),... defined by the following recurrence relations: F (1) = 1, F (2) = 1, F (n) = F (n 1) + F (n 2) for all n > 2. For example, the first few Fibonacci numbers are 1, 1, 2,, 5, 8, 1,... (a) Prove by induction that for any n 1 the consequtive Fibonacci numbers F (n) and F (n + 1) are relatively prime. (b) Prove by induction that for any n 1 the following identity holds F (2) + F (4) +... F (2n) = F (2n + 1) 1 (a) Since F (1) = F (2) = 1 the statement is true for n = 1. Suppose we have proved that gcd(f (n), F (n + 1)) = 1 for some n 1. Observe that for any integers a and b we have that d a and d b if and only if d a and d a+b. Therefore, gcd(a, b) = gcd(a, a + b). Using the above observation we conclude gcd(f (n + 1), F (n + 2)) = gcd(f (n + 1), F (n) + F (n + 1)) = gcd(f (n + 1), F (n)) = 1 where the last equality holds by the induction assumption. This proves the induction step and therefore gcd(f (n), F (n + 1)) = 1 for any n 1. (b) First we check that the formula holds for n = 1: F (2) = 1 = 2 1 = F () 1 Induction step. Suppose we ve already proved that F (2) + F (4) +... F (2n) = F (2n + 1) 1 for some n 1. Then F (2)+F (4)+... F (2n)+F (2 (n+1)) = F (2n+1) 1+F (2n+2) = F (2n + ) 1 = F (2(n + 1) + 1) 1. Therefore the formula holds for n + 1. This proves the induction step and hence for any n 1. F (2) + F (4) +... F (2n) = F (2n + 1) 1 2. (a) Find the remainder when 7 100 is divided by 20. 1

We find φ(20) = φ(2 2 5) = (2 2 2 1 ) (5 1) = 8. Since gcd(7, 20) = 1 this implies that 7 8 1 (mod 20) by Euler s theorem. Thus we need to find 100 (mod 8). We have 2 = 9 1 (mod 8). Therefore 100 = ( 2 ) 50 1 50 1 (mod 8), i.e. 100 = 8k + 1 for some natural k. Hence 7 100 = 7 8k+1 = (7 8 ) k 7 1 k 7 7 (mod 20). Answer: 7 100 7 (mod 20). (b) Find 2 p! ( mod p) where p is an odd prime. By Fermat s theorem 2 p 1 1 (mod p). Since p 1 divides p! this implies that 2 p! 1 (mod p) too. Answer: 2 p! 1 (mod p).. Prove that q 1 2 + q2 is irrational for any rational q1, q 2 unless q 1 = q 2 = 0. Suppose x = q 1 2 + q2 is rational and at least one of the numbers q1, q 2 is not zero. Case 1. q 1 = 0, q 2 0. This means that x = q 2 is rational and hence = x q 2 is rational too. This is false and therefore this case is impossible. Case 2. q 1 0, q 2 = 0. As above this means that x = q 1 2 is rational and hence 2 = x q 1 is also rational. This is known to be false and hence this case is impossible too. Case. q 1 0, q 2 0. Squaring both sides of the formula x = q 1 2 + q2 we get x 2 = 2q1 2 +q2 2 +2q 1 q 2 12 = 2q 2 1 +q2 2 x +4q 1 q 2. Therefore = 2 2q1 2 q2 2 4q 1 q 2 is rational (note that the denominator in this fraction is not zero). This is a contradiction. Thus, q 1 2 + q2 is irrational for any rational q1, q 2 unless q 1 = q 2 = 0. 4. Suppose (φ(m), m) = 1. Here m is a natural number and φ is the Euler function. Prove that m is irrational. Let m = p k 1 1... p k l l be the prime decomposition of m where p 1,..., p l are distinct p k l 1 l ). primes. Then φ(m) = (p k 1 1 p k 1 1 1 )... (p k l l If some k i > 1 this formula implies that p i divides φ(m) and hence gcd(φ(m), m) 1. Thus, if gcd(φ(m), m) = 1 then all k i are equal to 1. Therefore m = p 1... p k is not a complete square and hence m is irrational. 2

5. Let p = 11, q = 5 and E = 2. Let N = 11 5 = 55. The receiver broadcasts the numbers N = 55, E = 2. The sender sends a secret message M to the receiver using RSA encryption. What is sent is the number R = 2. Decode the original message M. First we compute φ(n) = (5 1) (11 1) = 40. Thus we need to find a decoder D such that DE 1 (mod 40) where E = 2. We find D using the Euclidean algorithm. 40 = 2 1 + 17, 17 = 40 1 2 1, 2 = 17 1 +, = 2 1 17 1 = 2 1 (40 1 2 1) = 2 2 40 1, 17 = 2 + 5, 5 = 17 1 2 = (40 1 2 1) (2 2 40 1) 2 = 40 2 5, = 5 1 + 1, 1 = 1 5 1 = (2 2 40 1) (40 2 5) = 2 7 40 4. Thus 2 7 1 (mod 40) and we can take D = 7. Then M = R D (mod N) = 2 7 (mod 55) = 128 (mod 55) 18 (mod 55). Answer: M = 18.. (a) Find all complex roots of the equation z + (1 i)z i = 0 Put y = z. We first need to solve y 2 + (1 i)y i = 0. We have y = (1 i)± (1 i) 2 +4i = (1 i)± 1 2 +i 2 2i 4i = (1 i)± 1 2 +i 2 +2i = (1 i)± 2 2 2 2 = (1 i)±(1+i) which gives y 2 1 = (1 i)+(1+i) = i and y 2 2 = (1 i) (1+i) = 1. 2 Next, we separately solve z = i and z = 1. From the first equation we get z = i = 1(cos π + i sin π ) and hence z = 2 2 π 1((cos 2 +2πk +i sin π 2 +2πk ) = cos( π + 2πk)+i sin( π + 2πk ) for k = 0, 1, 2. Plugging in k = 0, 1, 2 this gives z 1 = cos( π + 0) + i sin( π + 0) = + i, 2 2 z 2 = cos( π + 2π) + i sin( π + 2π) = cos( 5π) + i sin( 5π) = + i, 2 2 z = cos( π + 4π) + i sin( π + 4π) = cos( π) + i sin( π) = i. 2 2 Similarly, from the second equation we get z = 1 = cos π + i sin π and hence z = cos π+2πk + i sin π+2πk for k = 0, 1, 2. Plugging in k = 0, 1, 2 this gives z 4 = cos π+0 + i sin π+0 = + i, 2 2 z 5 = cos π+2π + i sin π+2π z = cos π+4π + i sin π+4π = cos 5π + i sin 5π = cos π + i sin π = 1, = cos π + i sin π = 2 i 2. (1+i) 2

(b) Express as a + bi for some real a, b: 100 ( + i) 10 First we compute + i = 9 + = 12 = 2. Therefore, we can rewrite + i = 2 ( 2 + i 2 ) = 2 (cos π + i sin π ). Thus, 100 ( + i) = 100 10 (2 100 (cos π + i sin = π ))10 (2 ) (cos( π 10 ) + i sin( π ))10 = 100 (2 ) (cos( 10π 10 )+i sin( 10π )) = 100 (2 ) = 100 (2 100 (cos(5π/) + i sin(5π/)) = ) 10 (2 ) 10 (cos( 17π π/)+i sin( 17π π/)) 10 ( 2 + i 2 ) 7. A complex number is called algebraic if it is a root of a polynomial with integer coefficients. Prove that the set of algebraic numbers is countable. For a polynomial f let us denote by Z f the set of roots of f. Then the set of algebraic numbers A is equal to f P Z f where P is the set of all nonzero polynomials. Since a nonzero polynomial of degree n has at most n roots we have that Z f is finite (and hence countable) for every f. Since a union of countably many countable sets is countable it s therefore enough to prove that P is countable. We can write P as the union P = n N P n where P n is the set of nonzero polynomials of degree n. A polynomial f(x) of degree n is given by f(x) = a n x n +... + a 1 x + a 0. The correspondence f (a n, a n 1,..., a 1, a 0 ) give an injective map P n Z n+1 and since Z n+1 = N n+1 = N we conclude that P n is countable. Therefore P = n N P n is also countable as a union of countably many countable sets and hence so is A. 8. Suppose 0 < α < π/2 satisfies cos α = 1. Prove that the angle α can not be trisected with a ruler and a compass. 4

Recall that cos θ = 4 cos θ cos θ for any θ. Note that the angle α is constructible since cos α = 1 is a constructible number. Suppose α can be trisected. Then x = cos(α/) is also constructible and satisfies 4x x = 1 or 8x x = 1, (2x) (2x) = 1. If x is constructible then so is y = 2x which satisfies y y = 1, y 9y 1 = 0. This is a cubic polynomial with rational coefficients. If it has a constructible root it also has a rational one. Suppose p is a rational root where gcd(p, q) = 1. By the rational root theorem we must have q that p 1 and q. Therefore, p = ±1, q = ±1, ± and p = ±1, ± 1. Plugging in these q numbers into y 9y 1 = 0 we get 1 9 1 = 7 0, ( 1) 9 ( 1) 1 = 5 0, ( 1 ) 9 1 1 = 1 9 4 0, ( 1 ) 9 ( 1 ) 1 = 1 9 + 2 0. Thus y 9y 1 = 0 has no rational roots. This is a contradiction and hence α can not be trisected with a ruler and a compass. 9. Let S be that set of all functions f : R R. Prove that S > R. The set S contains the set T = {f : R {0, 1}}. Therefore S T. However T is bijective to P (R) which is the set of all subsets of R and P (R) > R by Cantor s theorem. Therefore S T = P (R) > R. 10. For each of the following answer true or false. Justify your answer. a) 5 2+ 11 is constructible. Suppose x = 5 2+ 11 is constructible. Then x 2 = 5 2+ 11 is also constructible and hence so is 1 = 2+ 11 x 2 5. Since both 5 and 11 are constructible this implies that 2 is constructible too. But 2 is a root of the cubic polynomial with rational coefficients y 2 = 0. If it has a constructible root it also has a rational one. Suppose p is a rational root where gcd(p, q) = 1. By the rational root theorem we q must have that p 2 and q 1 so that p = ±1, ±2, q = ±1 and therefore p/q = ±1, ±2. Plugging these numbers into y 2 = 0 we see that none are roots. 1 2 = 1 0, ( 1) 2 = 0, 2 2 = 0, ( 2) 2 = 10 0. Therefore 5 2 is not constructible which mans that 2+ 11 is not constructible either. Answer: False. 5

b) If x is not constructible then x is also not constructible. If x is constructible then x = x x is constructible too because the product of two constructible numbers is constructible. Answer: True. c) If x is constructible then 8 x is also constructible. Square root of a constructible number is constructible. Therefore if x is constructible then so are x, x = 4 x and 4 x = 8 x. Answer: True.