SUMS OF SQUARES WUSHI GOLDRING

Similar documents
Solutions to Assignment 1

Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?

Modular Arithmetic Instructor: Marizza Bailey Name:

Discrete Logarithms. Let s begin by recalling the definitions and a theorem. Let m be a given modulus. Then the finite set

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

6: Polynomials and Polynomial Functions

Table of Contents. 2013, Pearson Education, Inc.

Number Theory Seminar Spring, 2018: Modularity

Primes. Rational, Gaussian, Industrial Strength, etc. Robert Campbell 11/29/2010 1

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

Number theory (Chapter 4)

Honors Advanced Mathematics November 4, /2.6 summary and extra problems page 1 Recap: complex numbers

Notes on Primitive Roots Dan Klain

Continuing discussion of CRC s, especially looking at two-bit errors

Winter Camp 2009 Number Theory Tips and Tricks

Pierre de Fermat ( )

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

MATH 2200 Final Review

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

Fermat s Last Theorem for Regular Primes

Elliptic Curves. Kenneth A. Ribet. PARC Forum October 17, UC Berkeley

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

Number Theory Homework.

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

= 5 2 and = 13 2 and = (1) = 10 2 and = 15 2 and = 25 2

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

Introduction: Pythagorean Triplets

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

Contest Number Theory

LECTURE NOTES IN CRYPTOGRAPHY

CIS 6930/4930 Computer and Network Security. Topic 5.1 Basic Number Theory -- Foundation of Public Key Cryptography

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

Elementary Number Theory

Math Topics in Algebra Course Notes: A Proof of Fermat s Last Theorem. Spring 2013

Wilson s Theorem and Fermat s Little Theorem

Mathematics of Cryptography

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

2.57 PART E: THE FUNDAMENTAL THEOREM OF ALGEBRA (FTA) The Fundamental Theorem of Algebra (FTA)

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

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

Introduction. Question 1

Section X.55. Cyclotomic Extensions

3.4 Pascal s Pride. A Solidify Understanding Task

PRODUCTS THAT ARE POWERS. A mathematical vignette Ed Barbeau, University of Toronto

Colloq. Math. 145(2016), no. 1, ON SOME UNIVERSAL SUMS OF GENERALIZED POLYGONAL NUMBERS. 1. Introduction. x(x 1) (1.1) p m (x) = (m 2) + x.

Results of modern sieve methods in prime number theory and more

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Solutions to Practice Final

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

Exam 2 Solutions. In class questions

[Part 2] Asymmetric-Key Encipherment. Chapter 9. Mathematics of Cryptography. Objectives. Contents. Objectives

A Generalization of Wilson s Theorem

MATH CSE20 Homework 5 Due Monday November 4

MATH 25 CLASS 8 NOTES, OCT

are essentially different? Imagine them as made out of string. No fidgeting with them (without cutting) can make them look identical!

The Work of Akshay Venkatesh. Allyn Jackson

1 Modular Arithmetic Grade Level/Prerequisites: Time: Materials: Preparation: Objectives: Navajo Nation Math Circle Connection

Number Theory. Raj Jain. Washington University in St. Louis

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

Representing numbers as the sum of squares and powers in the ring Z n

On the Cardinality of Mersenne Primes

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Number Theory Proof Portfolio

Fall 2017 Test II review problems

(Primes and) Squares modulo p

PRIME NUMBERS YANKI LEKILI

A versatile proof of Fermat s last theorem

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

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

CYCLES AND FIXED POINTS OF HAPPY FUNCTIONS

Heuristics for Prime Statistics Brown Univ. Feb. 11, K. Conrad, UConn

ELLIPTIC CURVES BJORN POONEN

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

Shi Feng Sheng Danny Wong

Roots of Unity, Cyclotomic Polynomials and Applications

3.4 Pascal s Pride. A Solidify Understanding Task

Beautiful Mathematics

Eureka Math. Algebra II Module 1 Student File_A. Student Workbook. This file contains Alg II-M1 Classwork Alg II-M1 Problem Sets

Encryption: The RSA Public Key Cipher

Basic elements of number theory

Basic elements of number theory

Example 2: Student work M ATHS COURSEWORK. Mathematics SL and HL teacher support material 1. Proving Euler s Totient Theorem

CHMC: Finite Fields 9/23/17

Cool Results on Primes

Lesson 1: Successive Differences in Polynomials

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

Modular Arithmetic Investigation

