Practice Final Solutions

Similar documents
Practice Final Solutions

MATH 3240Q Introduction to Number Theory Homework 7

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

MATH342 Practice Exam

Mersenne and Fermat Numbers

Math 104B: Number Theory II (Winter 2012)

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Mobius Functions, Legendre Symbols, and Discriminants

By Evan Chen OTIS, Internal Use

MATH 2710: NOTES FOR ANALYSIS

Number Theory Naoki Sato

1 Integers and the Euclidean algorithm

QUADRATIC RECIPROCITY

FERMAT S LAST THEOREM

The Euler Phi Function

Representing Integers as the Sum of Two Squares in the Ring Z n

MA3H1 TOPICS IN NUMBER THEORY PART III

MAT 311 Solutions to Final Exam Practice

M381 Number Theory 2004 Page 1

We collect some results that might be covered in a first course in algebraic number theory.

HENSEL S LEMMA KEITH CONRAD

Algebraic Number Theory

QUADRATIC RECIPROCITY

Pythagorean triples and sums of squares

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

MA3H1 Topics in Number Theory. Samir Siksek

.4. Congruences. We say that a is congruent to b modulo N i.e. a b mod N i N divides a b or equivalently i a%n = b%n. So a is congruent modulo N to an

Outline. EECS150 - Digital Design Lecture 26 Error Correction Codes, Linear Feedback Shift Registers (LFSRs) Simple Error Detection Coding

Primes - Problem Sheet 5 - Solutions

The Arm Prime Factors Decomposition

LECTURE 10: JACOBI SYMBOL

