Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions



Similar documents
Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

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

Math Circle Beginners Group October 18, 2015

Continued Fractions. Darren C. Collins

Continued Fractions and the Euclidean Algorithm

The Topsy-Turvy World of Continued Fractions [online]

Core Maths C1. Revision Notes

Math Workshop October 2010 Fractions and Repeating Decimals

Activity 1: Using base ten blocks to model operations on decimals

5.1 Radical Notation and Rational Exponents

Session 7 Fractions and Decimals

NUMBER SYSTEMS. William Stallings

IB Maths SL Sequence and Series Practice Problems Mr. W Name

Preliminary Mathematics

Math 181 Handout 16. Rich Schwartz. March 9, 2010

Finding Rates and the Geometric Mean

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Zeros of a Polynomial Function

Core Maths C2. Revision Notes

Section 1.3 P 1 = 1 2. = P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., =

Trigonometric Functions and Triangles

Our Primitive Roots. Chris Lyons

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

WORK SCHEDULE: MATHEMATICS 2007

Congruent Number Problem

Indices and Surds. The Laws on Indices. 1. Multiplication: Mgr. ubomíra Tomková

Solution Guide Chapter 14 Mixing Fractions, Decimals, and Percents Together

9.2 Summation Notation

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

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10040 Chapter 2: Prime and relatively prime numbers

Math 4310 Handout - Quotient Vector Spaces

1.4 Compound Inequalities

Base Conversion written by Cathy Saxton

1.2. Successive Differences

Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.

PYTHAGOREAN TRIPLES KEITH CONRAD

Just the Factors, Ma am

Sect Least Common Multiple

Chapter 11 Number Theory

Mathematics 31 Pre-calculus and Limits

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

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

Geometric Series and Annuities

Homework until Test #2

Math 319 Problem Set #3 Solution 21 February 2002

Common Core Unit Summary Grades 6 to 8

arxiv: v2 [math.ho] 4 Nov 2009

Numerator Denominator

0.8 Rational Expressions and Equations

Welcome to Math Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013

Rational Exponents. Squaring both sides of the equation yields. and to be consistent, we must have

mod 10 = mod 10 = 49 mod 10 = 9.

Linear Programming Notes V Problem Transformations

GRADES 7, 8, AND 9 BIG IDEAS

This is a square root. The number under the radical is 9. (An asterisk * means multiply.)

Grade 7/8 Math Circles February 10/11, 2015 Pi

Handout #1: Mathematical Reasoning

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

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.

1. Prove that the empty set is a subset of every set.

CONTENTS. Please note:

SAT Math Hard Practice Quiz. 5. How many integers between 10 and 500 begin and end in 3?

On the largest prime factor of x 2 1

Solving Rational Equations

Useful Number Systems

Notes on Factoring. MA 206 Kurt Bryan

Representation of functions as power series

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Section 1.1 Real Numbers

Inner Product Spaces

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Common Core Standards for Fantasy Sports Worksheets. Page 1

Properties of sequences Since a sequence is a special kind of function it has analogous properties to functions:

Lies My Calculator and Computer Told Me

Section 1.1 Linear Equations: Slope and Equations of Lines

Exponents and Radicals

Math 115 Spring 2011 Written Homework 5 Solutions

The GED math test gives you a page of math formulas that

Section 4.2: The Division Algorithm and Greatest Common Divisors

AFM Ch.12 - Practice Test

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

Assignment 5 - Due Friday March 6

Metric Spaces. Chapter Metrics

Fractions and Linear Equations

Linear Programming Problems

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

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

Notes on metric spaces

Five fundamental operations. mathematics: addition, subtraction, multiplication, division, and modular forms

Chapter 17. Orthogonal Matrices and Symmetries of Space

Linear Algebra Notes for Marsden and Tromba Vector Calculus

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

Contents. 6 Continued Fractions and Diophantine Equations. 6.1 Linear Diophantine Equations

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

POLYNOMIAL FUNCTIONS

Math 0306 Final Exam Review

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Transcription:

Stanford Math Circle: Sunday, May 9, 00 Square-Triangular Numbers, Pell s Equation, and Continued Fractions Recall that triangular numbers are numbers of the form T m = numbers that can be arranged in the shape of a triangle: m(m + ). Geometrically, they re The n-th triangular number is formed using an outer triangle whose sides have n dots. Similarly, square numbers are numbers that can be arranged in the shape of a square: The n-th square number is formed using an outer square whose sides have n dots. The n-th square number is S n = n. Example Make a list of the first 0 triangular and square numbers. Are there any numbers in both lists? In this chapter, we ll develop a method for finding all square-triangular numbers (i.e. numbers which are both square and triangular numbers). One of the major questions we ll be interested in answering is whether or not there are infinitely many square-triangular numbers. Since triangular numbers are of the form m(m + ) T m = and square numbers are of the form S n = n, square-triangular numbers are integer solutions of the equation n = m(m + ). Next, multiply both sides by 8 and show that we can rewrite the previous equation as This suggests the substitution 8n = 4m + 4m = (m + ). x = m + and y = n. Make this substitution, and rearrange to obtain the equation x y =. Stanford Math Circle Pell s Equation

