Q(173)Q(177)Q(188)Q(193)Q(203)

Similar documents
PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

Class 8: Factors and Multiples (Lecture Notes)

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Solutions for the Practice Final

Problem Set 6 Solutions Math 158, Fall 2016

Grade 6 Math Circles. Divisibility

Cryptography, Number Theory, and RSA

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

The Sign of a Permutation Matt Baker

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Data security (Cryptography) exercise book

ALGEBRA: Chapter I: QUESTION BANK

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

The Chinese Remainder Theorem

The Chinese Remainder Theorem

Solutions for the Practice Questions

Math 319 Problem Set #7 Solution 18 April 2002

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Number Theory. Konkreetne Matemaatika

MA/CSSE 473 Day 9. The algorithm (modified) N 1

MAT 302: ALGEBRAIC CRYPTOGRAPHY. Department of Mathematical and Computational Sciences University of Toronto, Mississauga.

Chapter 4 Number Theory

Goldbach conjecture (1742, june, the 7 th )

The Chinese Remainder Theorem

PERMUTATIONS - II JUNIOR CIRCLE 11/17/2013

MTH 3527 Number Theory Quiz 10 (Some problems that might be on the quiz and some solutions.) 1. Euler φ-function. Desribe all integers n such that:

MATH 135 Algebra, Solutions to Assignment 7

Some Problems Involving Number Theory

Discrete Math Class 4 ( )

Math 1111 Math Exam Study Guide

Zhanjiang , People s Republic of China

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

NUMBER THEORY AMIN WITNO

A4M33PAL, ZS , FEL ČVUT

Discrete Square Root. Çetin Kaya Koç Winter / 11

Formulas for Primes. Eric Rowland Hofstra University. Eric Rowland Formulas for Primes / 27

Sheet 1: Introduction to prime numbers.

Wilson s Theorem and Fermat s Theorem

Number Theory and Public Key Cryptography Kathryn Sommers

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

SOLUTIONS FOR PROBLEM SET 4

Introduction to Fractions

Cryptography CS 555. Topic 20: Other Public Key Encryption Schemes. CS555 Topic 20 1

CS101 Lecture 28: Sorting Algorithms. What You ll Learn Today

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

lecture notes September 2, Batcher s Algorithm

Equivalent Fractions

Dijkstra s Algorithm (5/9/2013)

Math 10 Lesson 1-1 Factors, primes, composites and multiples

Launchpad Maths. Arithmetic II

Rational Points On Elliptic Curves - Solutions. (i) Throughout, we ve been looking at elliptic curves in the general form. y 2 = x 3 + Ax + B

Assignment 2. Due: Monday Oct. 15, :59pm

Study Material. For. Shortcut Maths

Carmen s Core Concepts (Math 135)

DUBLIN CITY UNIVERSITY

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

Number Theory/Cryptography (part 1 of CSC 282)