Elementary Proof That There are Infinitely Many Primes p such that p 1 is a Perfect Square (Landau's Fourth Problem)

Diophantine Equations and Congruences

Cryptography Assignment 3

MATH 361: NUMBER THEORY EIGHTH LECTURE

Sets of Real Numbers

RECIPROCITY LAWS JEREMY BOOHER

On generalizing happy numbers to fractional base number systems

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,

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

MATH 310: Homework 7

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

Elementary Number Theory

GAUSSIAN INTEGERS HUNG HO

t s (p). An Introduction

THE DIOPHANTINE EQUATION x 4 +1=Dy 2

A Curious Property of the Decimal Expansion of Reciprocals of Primes

ERRATA AND SUPPLEMENTARY MATERIAL FOR A FRIENDLY INTRODUCTION TO NUMBER THEORY FOURTH EDITION

On the Diophantine Equation x 2 = 4q n 4q m + 9

Introduction to Arithmetic Geometry Fall 2013 Lecture #10 10/8/2013

MAS 4203 Number Theory. M. Yotov

Summary Slides for MATH 342 June 25, 2018

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

Verifying Two Conjectures on Generalized Elite Primes

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

HOMEWORK # 4 MARIA SIMBIRSKY SANDY ROGERS MATTHEW WELSH

Chapter 7 Rational and Irrational Numbers

Elementary Analysis in Q p

MATH 371 Class notes/outline October 15, 2013

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

Jacobi symbols and application to primality

Public Key Cryptosystems RSA

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Elliptic Curves Spring 2015 Problem Set #1 Due: 02/13/2015

Multiplicative group law on the folium of Descartes

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

6 Binary Quadratic forms

16 The Quadratic Reciprocity Law

Quadratic Reciprocity

19th Bay Area Mathematical Olympiad. Problems and Solutions. February 28, 2017

Characteristics of Fibonacci-type Sequences

2 Asymptotic density and Dirichlet density

2 Asymptotic density and Dirichlet density

Introductory Number Theory

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21

ASSIGNMENT Use mathematical induction to show that the sum of the cubes of three consecutive non-negative integers is divisible by 9.

On the Multiplicative Order of a n Modulo n

PRIME NUMBERS YANKI LEKILI

POINTS ON CONICS MODULO p

Chapter 3. Number Theory. Part of G12ALN. Contents

MATH 152 NOTES MOOR XU NOTES FROM A COURSE BY KANNAN SOUNDARARAJAN

Diophantine Equations

Maths 4 Number Theory Notes 2012 Chris Smyth, University of Edinburgh ed.ac.uk

Outline. CS21 Decidability and Tractability. Regular expressions and FA. Regular expressions and FA. Regular expressions and FA

When do Fibonacci invertible classes modulo M form a subgroup?

Elementary Number Theory Review. Franz Luef

SQUARES IN Z/NZ. q = ( 1) (p 1)(q 1)

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

The Group of Primitive Almost Pythagorean Triples

On the Square-free Numbers in Shifted Primes Zerui Tan The High School Attached to The Hunan Normal University November 29, 204 Abstract For a fixed o

Intrinsic Approximation on Cantor-like Sets, a Problem of Mahler

Excerpt from "Intermediate Algebra" 2014 AoPS Inc.

MATH 371 Class notes/outline September 24, 2013

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

On the Rank of the Elliptic Curve y 2 = x(x p)(x 2)

RINGS OF INTEGERS WITHOUT A POWER BASIS

Number Theory and Cryptography

arxiv: v1 [math.nt] 4 Nov 2015

Transcription:

Practice Final Solutions 1. True or false: (a) If a is a sum of three squares, and b is a sum of three squares, then so is ab. False: Consider a 14, b 2. (b) No number of the form 4 m (8n + 7) can be written as a sum of two squares. True: Since it cannot be written as a sum of three squares, it cannot be written as a sum of two squares. (c) A number can be both a quadratic residue modulo an odd rime, and a rimitive root modulo. False: If a is a quadratic residue mod then by Euler s criterion a ( 1)/2 1 and so the order of a is not 1. (d) A erfect number must have at least four divisors. True: If n > 1 is erfect then σ(n) 2n. If it has just two divisors then σ(n) n + 1 < 2n. Hence it must have a third divisor d and thus also a fourth divisor n/d (which may be d and then you can argue why there must then be yet another divisor). (e) An infinite simle continued fraction never converges to a rational number. True: roved in class. 2. Let be an odd rime. Find a formula for the Legendre symbol ( ) 2 SOLUTION: One has ( ) 2 ( 1 ) ( ) 2 Let us find a formula for when this is equal to 1. The two cases are 1 1 1 and ( 1) ( 1) 1. The first is the case if 1 mod 4 and ±1 mod 8. This means that one needs 1 mod 8. The second is the case if 3 mod 4 and 3 or mod 8. This means that 3 mod 8. Hence ( ) 2 1 1

if and only if 1 or 3 mod 8. 3. Let 1 mod 4 be a rime and a a quadratic residue mod. Decide with justification if then automatically a is quadratic residue mod. SOLUTION: Since a a mod it suffices to decide if a is a quadratic residue. But ( ) ( ) ( ) a 1 a ( 1) ( 1)/2 1 1 since a is a quadratic residue and 1 mod 4. 4. (a) Calculate φ(7!). SOLUTION: Note that 7! 1 2 3 2 2 2 3 7 2 4 3 2 7 Hence φ(7!) φ(2 4 )φ(3 2 )φ()φ(7) 2 3 3 2 4 6 2 7 3 2 (b) Suose and q are twin rimes, i.e. q + 2. Show that φ(q) φ() + 2 SOLUTION: Since and q are rimes one has φ(q) q 1 + 2 1 ( 1) + 2 φ() + 2 (c) Suose n 2 2k Find τ(n) and σ(n). SOLUTION: τ(n) 2 k + 1 σ(n) 2 2k +1 1. Find the 8th convergent of 2 As we saw in class, 2 [1, 2]. We find 7 /q 7 (if you found 8 /q 8, that s ok). 0 1, 1 2 + 1 3, 2 6 + 1 7, 3 14 + 3 17, 4 34 + 7 41, 82 + 17 99, 6 198 + 41 239, 7 478 + 99 77. q 0 1, q 1 2 2, q 2 4 + 1, q 3 10 + 2 12, q 4 24 + 29, q 8 + 12 70, q 6 140 + 29 169, q 7 338 + 70 408. Hence the eighth convergent, C 7 is 77/408. 2

6. Suose is rime and n 2 and a 2 1 mod n. Show that ord n a 2 if and only if a 1 mod n. SOLUTION: Since a 2 1 mod n it follows that the order of a divides 2. It is hence one of 1,, 2 since is a rime. It is then clear that the order is 2 recisely when a 1 mod n. 7. Let n 1. Find SOLUTION: Note that gcd(n, 2n 2 + 1) (2n 2 + 1) 2n n 1 It follows that the gcd is 1. 8. Find a number λ between 200 and 20 such that for every n φ(λ) there exists an integer A such that ord λ (A) n. SOLUTION: 233 is a rime number, so there is a rimitive root r mod 233. So, if n φ(233) 232, we have that the order of r 232/n is recisely n mod 233, since it is ord 233 (r)/(ord 233 (r), 232/n) 232/(232/n) n. 9. (a) State the Mobius inversion formula. (b) Show that for all n 1 one has τ(d)µ(n/d) 1 d n SOLUTION: Let By Mobius inversion one has But one also has Hence and hence and hence f τ µ τ f 1 τ 1 1 (f 1) µ (1 1) µ f δ 1 δ f 1 and this imlies the desired result. 3

10. (a) Find all rimitive roots modulo 23. First, note that is a rimitive root mod 23, since its order mod 23 must divide φ(23) 22, and so it must be 2, 11, or 22. We have 2 2 and 1 1 ( 2 ) 32 4 1 (mod 23), and so ord 23 () 22. Then we have that the set of rimitive roots is, 3,, 7, 9, 13, 1, 17, 19, 21, since all of these owers have gcd 1 with ord 23 () 22. (b) How many rimitive roots are there modulo 171? SOLUTION: 171 is 9 19, and by the rimitive root theorem there are no rimitive roots modulo a number of this form (since it is not a ower of a rime, or twice the ower of a rime). (c) How many rimitive roots are there modulo 173? SOLUTION: 173 is rime, so there are φ(φ(173)) φ(172) φ(4 43) 2 42 84 rimitive roots (mod 1)73. 11. How many rimitive roots are there modulo 26 100? SOLUTION: None: by the Primitive Root Theorem, only modulo numbers of the form 1, 2, 4, m, and 2 m where is an odd rime and m 1 is an integer can one have a rimitive root. 12. Find the order of 12 modulo 3. SOLUTION: We have that this order must divide φ(3) 24, and cannot be 24 since there are no rimitive roots modulo 3. Hence we check that 12 2 4 (mod 3), 12 3 13 (mod 3), 12 4 16 (mod 3), 12 6 29 (mod 3). The only remaining ossible order is 12 is 12, so this is the order. ord 3 (12) 12 13. Write down the continued fraction exansion for 29. Find its first five convergents. SOLUTION: 29, so the first term of the exansion is. The next term is 1 29 + 2. 29 4 The next term is 29 + 4 4 29 + 12 29 + 3 1/( 2) 1. 4 29 3 20 4

The next term is 29 + 3 29 + 10 29 + 2 1/( 1) 1. 29 2 2 The next term is 29 + 2 29 + 1 29 + 3 1/( 1) 2. 29 3 20 4 The next term is 29 + 3 4 4 29 + 20 1/( 2) 29 + 10. 4 29 4 The next term is 1 2 29 from before. Clearly, from now on the terms will reeat the eriod 2, 1, 1, 2, 10, so the continued fraction exansion is 29 [, 2, 1, 1, 2, 10]. The first five convergents are which are, 11/2, 16/3, 27/, 70/13., [, 2], [, 2, 1], [, 2, 1, 1], [, 2, 1, 1, 2], 14. Which quadratic irrational does the continued fraction [4, 2, 1] corresond to? SOLUTION: First we note that if β [2, 1], then β 2 + 1 1 + 1, β so, so 1 2 β + 1 β + 1 β 2 + β 2β + 2 + β 3β + 2, and so β 2 2β 2 0, meaning β 2 + 4 + 8 2 or β 2 4 + 8 2

It cannot be the latter, as it is ositive, so β 1 + 3. Now, we have [4, 2, 1] 4 + 1 β 4 + 1 3 1 3 + 7 1 + 3 4 +. 2 2 1. For which ositive integers a is (a+ )/3 exressed as an eventually eriodic continued fraction? A eriodic continued fraction? SOLUTION: Since this is a quadratic irrational for all integers a, it has an eventually eriodic continued fraction for all integers a. In order for the continued fraction to be eriodic, we must furthermore have that (a + )/3 > 1, meaning that a 1. Finally, we must have that 1 < (a )/3 < 0, and so a 2. Thus a may be 1 or 2 for this to be a eriodic continued fraction. 16. Find two continued fraction exansions for 13. Are there others? Why or why not? SOLUTION: Run the Euclidean algorithm on (13, ) and get 13 2 + 3 1 3 + 2 3 1 2 + 1 2 2 1. Thus one continued fraction exansion of 13/ is [2, 1, 1, 2], and another is [2, 1, 1, 1, 1], since 1/2 1/(1 + 1/1). These are the only two exansions, since rational numbers always have exactly two exansions, as roven on the homework. 17. Show that 042 2911 is a convergent of 3 1.73200807.... This isn t a great ractice roblem, because its best done with a calculator. However, it hels us to recall an imortant result. If you comute 3 042 2911, this is 0.000000034066 < 1 2(2911) 2 0.0000000900, and so this must be a convergent by a theorem shown in class. 18. Which of the following can be written as a sum of two squares? A sum of three squares? Four squares? (a) 39470 (b) (c) 3478 6

(d) 12! (e) A number of the form 2 + 2, where is a rime. SOLUTION: For the first three of these, one first writes down the rime factorizations: they are 2 3947, 41 271, 2 3 2 17 113. All of these contain rimes in the rime factorization which are 3 mod 4 but not taken to an even ower, so none are sums of two squares. Also, 3 is a rime divisor of 12!, but it divides 12! exactly u to the fifth ower, which is not even, and hence 12! is also not a sum of two squares. Finally, for the last examle, if is even, 2 + 2 6 which is not a sum of two squares, and 2 + 2 3 (mod 4) if is odd, so this is never a sum of two squares. Now we check for sums of three squares. The only numbers not exressible as sums of three squares are of the form 4 m (8n + 7). None of the first three examles are divisible by a ower of 4, so we just check them mod 8. The first examle is even mod 8, the second examle is 3 mod 8, so it can be written as a sum of three squares. The third examle is again even mod 8, and so it also can be written as a sum of three squares. The fourth examle is 4 3 2 7 11, where 3 2 7 11 is 7 mod 8, so it cannot be written as a sum of three squares. The last examle can always be written as 2 +1 2 +1 2. All of these can be written as a sum of four squares, since all integers can be. 19. Suose x Z >0 can be written as a sum of two squares. What is the necessary and sufficient condition on y Z >0 for xy to be exressible as a sum of two squares? SOLUTION: The necessary and sufficient condition is that y is a sum of two squares. It is sufficient because the roduct of two integers that are sums of two squares is also a sum of two squares. To see that it is necessary, suose y cannot be written as a sum of two squares, but x can. FIrst of all, this means that there is a rime that is 3 mod 4 and such that the highest ower of dividing y is an odd ower. Second of all, whenever is such a rime, the highest ower of dividing x is even (maybe 0). So the highest ower of dividing xy is odd, and so xy cannot be written as a sum of two squares. 20. Show that the area of any right triangle with all integer sides is divisible by 6. SOLUTION: Given the arametrization of rimitive Pythagorean triles (x, y, z), we have that x m 2 n 2, y 2mn, z m + n 2 for some integers m, n which are relatively rime, and such that exactly one of them is even. Since one of them is even, y is divisible by 4. Suose m is even, n is odd, and neither is divisible by 3. Then both m 2 and n 2 have to be 1 mod 3, and so x is divisible by 3, and the area, xy/2, is divisible by 12/2 6. If one of m, n is divisible by 3, then y is divisible by 12 and so the area is divisible by 6. 7

21. Which rimes can be the hyotenuse (i.e. largest integer) in a rimitive Pythagorean trile? Justify your answer. SOLUTION: In a rimitive Pythagorean trile, the hyotenuse is always a sum of two squares, m 2 + n 2. Hence any rime that is 1 (mod 4) can be the hyotenuse of a PPT, and no others (2 is not a hyotenuse for a PPT). Note that if the hyotenuse is rime, then the trile must be rimitive unless one of the legs is 0. This would mean either m or n is 0 (not ossible since is not a square) or that m n, which would mean 2m 2 which is true for no rime excet 2. 8