Solutions to this equation produce square-triangular numbers with m = x and n = y. ( y ) In other words, if (x, y) is a solution of the equation x y =, then N = n = is a square-triangular number. Geometrically, the square has y/ dots on a side and the triangle has (x )/ dots on the bottom row. Example Show that (x, y) = (3, ) and (x, y) = (7, ) are both solutions of x y =. Then find the corresponding values of (m, n) and the resulting square-triangular numbers. Can you find any other solutions (perhaps using a calculator or computer)? To find all square-triangular numbers, we need to find all solutions of Observe that we can factor this equation as x y =. x y = (x + y )(x y ). For example, we can write the solution (x, y) = (3, ) as = 3 = (3 + )(3 ). Next, observe what happens if we square both sides of this equation: = = (3 + ) (3 ) = (7 + )(7 ) = 7 Thus, squaring the solution (x, y) = (3, ) produced the next solution (x, y) = (7, )! We call the solution (3, ) the fundamental solution of the equation. Example 3 Cube the solution (x, y) = (3, ), and show that you obtain the solution (x, y) = (99, 70). Which square-triangular number does this produce? What about taking the fourth power? Example 4 What is the solution of Pell s equation corresponding to (3 + ) 6? What is the corresponding square-triangular number? Theorem There are infinitely many square-triangular numbers. Proof. For every positive integer k, = k = (3 + ) k (3 ) k. By raising (3 + ) to higher and higher powers, we continue to find more and more solutions to the equation x y =, and each new solution gives us a new square-triangular number. (Note: the technique that we have used is interesting from a number-theoretic point of view. In attempting to solve a question about integers, we ve used irrational numbers!) Thus, there are infinitely square-triangular numbers, but it s natural to ask at this point whether or not our procedure actually produces all of them. Stanford Math Circle Pell s Equation