Lecture 32. Handout or Document Camera or Class Exercise. Which of the following is equal to [53] [5] 1 in Z 7? (Do not use a calculator.

University of British Columbia. Math 312, Midterm, 6th of June 2017

Overview. The Big Picture... CSC 580 Cryptography and Computer Security. January 25, Math Basics for Cryptography

created by: The Curriculum Corner

The covering congruences of Paul Erdős. Carl Pomerance Dartmouth College

FACTORS AND PRIMES IN TWO SMARANDACHE SEQUENCES RALF W. STEPHAN Abstract. Using a personal computer and freely available software, the author factored

Page Solve all cards in library pocket. 2.Complete Multiple Representations of Number Puzzle (in front pocket)

Fermat s little theorem. RSA.

Olympiad Combinatorics. Pranav A. Sriram

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2.

Two congruences involving 4-cores

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Math 1111 Math Exam Study Guide

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Cards. There are many possibilities that arise with a deck of cards. S. Brent Morris

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

Kenken For Teachers. Tom Davis January 8, Abstract

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

Math Kangaroo Practice

Intermediate Math Circles October 8, 2008 Number Theory I

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

Distribution of Primes

The Strong Finiteness of Double Mersenne Primes and the Infinity of Root Mersenne Primes and Near-square Primes of Mersenne Primes

1999 Mathcounts National Sprint Round Solutions

GCSE Maths Revision Factors and Multiples

Cryptography. 2. decoding is extremely difficult (for protection against eavesdroppers);

Adding Fractions with Different Denominators. Subtracting Fractions with Different Denominators

Primitive Roots. Chapter Orders and Primitive Roots

MATH 13150: Freshman Seminar Unit 15

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1

Understanding relationships between numbers can save you time when making

Outline Introduction Big Problems that Brun s Sieve Attacks Conclusions. Brun s Sieve. Joe Fields. November 8, 2007

Self-Inverse Interleavers for Turbo Codes

MATH LEVEL 2 LESSON PLAN 3 FACTORING Copyright Vinay Agarwala, Checked: 1/19/18

HB17 fourth suit forcing

3.1 Factors & Multiples of Whole Numbers.

Chapter 4 Cyclotomic Cosets, the Mattson Solomon Polynomial, Idempotents and Cyclic Codes

Table of Contents. Table of Contents 1

Transcription:

MATH 313: SOLUTIONS HW3 Problem 1 (a) 30941 We use the Miller-Rabin test to check if it prime. We know that the smallest number which is a strong pseudoprime both base 2 and base 3 is 1373653; hence, if 30941 passes the test for both base 2 and base 3 it will have to be prime since 30941 < 1373653. Base 2: 30490 = 2 2 7735. 2 7735 5826 (mod 30941). 2 15490 1 (mod 30941) pass the test. Base 3: 3 7735 5826 (mod 30941). 2 15490 1 (mod 30941) pass the test. Therefore 30941 is prime and we are done! (b) 33918 Base 2: 33918 = 2 16959. 2 16959 8186 (mod 33919). 2 33918 20571 (mod 33919). Fail the test! so 33919 is composite. {2, 3, 5, 7, 17, 19, 31, 37, 43, 47, 53}. Also note that 33919 = 184 and we find that sieving between 170 and 203 is sufficient. Q(173)Q(177)Q(188)Q(193)Q(203) = ( 2 3 5 7 19)( 2 5 7 37)(3 5 2 19)(2 3 2 5 37)(2 3 6 5) = 2 4 3 10 5 6 19 2 37 2.

gcd((173 177 188 193 203) (2 2 3 5 5 3 19 37), 33919) = 317 gcd((173 177 188 193 203) + (2 2 3 5 5 3 19 37), 33919) = 107 Hence, 33919 = 107 317. (c) 68569 Base 2: 68568 = 2 3 8571. 2 8571 14870 (mod 68569). 2 17142 50444 (mod 68569). 2 34284 1546 (mod 68569). 2 68568 58770 (mod 68569). Fail the test! so 68569 is composite. {2, 3, 5, 7, 17, 19, 23, 29, 31, 53, 61}. Also note that 68569 = 262 and we find that sieving between 242 and 282 is sufficient. Q(262)Q(263)Q(264)Q(265) = (3 5 2 )(2 3 3 5)(7 2 23)(2 3 3 2 23) = 2 6 3 4 5 4 7 2 23 2. gcd((262 263 264 265) (2 3 3 2 5 2 7 23), 68569) = 191 gcd((262 263 264 265) (2 3 3 2 5 2 7 23), 68569) = 359 Hence, 68569 = 191 359. (d) 838861 Base 2: 838860 = 2 3 8571. 2 209715 2048 (mod 838861). 2 419430 1 (mod 838861). Pass the test! so 838861 can be a prime.

Base 3: 3 209715 456516 (mod 838861). 2 419430 231416 (mod 838861). 2 838860 478816 (mod 838861). Fail the test! so 838861 is a composite. {2, 3, 5, 7, 11, 13, 17, 19, 29, 31, 37}. Also note that 838861 = 916 and we find that sieving between 896 and 936 is sufficient. Q(917)Q(923) = (2 2 3 13 2 )(2 2 3 3 11 2 ) = 2 4 3 4 11 2 13 2. gcd((917 923) (2 2 3 2 11 13), 838861) = 397 gcd((917 923) + (2 2 3 2 11 13), 838861) = 2113 Hence, 838861 = 371 2113. (e) 1016801 Base 2: 1016800 = 2 5 31775. 2 31775 1 (mod 1016801). Pass the test! so 1016800 can be a prime. Base 3: 3 209715 509141 (mod 1016801). 3 63550 294140 (mod 1016801). 3 127100 776112 (mod 1016801). 3 254200 991348 (mod 1016801). 3 508400 152972 (mod 1016801). 3 1016800 791371 (mod 1016801). Fail the test! so 1016800 is a composite. {2, 5, 7, 11, 19, 29, 31, 37, 41, 3, 47, 53}.

Also note that 1016801 = 1008 and we find that sieving between 978 and 1038 is sufficient. Q(991)Q(999)Q(1011)Q(1022) = ( 2 5 5 7 31)( 2 4 5 2 47)(2 3 5 7 19)(19 31 47) = 2 12 5 4 7 2 19 2 31 2 47 2. gcd((991 999 1011 1022) (2 6 5 2 7 19 31 47), 1016801) = 4051 gcd((991 999 1011 1022) + (2 6 5 2 7 19 31 47), 1016801) = 251 Hence, 1016801 = 4051 251. (f) 1149847 Base 2: 1149846 = 2 574923. 2 574923 923023 (mod 1149847). 2 1149846 372808 (mod 1149847). Fail the test! so 1149847 is a composite. {2, 3, 13, 17, 19, 23, 41, 61, 67, 71, 73}. Also note that 1149847 = 1072 and we find that sieving between 1012 and 1131 is sufficient. Q(1077)Q(1085) = (2 71 2 )(2 3 4 13 2 ) = 2 2 3 4 13 2 71 2. gcd((1077 1085) (2 3 2 13 71), 1149847) = 521 gcd((1077 1085) + (2 3 2 13 71), 1149847) = 2207 Hence, 1149847 = 521 2207.

Problem 2 Here are 6 possible factors: (1) Q(103) Q(107) = 2 10 7 2. 2 potential factors: gcd(103 107 + 2 10 7 2, 10553) gcd(103 107 2 10 7 2, 10553) (2) Q(103) Q(110) Q(111) = 2 6 7 2 13 2 17 2. 2 potential factors: gcd(103 110 111 + 2 6 7 2 13 2 17 2, 10553) gcd(103 110 111 2 6 7 2 13 2 17 2, 10553) (3) Q(107) Q(110) Q(111) = 2 10 7 2 13 2 17 2. 2 potential factors: gcd(107 110 111 + 2 10 7 2 13 2 17 2, 10553) gcd(107 110 111 2 10 7 2 13 2 17 2, 10553) Problem 3 Note that the form p 2 k 2047q2 k = ±Q k 1 p 2 k ±Q k 1 (mod 2047). In order to use the quadratic sieve, we want the product of some (±Q k 1 ) to be a perfect square. Observe that in the Q k+1 given, we already have a perfect square when p k = 181 and Q k+1 = 3 2. Therefore, we can use this one to try to factorize 2047. Following the observation above, we have: 181 2 3 2 (mod 2047). Now, we find that gcd(181 + 3, 2047) = 23 and 2047/23 = 89. Hence, we get 2047 = 23 89. The period is at least 5. Problem 4 Let s look at the first few convergents of 154421. Note: You were supposed to compute the convergents using the algorithm used in class. I will omit this step in the solution, but you should be able to obtain the same 6 first convergents by going through the algorithm. [Steps of the algorithm: (1) compute α i s and a i s, (2) find p i s and q i s. You now have the convergents and are able to compute Q i s.]

First convergent: 392 392 2 154421 1 2 = 757. Not a perfect square. Second convergent: 393 393 2 154421 1 2 = 28 = 2 2 7. Not a perfect square and cannot get a perfect square with a product of previous convergents. Third convergent: 11003/28 11003 2 154421 28 2 = 55 = 5 11. Not a perfect square and cannot get a perfect square with a product of previous convergents. Fourth convergent: 154435/393 154435 2 154421 393 2 = 196 = 2 2 7 2 = 14 2. Perfect square. We can compute the gcd to find out if it gives us a factorization: gdc(154435 + 14, 154421) = 1 and gdc(154435 14, 154421) = 154421. So it doesn t give us a factorization! We continue looking at convergents... Fifth convergent: 474308/1207 474308 2 154421 1207 2 = 565 = 5 113. Not a perfect square and cannot get a perfect square with a product of previous convergents. Sixth convergent: 628743/1600 628743 2 154421 1600 2 = 49 = 7 2. Perfect square. We can compute the gcd to find out if it gives us a factorization: gdc(628743 + 7, 154421) = 503 and 154421/503 = 307. Hence we get 154421 = 307 503.