MT 430 Intro to Number Theory MIDTERM 2 PRACTICE

Similar documents
Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Is 1 a Square Modulo p? Is 2?

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

Quadratic Residues. Legendre symbols provide a computational tool for determining whether a quadratic congruence has a solution. = a (p 1)/2 (mod p).

Introduction to Number Theory 2. c Eli Biham - November 5, Introduction to Number Theory 2 (12)

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

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 124 Homework 5 Solutions

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson

LECTURE 9: QUADRATIC RESIDUES AND THE LAW OF QUADRATIC RECIPROCITY

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

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

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

On the Fibonacci Sequence. By: Syrous Marivani LSUA. Mathematics Department. Alexandria, LA 71302

NUMBER THEORY AMIN WITNO

Conjectures and Results on Super Congruences

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

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Fermat s little theorem. RSA.

Foundations of Cryptography

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

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

SOLUTIONS FOR PROBLEM SET 4

30 HWASIN PARK, JOONGSOO PARK AND DAEYEOUL KIM Lemma 1.1. Let =2 k q +1, k 2 Z +. Then the set of rimitive roots modulo is the set of quadratic non-re

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

1.6 Congruence Modulo m

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

Modular Arithmetic. claserken. July 2016

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

University of Twente

Solutions for the Practice Questions

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

Lab 4: The transformer

Wilson s Theorem and Fermat s Theorem

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

The Chinese Remainder Theorem

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

Number Theory. Konkreetne Matemaatika

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

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

Pre-Algebra Unit 1: Number Sense Unit 1 Review Packet

SIZE OF THE SET OF RESIDUES OF INTEGER POWERS OF FIXED EXPONENT

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

Solutions for the Practice Final

RESIDUE NUMBER SYSTEM. (introduction to hardware aspects) Dr. Danila Gorodecky

The Chinese Remainder Theorem

Solutions for the 2nd Practice Midterm

Analysis of Electronic Circuits with the Signal Flow Graph Method

Math 412: Number Theory Lecture 6: congruence system and

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

Snow College Mathematics Contest

Math 319 Problem Set #7 Solution 18 April 2002

Economics of Strategy (ECON 4550) Maymester 2015 Foundations of Game Theory

Public Key Encryption

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

SQUARING THE MAGIC SQUARES OF ORDER 4

MA10103: Foundation Mathematics I. Lecture Notes Week 3

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

Two sequences completely characterize an ordinary continued fraction: a 1. , a 2

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

#A3 INTEGERS 17 (2017) A NEW CONSTRAINT ON PERFECT CUBOIDS. Thomas A. Plick

Math 127: Equivalence Relations

Sheet 1: Introduction to prime numbers.

Goldbach conjecture (1742, june, the 7 th )

Numbers (8A) Young Won Lim 5/22/17

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

Numbers (8A) Young Won Lim 6/21/17

Numbers (8A) Young Won Lim 5/24/17

SERIES RL CIRCUITS (1)

Algorithmic Number Theory and Cryptography (CS 303)

CSE 20 DISCRETE MATH. Fall

Order and Compare Rational and Irrational numbers and Locate on the number line

Pre-Test Unit 7: Real Numbers KEY

by Michael Filaseta University of South Carolina

A MAGIC FORMULA OF NATURE

DUBLIN CITY UNIVERSITY

CHAPTER 2. Modular Arithmetic

Applications of Fermat s Little Theorem and Congruences

Primitive Roots. Chapter Orders and Primitive Roots

BRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 2006 Senior Preliminary Round Problems & Solutions

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

Square Roots of Perfect Squares. How to change a decimal to a fraction (review)

MATH 135 Algebra, Solutions to Assignment 7

Computational Complexity of Generalized Push Fight

Monotone Sequences & Cauchy Sequences Philippe B. Laval

ON THE EQUATION a x x (mod b) Jam Germain

Carmen s Core Concepts (Math 135)

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Roots and Radicals Chapter Questions

IMPROVED POLYNOMIAL TRANSITION REGIONS ALGORITHM FOR ALIAS-SUPPRESSED SIGNAL SYNTHESIS

Math 255 Spring 2017 Solving x 2 a (mod n)

MATH 118 PROBLEM SET 6

6.2 Modular Arithmetic