Theorem Square-Triangular Number Theorem. (a) Every solution (x k, y k ) in positive integers to the equation x y = is of the form x k + y k = (3 + ) k, k =,, 3,.... (b) Every square-triangular number n = m(m + ) is given by m = x k and n = y k. Proof. We ve already checked (b). We just need to check that if (u, v) is any solution of x y =, then it is of the form u + v = (3 + ) k for some k. To do this, we ll use the method of descent. First, note that u 3, and if u = 3, then v =, so there s nothing to check. Next, suppose that u > 3, and try to show that there must be another solution (s, t) in positive integers such that u + v = (3 + )(s + t ) with s < u. If (s, t) = (3, ), then we re done (i.e. (u, v) is of the correct form). If not, then try to find another solution (q, r) such that If we can do this, then we have s + t = (3 + )(q + r ) with q < s. u + v = (3 + ) (q + r ), so if (q, r) = (3, ), then we re done. If not, we ll apply the procedure again. Observe that this process can t go on forever, since each time we get a new solution, the value of x is smaller (e.g. q < s < u. Since these values are all positive integers, they cannot get smaller forever, so the process must end in a finite number of steps. Thus, we eventually must reach (3, ) as a solution, so eventually we re able to write u + v as a power of 3 +. Thus, it remains to show that if we start with a solution (u, v) with u > 3, then we can find a solution (s, t) with the property u + v = (3 + )(s + t ) with s < u. To do this, multiply out the right-hand side to obtain Thus, we need to solve for s and t. Show that the solution is u + v = (3s + 4t) + (s + 3t). u = 3s + 4t and v = s + 3t s = 3u 4v and t = u + 3v. Now, there are three things left to check. We need to make sure that this (s, t) is really a solution of x y =, that s and t are both positive, and that s < u. For the first, just check that Stanford Math Circle 3 Pell s Equation

s t = (remember that u v = since (u, v) is a solution). Once we know that s and t are both positive, we can check that s < u as follows: s = 3u 4v ( = 3u 4 3 t + ) 3 u = 3u 4 3 t 8 3 u = 3 u 4 3 t So it remains to make sure that s and t are both positive. First, we ll check that s is positive: u = + v > v u > v s = 3u 4v > 3 v 4v = (3 4)v > 0 Finally, we ll check that t is positive: u > 3 u > 9 9u > 9 + 8u 9u 9 > 8u u > 8 9 u v > 8 9 u v > 3 u t = u + 3v > u + 3 3 u = 0 This completes the descent proof. More generally, any Diophantine equation of the form x dy =, where d is a non-square positive integer is called a Pell equation. Pell s equation has an interesting history its first recorded appearance is in the Cattle problem of Archimedes (87- BC), in a letter sent from Archimedes to Eratosthenes. In 880, A. Amthor, a German mathematician, showed that the total number of cattle had to be a number with 06,545 digits, beginning with 7766. Over the next 85 years, an additional 40 digits were found, but it was not until 965 at the University of Waterloo that a complete solution was found it took over 7.5 hours of computation on an IBM 7040 computer. However, they didn t print out the solution, and the problem was solved a second time using a Cray- computer in 98. Stanford Math Circle 4 Pell s Equation

So, we know that if we can find one solution of a Pell equation, then we can find infinitely many. But how do we find the smallest (i.e. fundamental solution)? To answer this question, we ll investigate the relationship between continued fractions and Pell equations. Example 5 A continued fraction is an expression of the form 4 + +. 7+ 3 This is called the continued fraction expansion for the fraction 0. Note that in the continued 47 fraction expansion, all of the denominators are equal to. A more compact notation for this continued fraction expansion is [4;, 7, 3]. Example 6 Find the continued fraction for 8 5. 8/5 = + 3/5 = + /5/3 = + + 3 = + + + So 8 = [;,, ]. 5 Example 7 Consider the decimal expansion of π: π = 3.45965358979338466433... Observe that we can write this as π something, where the something is a number between 0 and. Next, observe that we can rewrite this as: π 0.45965358979338466433... 0.45965358979338466433... 7.0653305930457693005... 7 + 0.0653305930457693005... 7 + a little bit more The final equation above gives the fairly good approximation 7 Now, if we repeat this process, we obtain: for π. Stanford Math Circle 5 Pell s Equation

0.0653305930457693005... = 0.0653305930457693005... = 5.9965944066857988893060 = 5 + 0.9965944066857988893060 Thus, we have the following representation of π: π 7 + 5+0.9965944066857988893060 The bottom level of this fraction is 5.9965944066857988893060, which is very close to 6. If we replace it with 6, we get a rational number that is very close to π: 3 + 7 + 6 = 355 3 = 3.45990353983008849557... The fraction 355 agrees with π to six decimal places. 3 Continue this process, at each stage flipping the decimal that is left over and then separating off the whole integer part, to obtain a four-layer fraction representation of π. Use your final representation to get a rational number approximation for π, and compare with the known decimal approximation of π to see how accurate your approximation is. Using our more compact notation, we can express the continued fraction expansion of π as Using this notation, our continued fraction expansion of π can be written as π = [3; 7, 5,, 9,,,,,, 3,, 4,,,,,...]. Definition The n-th convergent to α is the rational number p n = [a 0 ; a, a,..., a n ] = a 0 + q n a + a + a 3 + + an obtained by using the terms up to a n in the continued fraction expansion of α. Example 8 For the continued fraction expansion of π = [3; 7, 5,, 9,,,,,, 3,, 4,,,,,...], the first few convergents are: = 3 p q 7 = 7 = 3.485743 p q 7 + 5 = 333 06 = 3.4509434 Consider again the Pell equation with d = : x y =. Stanford Math Circle 6 Pell s Equation

Start by finding the continued fraction expansion of =.44356...: = [;,,,,,,,...]. The first few convergents are: = p q = + = 3 p = + q + = 7 5 What do you notice? The fundamental solution of x y = is (3, ), which is one of our convergents! Theorem 3 Continued Fractions and Fundamental Solutions of Pell Equations. Consider the Pell equation x dy =. Let h i k i, i = 0,,... denote the sequence of convergents to the continued fraction expansion for d. Then the fundamental solution (x, y ) of the Pell equation satisfies x = h i and y = k i for some i. Example 9 Consider the Pell equation x 3y =. Find the continued fraction expansion of 3 =.730508075688..., and use it to find the fundamental solution of the Pell equation. 3 = [;,,,,,,,,...] = p q = + = p = + q + = 5 3 =.6666... Example 0 Consider the Pell equation x 7y =. Find the continued fraction expansion of 7 =.6457530645907..., and use it to find the fundamental solution of the Pell equation. 7 = [;,,, 4,,,, 4,,,, 4,...] = p q = + = 3 p = + q + = 5 =.5 p 3 = + q 3 + + = 8 3 =.6666... Stanford Math Circle 7 Pell s Equation