Math 229: Introduction to Analytic Number Theory Elementary approaches I: Variations on a theme of Euclid

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CIRCLES AND TABLES AND SLEEPING

Discrete Math, Fourteenth Problem Set (July 18)

8 Primes and Modular Arithmetic

MATH 361: NUMBER THEORY FOURTH LECTURE

Fermat's Little Theorem

Elementary Introduction to the Langlands Program. III

SQUARE PATTERNS AND INFINITUDE OF PRIMES

Ramsey Unsaturated and Saturated Graphs

5.2. Perfect Numbers Divisors of a natural number were covered in Section 5.1.

EULER S THEOREM KEITH CONRAD

Transcription:

SUMS OF SQUARES WUSHI GOLDRING 1. Introduction Here are some opening big questions to think about: Question 1. Which positive integers are sums of two squares? Question 2. Which positive integers are sums of three squares? Question 3. Which positive integers are sums of four squares? People started thinking seriously about these questions and answered them in the 17th and 18th centuries. The rst question, involving two squares, was studied by Pierre de Fermat. You may have heard of him in connection with Fermat's Last Theorem, which states that when n 3, the equation x n + y n = z n has no solutions with x, y, z all positive integers. This last statement was proved in the 1990's by Andrew Wiles. I mention this also so that you see that Fermat's work has kept people busy to this day. Back to sums of squares. Let's start computing a little. Question 4. Of the numbers from 1 to 10, which are sums of 2 squares? 3 squares? 4 squares? (We count 0 as a square, 0 = 0 2 ) From this little experiment, it seems like more numbers are sums of 3 squares than 2 squares, and more numbers are sums of 4 squares than 3 squares. It turns out this is indeed true. Up to 10, we could not nd a number which is not a sum of 4 squares. Question 5. Is there a positive integer that is not a sum of four squares? Think about it, it's not easy to answer! W. G. Department of Mathematics, Washington University in St. Louis, One Brookings Drive, St. Louis, MO 63130, USA E-mail address: wushijig@gmail.com. Date: March 10, 2016. 1

2. Primes and prime factorization A positive integer n > 1 is prime if the only positive integers that are factors of n are 1 and n itself. For example, 17 is prime, but 15 is not, because 15 = 3 5. Primes are the building blocks of all positive integers. Every positive integer can be written in a unique way as a product of primes (up to reordering the factors); this is called prime factorization. Problem 6. Find the prime factorization of the following numbers: 105, 61, 75, 192. Most questions about numbers can be reduced to asking the same question only about prime numbers. So if we have a question about numbers, we might try rst to study it for prime numbers, and then build up from there by using prime factorization. Let's apply these general comments to Question 1 about sums of 2 squares. 2

3. Primes that are sums of 2 squares We want to nd out which primes are sums of 2 squares. Problem 7. Below is a list of the primes up to 100. Find the ones that are sums of 2 squares. Here are the primes: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 Question 8. Can you make a conjecture based on what you found looking up to 100? 3

4. Modular arithmetic What makes one prime dierent from another? Here is one simple way to split o primes into three groups: Start with an odd prime number p. Divide it by 4. You get a remainder. What are the possible remainders? At rst, you know the remainder is between 0 and 3, inclusive. But since p is odd, the remainder must be odd, so 0 and 2 are excluded. Therefore the remainder must be either 1 or 3. So we can group primes into (i) those that have remainder 1 when divided by 4, (ii) those that have remainder 3 when divided by 4, and (iii) the unique even prime: 2. The study we performed of looking at remainders after dividing by a xed number (in our case the number 4) is called modular arithmetic. In our case we looked at primes modulo 4. We could equally take the primes and see what remainders we get when we divide by 5. This will be called looking at the primes modulo 5. When we divide by 5, the primes split o into 5 groups (instead of the 3 groups that we had for division by 4). Problem 9. Here again is the list of primes up to 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97. Determine which admit remainder 1 when divided by 4 and which admit remainder 3 when divided by 4. Compare your answer with your answer to Problem 7 and then reconsider Question 8. Has your answer changed? 4

