Math 110 HW 3 solutions

Similar documents
Math 109 HW 9 Solutions

Solutions to Assignment 1

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

CHAPTER 1 REAL NUMBERS KEY POINTS

Solutions to Practice Final

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

Number Theory. Final Exam from Spring Solutions

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

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

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

Lecture Notes. Advanced Discrete Structures COT S

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

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

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

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

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

Notes on Systems of Linear Congruences

Wilson s Theorem and Fermat s Little Theorem

CHAPTER 3. Congruences. Congruence: definitions and properties

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

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

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,

Mathematics 228(Q1), Assignment 2 Solutions

Number Theory Solutions Packet

Homework #2 solutions Due: June 15, 2012

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

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.

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

8 Primes and Modular Arithmetic

Notes on Primitive Roots Dan Klain

Class IX Chapter 1 Number Sustems Maths

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Recitation 7: Existence Proofs and Mathematical Induction

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

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

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

An Alternate Method to Compute the Decimal Expansion of Rational Numbers

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

Homework 3, solutions

CCSU Regional Math Competition, 2012 Part I

MATH 361: NUMBER THEORY FOURTH LECTURE

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

Math Homework # 4

Sums of Squares. Bianca Homberg and Minna Liu

Math 319 Problem Set #2 Solution 14 February 2002

Modular Arithmetic Instructor: Marizza Bailey Name:

ELEMENTARY PROOFS OF PARITY RESULTS FOR 5-REGULAR PARTITIONS

The Impossibility of Certain Types of Carmichael Numbers

Math 261 Spring 2014 Final Exam May 5, 2014

Number Theory Homework.

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

Introduction to Induction (LAMC, 10/14/07)

Math 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

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

MATH 104, HOMEWORK #3 SOLUTIONS Due Thursday, February 4

Theory of Numbers Problems

Sieving 2m-prime pairs

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2.

Complete Induction and the Well- Ordering Principle

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

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

2301 Assignment 1 Due Friday 19th March, 2 pm

Winter Camp 2009 Number Theory Tips and Tricks

Chapter 5. Number Theory. 5.1 Base b representations

64 P. ERDOS AND E. G. STRAUS It is possible that (1.1) has only a finite number of solutions for fixed t and variable k > 2, but we cannot prove this

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

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

Solutions, Project on p-adic Numbers, Real Analysis I, Fall, 2010.

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

ICS141: Discrete Mathematics for Computer Science I

Mathematics 228(Q1), Assignment 3 Solutions

x arctan x = x x x x2 9 +

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

Number Theory Proof Portfolio

LARGE PRIME NUMBERS (32, 42; 4) (32, 24; 2) (32, 20; 1) ( 105, 20; 0).

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

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

MATH 117 LECTURE NOTES

MATH Fundamental Concepts of Algebra

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Standard forms for writing numbers

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

PUTNAM TRAINING MATHEMATICAL INDUCTION. Exercises

(Primes and) Squares modulo p

MATH 310: Homework 7

Climbing an Infinite Ladder

MATH10040: Numbers and Functions Homework 1: Solutions

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

MATH 2200 Final Review

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Proof by Contradiction

Mersenne and Fermat Numbers

Lecture 2: Continued fractions, rational approximations

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

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

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS

Numbers, Groups and Cryptography. Gordan Savin

Question 1: Is zero a rational number? Can you write it in the form p, where p and q are integers and q 0?

Transcription:

Math 0 HW 3 solutions May 8, 203. For any positive real number r, prove that x r = O(e x ) as functions of x. Suppose r <. Then lim x x r = 0. And lim x e x =. Therefore which means x r = O(e x ). x r lim x e x = 0, Now suppose r. Consider the ratio xr e, where both numerator and denominator approach x at. Using L Hôpital s rule, this limit is the same as that of r xr e. If r = 0 then x we mean /e x, whose limit is 0. If 0 < r < we have reduced to the previous case. So, for a positive integer n, suppose n r < n +, then after n iterations of L Hôpital s rule, we conclude that the limit is 0. Thus, x r = O(e x ) for all r > 0. 2. Compute the continued fraction expansion of the three numbers 427/67, 7 and tan(). (For the latter number, you don t need to prove the result you get is correct, simply do enough computations to be able to guess the pattern (and show how these computations were performed). Of course is in radians). First, 67 6 = 402, so 427/67 = 6 + 25/67. Now 25 2 = 50, so 67/25 = 2 + 7/25, so far we have 427/67 = 6 + 2 + 7. 25 Similarly 25/7 = + 8/7, and 7/8 = 2 + /8, and finally 8/ = 8. So altogether we have a terminating continued fraction, with a 0 = 6, a = 2, a 2 =, a 3 = 2, a 4 = 8: 427/67 = 6 +. 2 + + 2+/8 For 7, let s start with the approximate decimal expansion. 2.645753. Below is a list of decimals where each one is obtained from the last by removing the integer

part and taking the reciprocal. 2.64575306 2.64575306 /.64575306.54858377037 /.54858377037.82287565548 /.82287565548.25250437 /.25250437 4.6457530937 /.6457530937.54858377442 and so on. In this way we obtain a 0 = 2, a = a 2 = a 3 =, a 4 = 4, and based on the similarities in decimal expansions, conjecture that a n+4 = a n for all n > 0. We can check this conjecture explicitly. The sequence of numbers above may be written, taking siginficant figures into account, as 7 2.64575306 7 2.5485837703 7 2.822875655.2525044 7 2 = 7 2 7 + 2 (our conjecture). And rewriting this sequence once more, we get 7 2 7,, 7 2 3 7, 3 7 2 7 5, 2 7 5 8 3 7 So the claim is that the last fraction in that sequence is equal to 7 + 2, which is to say (8 3 7)( 7 + 2) = 2 7 5, which is true. Thus the continued fraction expansion of 7 uses the sequence 2,,,, 4,,,, 4,,.... For tan(), let us make a sequence of decimals as above. We get, reducing significant figures 2

due to calculator limitations: tan.55740772465 /.55740772465.79408925 /.79408925.259458454 /.2594584545 3.85484644 /.8548464428.6984425 /.698442548 5.8877470 /.887747068.26447 /.2644704724 7.90844 /.90844880784.007 /.007774966 9.922 So we guess that the continued fraction has coefficients,,, 3,, 5,, 7,, 9,,... in other words a 2n =, a 2n+ = 2n +. To write it out explicitly we have + + + 3+ + 5+... 3. In the continued fraction expansion of 7 calculated in the previous problem, let n be any integer such that a n+ = 2a 0. Compute the convergent pn q n and show that x = p n, y = q n gives a solution to Pell s equation x 2 7y 2 =. As we know that means a n+ = 4, which happens when n = 4k for integer k > 0, and we always mean a n =. Since the a 0 = 2 but otherwise a 4k = 4, we have the formula for r n+4 = pn+4 q n+4 : p n+4 = 2 + q n+4 + + + rn+2 = 8r n + 2 3r n + 8 = 8p n + 2q n 3p n + 8q n. Calculating explicitly that p 3 /q 3 = 8/3 and p 7 /q 7 = 27/48 we see this does fit the formula. To write down a closed form for this we would write [ ] [ ] [ ] pn+4 8 2 pn = q n+4 3 8 q n and write more explicitly the powers of the 2 2 matrix A. enlightening as it involves for example calculating (8 + 3 7) n. But that is not much more 3