12. Let Rm = {0,1,2,..., m 1} be a complete residue system modulo ra. Let a be an integer. When is a Rm = {0,1 a, 2 a,...

Numbers & Operations Chapter Problems

Diffie-Hellman key-exchange protocol

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

EE 418: Network Security and Cryptography

Write each expression using exponents a b c x x x y y x. x y. x 3 y. x y. x y

Transcription:

MT 40 Intro to Number Theory MIDTERM 2 PRACTICE Material covered Midterm 2 is comrehensive but will focus on the material of all the lectures from February 9 u to Aril 4 Please review the following toics covered before Midterm : () Euler s φ-function (2) Algebraic congruences Hensel s lemma () Euler s criterion New toics for Midterm 2 are: () Primitive roots of rime numbers (2) Solving algebraic congruences x a b (mod ) () Legendre s symbol (4) Gauss lemma () Quadratic recirocity laws (6) Continued fractions (7) Reresentation of rational numbers by simle continued fraction using Euclidean algorithm (8) Infinite continued fractions (9) Reresentation of quadratic irrationals by eriodic infinite continued fractions (0) Solving Pell s equation using continued fractions To reare for the midterm, review your lecture notes and redo Problems Sets 4,, 6 (also read and work through the osted solutions) Here are a few extra ractice roblems: 2 Practice roblems Problem What are all ossible orders of elements in F 9? Solution: The order of any element in F 9 divides 9 8 It follows that the orders can be only, 2,, 6, 9, 8 To see that these orders are ossible, consider any rimitive root ζ Then ζ has order 8, ζ 2 has order 9, ζ has order 6, ζ 6 has order, ζ 9 has order 2, and of course ζ 0 has order Problem 2 Find all rimitive roots of 9 Solution: A rimitive root of 9 is an element ζ F 9 of order 8 By Problem, an element of F 9 is a rimitive root as long as it does not satisfy equation x 6 or x 9 We start checking non-zero residues one by one Begin with 2: clearly, 2 6 64 7 (mod 9) and 2 9 2 (mod 9) It follows that 2 is a rimitive root of 9 Every rimitive roots of 9 can now be written as 2 k, where k {, 2,, 8} is corime to 8: 2, 2, 2 7, 2, 2, 2

2 MIDTERM 2 PRACTICE Problem Find all solutions of x 2 7 (mod 9) and x 2 6 (mod 9) Solution: We use the fact that 2 is a rimitive root of 9 from the revious roblem Write x 2 k Then because 7 64 2 6 (mod 9) the first equation can be rewritten as 2 2k 2 6 (mod 9) This is equivalent to 8 2k 6 The solution to 2k 6 0 (mod 8) are k 2 (mod ) or k 2,, 8,, 4, (mod 8) It follows that the solutions of x 2 7 (mod 9) are x 2 2 4 (mod 9) x 2 2 (mod 9) x 2 8 9 (mod 9) x 2 (mod 9) x 2 4 6 (mod 9) x 2 0 (mod 9) Since we ve discovered that 6 2 4 (mod 9), the second equation can now be rewritten as 2 2k 2 4 (mod 9) or 2k 4 (mod 8) This equation clearly has no solutions because 6 4 Problem 4 Is 8 a square modulo? Does equation x 2 + 6x + 0 (mod ) have a solution? Solution: Comlete the square to re-write the given equation as (x + ) 2 8 (mod ) The question is now whether 8 is a quadratic residue modulo Clearly 8 2 2 Finally, because 7 (mod 8), we conclude that 2 is a square modulo (Indeed 2 64 (mod )) It follows that 8 is also a square modulo The answer to both questions is thus YES Problem Comute Legendre s symbols and Solution: First, By quadratic recirocity, ( ) ( )( )/4 Also, ( ) ( )( )/4 2 2 ( ) (2 )/8 It follows that ( )( )

MIDTERM 2 PRACTICE Next, By quadratic recirocity, ( ) ( )( )/4 Also, It follows that ( ) ( )( )/4 ( )() Problem 6 For which rimes is 6 a square modulo? Solution: Clearly, 6 is a square modulo 2 and modulo Suose now Then 6 2 Recall that Next, { 2 if, 7 (mod 8) if, (mod 8) ( ( ) ( )( )/4 ) ( ( ) ( )/2 ) ( Clearly, ( ) ( )/2 deends on the residue of modulo 4 and deends ) 2 on the residue of modulo Summarizing, both and deend only on 2 the residue of modulo 24 For examle, if (mod 24), then and ( ) ( 6 ( ) ( )( )/4, so that ) Checking the reduced residue system modulo 24, we conclude that if,, 9, 2 6 (mod 24), then and so 6 is a square modulo If 7,,, (mod 24), then 6 is not a square modulo Problem 7 Calculate the continued fraction exansion of 676 07 Solution: Aly the Euclidean algorithm:

4 MIDTERM 2 PRACTICE 676 6 07 + 4 07 4 + 4 6 + 4 4 + 4 4 It follows that 676 6,, 6,, 4 07 Problem 8 Find the infinite continued fraction reresentation of 20 Solution: First, we comute the infinite continued fraction exansion of the reduced quadratic irrational 4 + 20 It turns out to be 8, 2 Indeed, we start with a 0 8, m 0 4, q 0 Then and m a 0 q 0 m 0 4, q (20 m 2 )/ 4, a (4 + 20)/4 2 m 2 a q m 8 4 4, q 2 (20 m 2 2)/4, a 2 4 + 20 8 From now on the values of a i reeat themselves with eriod 8, 2 It follows that 4 + 20 8, 2 8, 2, 8, 2, and so 20 4, 2, 8, 2, 8, 4, 2, 8 Problem 9 Find the irrational number having continued fraction exansion 4, 4, 8 Solution: 8 Problem 0 Suose that h n and h n+ are two successive convergents of a k n k n+ number x Show that for any reduced rational number a in the oen interval b (h n /k n, h n+ /k n+ ) one necessarily has b k n + k n+ Conclude that h n /k n is the best ossible aroximation of x among all rational numbers a/b satisfying b k n Solution: Without loss of generality, we assume that n is even, so that h n < h n+ k n k n+ Then h n+ h ( n hn+ a ) ( a + k n+ k n k n+ b b h ) n k n Clearing the denominators and using the fact that h n+ k n h n k n+ ( ) n we obtain (h n+b ak n+ ) + (ak n bh n ) k n k n+ k n+ b bk n

MIDTERM 2 PRACTICE Let S (h n+ b ak n+ ) and T (ak n bh n ) Then because h n /k n < a/b < h n+ /k n+, we must have S, T > 0 Because S and T are actually integers, we obtain S, T We now have S k n k n+ k n+ b + T bk n Multilying by k n k n+ b, we obtain b Sk n + T k n+ k n + k n+