10/14/08 ON NUMBERS EQUAL TO THE SUM OF TWO SQUARES IN MORE THAN ONE WAY



Similar documents
Ira Fine and Thomas J. Osler Department of Mathematics Rowan University Glassboro, NJ Introduction

SUM OF TWO SQUARES JAHNAVI BHASKAR

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Just the Factors, Ma am


Settling a Question about Pythagorean Triples

PYTHAGOREAN TRIPLES KEITH CONRAD

k, then n = p2α 1 1 pα k

Section 4.2: The Division Algorithm and Greatest Common Divisors

6.1 The Greatest Common Factor; Factoring by Grouping

2004 Solutions Ga lois Contest (Grade 10)

DEFINITIONS. Perpendicular Two lines are called perpendicular if they form a right angle.

6.2 Permutations continued

Math 319 Problem Set #3 Solution 21 February 2002

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

of Nebraska - Lincoln

Factoring (pp. 1 of 4)

Some practice problems for midterm 2

Prime Factorization 0.1. Overcoming Math Anxiety

TEXAS A&M UNIVERSITY. Prime Factorization. A History and Discussion. Jason R. Prince. April 4, 2011

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Today s Topics. Primes & Greatest Common Divisors

Incenter Circumcenter

Math Placement Test Study Guide. 2. The test consists entirely of multiple choice questions, each with five choices.

The sum of digits of polynomial values in arithmetic progressions

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

1 Solution of Homework

The last three chapters introduced three major proof techniques: direct,

z 0 and y even had the form

Trigonometric Functions and Triangles

CSU Fresno Problem Solving Session. Geometry, 17 March 2012

Homework until Test #2

Congruent Number Problem

Grade 7/8 Math Circles Fall 2012 Factors and Primes

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

A Study on the Necessary Conditions for Odd Perfect Numbers

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

4.2 Euclid s Classification of Pythagorean Triples

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

8 Primes and Modular Arithmetic

Integer roots of quadratic and cubic polynomials with integer coefficients

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Math Workshop October 2010 Fractions and Repeating Decimals

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

Chapter 11 Number Theory

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

D.2. The Cartesian Plane. The Cartesian Plane The Distance and Midpoint Formulas Equations of Circles. D10 APPENDIX D Precalculus Review

Factoring Whole Numbers

RSA Question 2. Bob thinks that p and q are primes but p isn t. Then, Bob thinks Φ Bob :=(p-1)(q-1) = φ(n). Is this true?

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

Session 6 Number Theory

GREATEST COMMON DIVISOR

Homework 2 Solutions

Black Problems - Prime Factorization, Greatest Common Factor and Simplifying Fractions

Stupid Divisibility Tricks

4. How many integers between 2004 and 4002 are perfect squares?

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Pythagorean Theorem: Proof and Applications

Introduction to Finite Fields (cont.)

1. Introduction circular definition Remark 1 inverse trigonometric functions

arxiv: v2 [math.ho] 4 Nov 2009

8 Divisibility and prime numbers

MATH 289 PROBLEM SET 4: NUMBER THEORY

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

Factoring and Applications

25 The Law of Cosines and Its Applications

minimal polyonomial Example

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

LAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Notes on Factoring. MA 206 Kurt Bryan

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

MATH 095, College Prep Mathematics: Unit Coverage Pre-algebra topics (arithmetic skills) offered through BSE (Basic Skills Education)

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Lesson 9: Radicals and Conjugates

Pythagorean Triples. becomes

Continued Fractions and the Euclidean Algorithm

Fibonacci Numbers and Greatest Common Divisors. The Finonacci numbers are the numbers in the sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

15 Prime and Composite Numbers

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

QUADRATIC EQUATIONS EXPECTED BACKGROUND KNOWLEDGE

Selected practice exam solutions (part 5, item 2) (MAT 360)

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

Lesson 2: Circles, Chords, Diameters, and Their Relationships

Chapter 3.1 Angles. Geometry. Objectives: Define what an angle is. Define the parts of an angle.

Prime Time: Homework Examples from ACE

2 When is a 2-Digit Number the Sum of the Squares of its Digits?

The Fundamental Theorem of Arithmetic

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

Playing with Numbers

Chapter 1. The Medial Triangle

Quick Reference ebook

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Solving Linear Systems, Continued and The Inverse of a Matrix

Geometry Unit 6 Areas and Perimeters

Factoring Patterns in the Gaussian Plane


POTENTIAL REASONS: Definition of Congruence:

Transcription:

1 10/14/08 ON NUMBERS EQUAL TO THE SUM OF TWO SQUARES IN MORE THAN ONE WAY Ming-Sun Li, Kathryn Robertson, Thomas J. Osler, Abdul Hassen, Christopher S. Simons and Marcus Wright Department of Mathematics Rowan University Glassboro, NJ 0808 Sun@rowan.edu Osler@rowan.edu 1. Introduction Recently at Rowan University we were examining Euler s paper [1] where we found the following statement: Since r must be the sum of two squares in two different ways, r must be the product of two factors of this same form. In other words, r = ( aa + bb)( cc + dd ). Euler gives no proof of this statement, so he probably assumed that it was familiar to his readers. Since none of us were aware of this idea, we tried to prove it, and after about two weeks found an advanced proof using the unique factorization property of Gaussian integers. This proof had the disappointing feature that it did not show how to find the numbers a, b, c, and d, but simply demonstrated their existence. Later we found a constructive proof and were surprised to see how elementary it was using only precalculus mathematics. It is the purpose of this paper to show this derivation which we hope will be of interest to serious students of mathematics at all levels. The smallest number that can be written as the sum of two squares in two ways is 50 = 1 + 7 = 5 + 5. So, according to Euler, we should be able to write it as the product of two factors each of which is the sum of two squares. After a little thought we ( )( ) see that 50 = 5 10 = 1 + 1 + 3. As a bonus, it can also be written a second way as

( 1 + 1 )( 3 4 ) 50 = 5 = +. As an exercise the reader should find similar factorizations for 65 = 1 + 8 = 4 + 7, and 85 = + 9 = 6 + 7. When the numbers are small it is not too difficult to guess the product. However, when the number is larger, such as 10004 = + 100 = 0 + 98, it is much harder. We will demonstrate a systematic method for finding the factors of any appropriate number in section 3. While we have derived all the material in this paper ourselves, we make no claim that it is new, as the literature on sums of two squares is extensive. Rather, it is our hope that teachers and students will find this subject of unusual interest. Since the only mathematics used is the Pythagorean theorem, similar triangles, and the greatest common divisor, this material could be used as a special exploration for interested students in precalculus and beyond.. The general theorem Throughout this paper, all letters are positive integers. We now explore the following theorem: Theorem: Suppose the number N can be expressed as the sum of two squares in two ways (1) N = a + b = c + d. Then N can be expressed as the product of two factors, each of which is the sum of two squares () N = ( + β )( s + t ) α. Proof: Notice the following that follow from (1). (To see that these are true, consider mod 4 and the values of squares in mod 4).

3 If both a and b are even, then c and d are even. If both a and b are odd, then c and d are odd. If a is odd and b is even, then c and d also have opposite parity. In this case, let c be odd. In Figure 1 we see a circle of radius N. From (1) we see that the points A ( a, b) and B ( c, d ) are on this circle. Let M be the midpoint of the line AB and call its coordinates ( e, f ). It follows that the line OM is perpendicular to the line AB. We see that (3) a + c e = and f b + d =. These show that the point M is the average of the points A and B. Notice that both e and f are integers, which follows from the three conditions on parity given above.

4 Call (4) α = GCD( e, f ), the greatest common divisor of e and f. Then natural numbers s and t exist such that (5) OP = e = α s and PM = f = α t. In Figure we see the right triangle AMQ which is similar to the triangle OMP because the angle MOP equals the angle QAM. (Recall that AM is perpendicular to OM.) Since the sides of this triangle AMQ are integers, a natural number β exists such that (6) QM = e a = β t and AQ = b f = β s.

5 Notice that (7) β = GCD( e a, b f ). Finally we examine the right triangle OMA from Figure 1. The Pythagorean theorem tells us that (8) N = OA = OM + MA. But from (5) we have OM = OP + PM = α s + α t, and from (6) we have MA = QM + AQ = β t + β s. Using these last two relations with (8) we get ( α s + α t ) + ( β s + β t ) = α ( s + t ) + ( s t ) N = β + which simplifies to (9) N = ( + β )( s + t ) α. Thus our theorem is proved. 3. Applications of the general theorem We now show how to find the factors N = ( + β )( s + t ) α when we are given the sums of squares N = a + b = c + d. We do this in a streamlined fashion based on the reasoning in the above theorem.

6 1. If one of the given squares is odd and one even, let a and c denote odd numbers with a < c.. Calculate the natural numbers a + c e = and f b + d =. 3. Find α = GCD( e, f ) and 4. Find β = GCD( e a, b f ). e s = and α We now have N = ( + β )( s + t ) α. f t =. α Example 1: Given N = 10004 = + 100 = 0 + 98, use the above four steps to express 10004 as the product of two factors which are each the sum of two squares. Solution: We can ignore the first part of step 1 since both a and b are even. We take a =, b = 100, c = 0 and d = 98. See Figure 3 where we are using the points A (, 100) and B (0, 98) with midpoint M. From step we get the midpoint M with coordinates e = 11 and f = 99. In step 3 we find α = GCD( 11,99) = 11, s = 1 and t = 9. From step 4 we get β = GCD( 9,1) = 1. So we finally have ( 11 + 1 )( 1 + 9 ) = 1 8 10004 =.