Suppose (p n, q n ) is a solution to Pell s equation as given, i.e. p 2 n 7q 2 n =. Then multiplying out (8p n + 2q n ) 2 7 (3p n + 8q n ) 2, we have 64(p 2 n 7q 2 n) 63(p 2 n 7q 2 n) = 64 63 =. Therefore (p n+4, q n+4 ) is also a solution to the same Pell s equation. We proceed by induction: the pair (p 3, q 3 ) = (8, 3) satisfies 8 2 7 3 2 =, therefore for all n = 4k, the pair (p n, q n ) is a solution to the Pell s equation x 2 7y 2 =. 4. Let N = 8633243. You compute that 2 8633242 8236849 (mod N). From this information, what can you conclude about the prime factorisation of N? We can conclude that N is not prime, because otherwise 2 N (mod N) as N is clearly not divisible by 2. 5. Let a and n be positive integers with gcd(a; n) =. The order of a modulo n (denoted ord n (a)) is defined to be the smallest positive integer d such that a d (mod n). Let r be a positive integer. Prove that a r (modn) if and only if r is divisible by ord n (a). (This is Exercise 20 in Chapter 3 of Trappe & Washington, which gives out hints for the proof). For the if direction, suppose d r where d = ord n (a). Then a r = a kd for some integer k, which means a r = (a d ) k k (mod n). For the other direction, suppose a r (mod n). We know d r, so there are unique integers b, c such that bd + c = r, b > 0 and 0 c < d. Now, a bd (mod n) as in the previous argument, and also a bd+c r (mod n). We cannot simply divide by a bd. But this gives us a bd+c = a b d a c a c (mod n). Since is the identity under multiplication, we know a c a c (mod n), so a c (mod n). Now, we know 0 c < d. If c 0, then c is a positive integer such that a c (mod n), which contradicts the definition of d as ord n (a). So c = 0, which means r = bd for some positive integer b, i.e., r is divisible by b. (Again, do NOT do any division mod n in this solution unless you have explained why the number being divided is a unit mod n.) 6. Show that 65 is a strong pseudoprime to base 8 and base 8 but not to base 4 (which is the product of 8 and 8 modulo 65). Since 64 is a power of 2, we can write d = and r = 6 for the general case n = 2 d r. Obviously 8, 8 and 4 are not mod 65. But let us look at how they exponentiate: 8 2 (mod 65), and so 8 2n (mod 65) for all n >. That makes 8 a strong pseudoprime mod 65. Also, 8 2 = 324 (mod 65), so similarly, 8 is a strong pseudoprime mod 65. However, 4 2 = 96 (mod 65), so there is no i r for which 2 i d (mod 6)5, and 4 (mod 65). Thus 4 is not a strong pseudoprime mod 65. 7. Let n be an odd composite integer which is either a prime power or divisible by an integer which is congruent to 3 modulo 4. Suppose that n is a strong pseudoprime to the bases b and b 2. Prove that n is a strong pseudoprime to the base b b 2. 4

Since n is odd, its factors are odd. If m n and m 3 (mod 4), then at least one of the primes dividing m must be 3 (mod 4). So let us consider when a prime p n and p 3 (mod 4). In this case, writing n = 2 s d for r 0 and d odd, if b 2r d i (mod n) then it is (mod p), which is impossible for r > 0 as is not a square mod p. Thus, b d ± (mod n) and b d 2 ± (mod n). Therefore (b b 2 ) d ± (mod n), so n is a strong pseudoprime to the base b b 2. Now suppose n = p k for an odd prime p. In this case only has two square roots mod n, which are ±. To see this, first note that any square root of (mod p) k must be equal to ± (mod p). Write a = mp ± for some integers m, a such that a 2 = (mod p) k. a 2 = (mp ± ) 2 = m 2 p 2 ± 2mp + so p k (m 2 p 2 ± 2mp), so p k m 2 p ± 2m. Since p divides the first term it must divide the second, and p 2 so p m; but then a higher power of p divides the first term, and thus must also divide the second, and in the end we get p k m so p k m. But then p k mp, so a = ± mod p k. Thus, defining d similarly to the above part we find that b d i = ± (mod n), and again, n is a strong pseudoprime to the base b b 2. 5