Theorem 10 (Fermat-Euler). The primes which are sums of 2 squares are precisely the prime 2 and those odd primes that admit remainder 1 when divided by 4. I can't prove this theorem for you today. For those of you who go on to study some number theory, you can nd a nice proof in [Sam70, V.6]. You can prove the negative half of this theorem: Problem 11. Show that if n is a positive integer whose remainder when divided by 4 is 3, then n is not a sum of 2 squares (it makes no dierence whether you assume n is prime or not in this problem). On the other hand, for the positive direction of the theorem, the assumption that the number is prime is crucial: Problem 12. Give an example of a number whose remainder when divided by 4 is equal to 1, and which is not a sum of 2 squares. For now, if we accept this theorem, it leads us to some natural questions: Question 13. Are there innitely many primes which are sums of 2 squares? Are there innitely many primes that are not sums of 2 squares The second part is easier: Problem 14. Give an argument why there are innitely many primes whose remainder modulo 4 is equal to 3 The other part is a bit trickier. Problem 15 (This is a hard one, can one of you do it?). Give an argument why there are innitely many primes whose remainder modulo 4 is equal to 1. 5

5. Sums of 2 squares: Building up from primes The main tool for exhibiting numbers that are not prime as sums of 2 squares is the following product property: Question 16. Suppose we know that n = x 2 + y 2 and m = z 2 + w 2. Can you express the product nm as a sum of 2 squares? Here are some examples to try rst: Given that 17 = 4 2 + 1 2 and 5 = 2 2 + 1 2, how can you write 85 = 5 17 as a sum of 2 squares? Given that 41 = 4 2 + 5 2 and 29 = 5 2 + 2 2, how can you write 1189 = 41 29 as a sum of 2 squares? Hint: Try making up combinations out of the x, y, z, w. Here is a somewhat related question: Question 17. What is the smallest number that is a sum of 2 squares in 2 dierent ways? For example, 205 is a sum of 2 squares in 2 dierent ways, because 205 = 14 2 + 3 2 = 13 2 + 6 2, but it is not the smallest example. If this is too easy for you, what is the smallest number that is a sum of 2 squares in 4 dierent ways? Question 18. Can you now conjecture exactly which numbers are sums of 2 squares? 6

Theorem 19 (Fermat-Euler). A positive integer n is a sum of 2 squares if and only if, when we factor it into primes, each prime which is 3 modulo 4 appears with an even exponent. Problem 20. Using the theorem, determine whether each of and are sums of two squares. 41 67 3 97, 53 103 2 2 5 29 8 1001 7

6. Sums of 4 squares Theorem 21 (Lagrange). Every positive integer is a sum of 4 squares. This theorem is again too hard for us to prove right now, but you may be able to check the following ingredient: Problem 22. Suppose n and m are sums of 4 squares. Without assuming the theorem, show that the product nm is also a sum of 4 squares. (Hint: The idea is the same as for two squares, the computation is just more involved) Given the problem, you see that in order to prove the theorem, it is enough to prove that every prime is a sum of 4 squares. Again, if you go on to study number theory, you can nd a proof of this in [Sam70, V.7] 8

7. Sums of 3 squares Sums of 3 squares is by far the hardest of the three initial problems! Nevertheless, there are some important observations that you can make: Problem 23. Show that, if n is a sum of 3 squares and n is divisible by 4, then n/4 is also a sum of 3 squares. Hint: Write n = x 2 + y 2 + z 2 and now try to make 3 numbers x 1, y 1 and z 1 out of x, y, z such that n/4 = x 2 1 + y 2 1 + z 2 1. Problem 24. Suppose that when you divide n by 8 the remainder is 7. Show that n is not a sum of 3 squares. 9

Theorem 25 (Gauss). The positive integers which are not sums of 3 squares are precisely those that can be written as 4 e (8n + 7) for some non-negative integers e and n. You have already seen that 7 is not a sum of 3 squares; 7 is the case e = n = 0. You can check that 15 and 28 are also not a sum of 3 squares; these are the cases (e = 0, n = 1) and (e = 1, n = 0). To see a proof of this last theorem requires a more in-depth study of number theory. My favorite reference is [Ser73, Appendix to Chapter IV]. 10

8. Where to go from here: Sums of Cubes? Since we have discussed sums of squares, you might wonder about sums of cubes. This leads questions that are much more dicult, some of which are still open problems. This is suggestive of the general situation in math: Linear equations are easy, quadratic equations are doable, and cubic equations are a complete mystery... References [Sam70] P. Samuel, Algebraic theory of numbers, Hermann, 1970. [Ser73] J.-P. Serre, A course in arithmetic, Graduate Texts in Math., vol. 7, Springer-Verlag, 1973. 11