7 Example : Given N = 10004 = + 100 = 0 + 98, the same number as in Example 1, find another factoring into sums of two squares. Solution: Examine Figure 3 and observe that the solution obtained in Example 1 was made by placing points A and B on the circle of radius 10004 and working with the midpoint M. In this solution we use the point C (98, 0) by interchanging the coordinates of point B. We now work with points B (0, 98) and C (98, 0). In step 1 we have a = 0, b = 98, c = 98 and d = 0. In step we calculate the midpoint of B and C at V with e = f = 59. In step 3 we find α = GCF ( 59,59) = 59 and s = t = 1. In step 4 we calculate β = GCF ( 39,39) = 39. Thus we calculate a new product ( 59 + 39 )( 1 + 1 ) = 500 10004 =.

8 Example 3: Given again N = 10004 = + 100 = 0 + 98, the same number as in Examples 1 and, find yet a third factoring into sums of two squares. Solution: Examine Figure 4 where now we use points A and C with the midpoint R. In step 1 we take a =, b = 100, c = 98 and d = 0. In step we find e = 50 and f = 60 as the coordinates of the midpoint R. In step 3 we find α = GCF ( 50.60) = 10, and calculate s = 5 and t = 6. In step 4 we find β = GCF ( 48,40) = 8. We now have a third factoring 10004 ( 10 + 8 )( 5 + 6 ) = 164 61 =. 4. Data for future computations Using a computer program, we found the numbers under 400 that can be written as the sum of two squares in more than one way. We list them below. 50 = 1 + 7 = 5 + 5

9 65 = 1 + 8 = 4 + 7 85 = + 9 = 6 + 7 15 = + 11 = 5 + 10 130 = 3 + 11 = 7 + 9 145 = 1 + 1 = 8 + 9 170 = 1 + 13 = 7 + 11 185 = 4 + 13 = 8 + 11 00 = + 14 = 10 + 10 05 = 3 + 14 = 6 + 13 1 = 5 + 14 = 10 + 11 50 = 5 + 15 = 9 + 13 60 = + 16 = 8 + 14 65 = 3 + 16 = 11 + 1 90 = 1 + 17 = 11 + 13 305 = 4 + 17 = 7 + 16 35 = 1 + 18 = 6 + 17 = 10 + 15 338 = 7 + 17 = 13 + 13 340 = 4 + 18 = 1 + 14 370 = 3 + 19 = 9 + 17 377 = 4 + 19 = 11 + 16 Notice that only 35 can be written three different ways in this list. By the way 45 is the second smallest number that is the sum of two squares in three ways: 45 = 5 + 0 = 8 + 19 = 13 + 16 Two additional numbers with this property are 10400 + 11849 = 0 + 107 = 43 + 100 = 68 + 85. = 0 + 100 = 44 + 9 = 68 76, A few numbers that can be expressed as the sum of two squares in four ways are 515 + 6409 = 3 + 80 = 8 + 75 = 35 + 7 = 53 + 60, 10585 = 8 + 99 = 37 + 96 = 44 + 93 = 48 + 91, 1505 = 9 + 108 = 48 + 101 = 5 + 99 = 69 + 88. = 15 + 70 = 30 + 65 = 34 + 63 = 47 54, A number that can be expressed in six ways is 555 = 7 + 74 = 14 + 73 = + 71 = 5 + 70 = 41 + 6 = 50 + 55.

10 An applet to help finding the decomposition of a number into the sum of two squares is found at [3]. The reader can use the above data to examine many special cases of our theorem. 5. Final Remarks There are many questions we could ask that the reader might enjoy exploring: 1. Many natural numbers cannot be written as the sum of two squares. These include 1, 3, 4, 6, 7, 9, 11, 1,. Now 4 = (1 + 1 )(1 + 1 ), but the other numbers we listed cannot be expressed as a product of factors each of which is the sum of two squares. When is this true for this set of numbers?. Many natural numbers can be written as the sum of two squares in only one way. The first few numbers in this set are, 5, 8, 10, 13, Now 10 = (1 + 1 )(1 + ), but the other numbers we listed cannot be expressed as a product of factors each of which is the sum of two squares. When is this true for this set of numbers? 3. In this paper we considered numbers that can be expressed as the sum of two squares in two or more ways. We proved that such numbers can always be expressed, in at least one way, as the product of factors each of which is the sum of two squares. When is such a factoring possible in only one way? Another interesting way of factoring numbers like those considered in this paper is called "Euler's Factorization Method." There is a very interesting discussion of this in [] which includes an informative history. The webpage [4] also discusses this factorization.

11 References [1] Euler, L., Recherches ulterueures et tres curieuses sur le probléme de quatre nombres positives et en proportion arithmétique tels, que la somme de deux quelconques soit toujours un nombre carré. (E797, Research into the problem of four positive numbers and such an arithmetic proportion of them, that the sum of any two of them is always a square number), on the web at the Euler Archive http://www.math.dartmouth.edu/~euler/. [] Ore, Oystein, Number Theory and It s History, Dover Publications, New York, 1976, pp.59-64. ISBN: 0-486-6560-9 [3] Webpage Applet for computing the sum of two squares http://www.math.mtu.edu/mathlab/courses/holt/dnt/represent3.html [4] Weisstein, Eric W. "Euler's Factorization Method." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/eulersfactorizationmethod.html