ORDERING THE PRIMITIVE PYTHAGOREAN TRIPLES BY GENERALIZED PELLIAN SEQUENCES

Similar documents
RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

Pythagorean Triples. becomes

Congruent Number Problem

Settling a Question about Pythagorean Triples

PYTHAGOREAN TRIPLES KEITH CONRAD

of Nebraska - Lincoln

If n is odd, then 3n + 7 is even.

4.2 Euclid s Classification of Pythagorean Triples

Core Maths C1. Revision Notes

Mathematical Induction. Lecture 10-11

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

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

Homework until Test #2

THE CONGRUENT NUMBER PROBLEM

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

SECTION 10-2 Mathematical Induction

Section 4.2: The Division Algorithm and Greatest Common Divisors

MATH 90 CHAPTER 6 Name:.

Geometry: Classifying, Identifying, and Constructing Triangles

Math 115 Spring 2011 Written Homework 5 Solutions

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

MATH10040 Chapter 2: Prime and relatively prime numbers

Heron Triangles. by Kathy Temple. Arizona Teacher Institute. Math Project Thesis

with functions, expressions and equations which follow in units 3 and 4.

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

Factoring and Applications

MATH 289 PROBLEM SET 4: NUMBER THEORY

2.6 Exponents and Order of Operations

Math 55: Discrete Mathematics

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS

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

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

Alex, I will take congruent numbers for one million dollars please

Lecture 13 - Basic Number Theory.

An Innocent Investigation

Note on some explicit formulae for twin prime counting function

Today s Topics. Primes & Greatest Common Divisors

Discrete Mathematics: Homework 7 solution. Due:

Basic Proof Techniques

A Direct Method To Generate Pythagorean Triples And Its Generalization To Pythagorean Quadruples And n-tuples

On Generalized Fermat Numbers 3 2n +1

8 Primes and Modular Arithmetic

A SIMPLE PROOF OF FERMAT'S LAST THEOREM BY

Jacobi s four squares identity Martin Klazar

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

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

About the inverse football pool problem for 9 games 1

Recursive Algorithms. Recursion. Motivating Example Factorial Recall the factorial function. { 1 if n = 1 n! = n (n 1)! if n > 1

Session 6 Number Theory

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Continued Fractions and the Euclidean Algorithm

8 Divisibility and prime numbers

Answer Key for California State Standards: Algebra I

Section IV.1: Recursive Algorithms and Recursion Trees

Sample Problems. Practice Problems

Expression. Variable Equation Polynomial Monomial Add. Area. Volume Surface Space Length Width. Probability. Chance Random Likely Possibility Odds

PYTHAGOREAN TRIPLES M. SUNIL R. KOSWATTA HARPER COLLEGE, ILLINOIS

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

SAT Math Facts & Formulas Review Quiz

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

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

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

Mathematics Pre-Test Sample Questions A. { 11, 7} B. { 7,0,7} C. { 7, 7} D. { 11, 11}

arxiv:math/ v1 [math.st] 28 Dec 2001

6. LECTURE 6. Objectives

The program also provides supplemental modules on topics in geometry and probability and statistics.

LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL

PRIME FACTORS OF CONSECUTIVE INTEGERS

Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.

Math 55: Discrete Mathematics

Introduction. Appendix D Mathematical Induction D1

1.2. Successive Differences

Square Roots and the Pythagorean Theorem

PowerScore Test Preparation (800)

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

CSU Fresno Problem Solving Session. Geometry, 17 March 2012

Pythagorean Theorem: Proof and Applications

Math Workshop October 2010 Fractions and Repeating Decimals

Objective. Materials. TI-73 Calculator

Solving Quadratic Equations

MATHCOUNTS TOOLBOX Facts, Formulas and Tricks

Baltic Way Västerås (Sweden), November 12, Problems and solutions

Polytope Examples (PolyComp Fukuda) Matching Polytope 1

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.

Some practice problems for midterm 2

Cartesian Products and Relations

Continued Fractions. Darren C. Collins

DEGREES OF CATEGORICITY AND THE HYPERARITHMETIC HIERARCHY

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

Math at a Glance for April

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

SOLUTIONS FOR PROBLEM SET 2

Answer: (a) Since we cannot repeat men on the committee, and the order we select them in does not matter, ( )

PROOFS BY DESCENT KEITH CONRAD

Warm up. Connect these nine dots with only four straight lines without lifting your pencil from the paper.

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

Chapter 11 Number Theory

Transcription:

ORDERING THE PRIMITIVE PYTHAGOREAN TRIPLES BY GENERALIZED PELLIAN SEQUENCES While it is well-known that the Pell numbers: 0, 1, 2, 5, 12, 29, 70,... generate the Pythagorean triples with consecutive legs, it seems to be a great secret that the rest of the primitive triples can be generated, ordered and largely sorted by leg difference using similar sequences. But before getting to them, let s review. Recall that the primitive Pythagorean triples are the sets {a, b, c} that each represent the lengths of the sides of a a right triangle that are all whole numbers with gcd(a,b,c) = 1. Letting b be the even leg, each of these triples can be represented uniquely by a pair of positive integers u and v, where v > u, gcd(u,v) = 1, u and v are of opposite parity and {a, b, c} = {v 2 u 2, 2uv, v 2 + u 2 }. Now, taking the Pell numbers in consecutive pairs starting at 1, 2 and substituting them for u and v so that u = 1, v = 2 ; then u = 2, v = 5 ; then u = 5, v = 12, and so on, gives us the triples {3, 4, 5}; {21, 20, 29}; {119, 120, 169},... Note that the leg differences are 1 ( d = b a = 1). For primitive triples, the next greater leg difference happens to be 7. There are actually two sequences, having the same recursion relation, P n + 2 = 2P n + 1 + P n, as the Pell numbers, that generate all of the primitive triples with d = 7 without redundancy. And they are: 2, 3, 8, 19, 46,... and 1, 4, 9, 22, 53,... Substituting their consecutive pairs of terms for u and v yields the desired triples: {5, 12, 13}, {55, 48, 73}, {297, 304, 425}, {1755, 1748, 2477},... {15, 8, 17}, {65, 72, 97}, {403, 396, 565}, {2325, 2332, 3293},...

Again, note that the leg differences are 7, and observe that we can represent the initial two terms of the sequences as n, n + m and n m, 3n 2m, where n = 2 and m = 1. In this case, d = b a = 2n 2 m 2 = 2(2) 2 1 2 = 7. After d = 7, the next greater possible difference corresponds to when n = 3 and m = 1. Thus, d = 2n 2 m 2 = 2(3) 2 1 2 = 17. And the twin sequences that generate the primitive triples with this leg difference are n, n + m,... = 3, 4, 11, 26, 63,... n m, 3n 2m,... = 2, 7, 16, 39, 94,... But sometimes there are multiple permissible n and m values that give the same difference. For example, n = 8, m = 3 and n = 10, m = 9 both correspond to d = 2(8) 2 3 2 = 2(10) 2 9 2 = 119. Each pair of n and m values initiates twin sequences. So it requires four infinite sequences to generate the primitive triples with d = 119. If we focus on the leg difference from a distance, everything falls into place. Fixing the leg differences of primitive triples results in Pell-type equations of the form 2n 2 m 2 = d. And the solutions to such equations are recursive sequences (generalized Pellian sequences). It is easy to show that our recursion relation preserves leg difference (i.e., all consecutive pairs of terms satisfy the Pell-type equation if the initial terms do). PROOF: Observe that if P n and P n+1 are any two consecutive terms of any of our sequences, including the Pell numbers themselves, the leg difference of the triple they yield would be d = (P n+1 ) 2 (P n ) 2 2P n P n+1.

By the recursion, P n +2 = 2P n+1 + P n, and the leg difference of the triple generated by P n+1 and P n+2 would be d = (P n+2 ) 2 (P n+1 ) 2 2P n+1 P n+2 = (2P n+1 + P n ) 2 (P n+1 ) 2 2P n+1 (2P n+1 + P n ) = 4(P n+1 ) 2 + 4P n P n+1 + (P n ) 2 (P n+1 ) 2 4(P n+1 ) 2 2P n P n+1 = (P n ) 2 (P n+1 ) 2 + 2P n P n+1 = (P n+1 ) 2 (P n ) 2 2P n Pn +1. QED So, let me sum up the overall result and prove that it holds true. THEOREM: All of the primitive Pythagorean triples can be generated, ordered and largely sorted without redundancy by substitution into {v 2 u 2, 2uv, v 2 + u 2 } of consecutive pairs of terms of the Pell numbers and similar sequences formed by the same recursion relation, P n + 2 = 2Pn + 1 + P n, and initial values n, n + m and n m, 3n 2m, where n and m are positive integers, n > m, gcd(m,n) = 1, and m is odd. (The leg difference of triples generated from both sequences is d = 2n 2 m 2. And the Pell numbers can be considered the special case of a singleton sequence: n, n + m,..., where n = m = 1.) Since I ve shown that the recursion preserves leg differences and it is easy to verify that the gcd(n,n + m) = gcd(n m,3n 2m) = 1 and that the recursion preserves this relative primality as well as the opposite parities, it remains for me to prove that the generation of the primitive triples is exhaustive and without redundancy.

PROOF: Let {a, b, c} be an arbitrary primitive Pythagorean triple. There exists a pair of positive integers, u and v, such that v > u, gcd(u,v) = 1, u and v are of opposite parity, and {a, b, c} = {v 2 u 2, 2uv, v 2 + u 2 }. Case 1: If v < 2u, then n = u, m = v u. u, v are the initial terms n, n + m. Case 2: If v = 2u, then u = 1, v = 2, the second and third Pell numbers. Case 3: If v > 3u, then n = v 2u, m = v 3u. u, v are the initial terms n m, 3n 2m. Case 4: If 2u < v < 3u, then u, v are advanced terms in one of the sequences and can be determined by backtracking, via the reverse recursion relation P n 2 = P n 2P n 1 for as long as the terms remain positive and strictly decreasing, until one of the following occurs. Case 4a: If P n 2 < 0, then P n < 2P n 1 and u, v are advanced terms of the sequence n, n + m,... where n = P n 1, m = P n P n 1. Case 4b: If P n 2 = 0, then P n = 2P n 2 and u, v are advanced terms of the Pell numbers. Case 4c: If P n 2 > P n 1, then P n > 3P n 1 and u, v are advanced terms of the sequence n m, 3n 2m,... where n = P n 2P n 1, m = P n 3P n 1. This covers all possibilities and proves that u and v must be in some specific position in one of the sequences. QED Keith Raskin

For more on Pythagorean Triples and Pell Equations: Barbeau, E.J., Pell s Equation, Problem Books in Mathematics, New York Springer, Chapter 6, 2003 Beauregard, R.A. and Suryanarayan, E.R., General Arithmetic Triangles and Bhaskara s Equation, College Mathematics Journal, Vol. 31, No. 2, pg 111 115, March 2000 Beauregard, R.A. and Suryanarayan, E.R., Pythagorean Boxes, Mathematics Magazine, Vol. 74, No. 3, pg 222-226, 2001 Boju, V. and Funar, L., The Math Problems Notebook, SpringerLink, Springer 2007 Dye, R.H. and Nickalls, R.W.D., A New Algorithm for Generating Pythagorean Triples, The Mathematical Gazette, Vol. 82, No. 493, pg 86-91, March 1998 Grytczuk, A.; Luca, F. and Wojtowicz, M., The negative Pell equations and Pythagorean triples, Proceedings of the Japan Academy, Vol. 76, pg 91 94, 2000 Horadam, A.F. and Shannon, A.G., Pell-type Number Generators of Pythagorean Triples, Proceedings of the International Conference on Fibonacci Numbers and their Applications, Vol. 5, pg 331 343, 1993 Kanga, A.R., The Family Tree of Pythagorean Triples, Bulletin of the Institute of Mathematics and its Applications, Vol. 26, No. 1 2, pg 15 17, 1990 Leyendekkers, J.V. and Rybak, J., The Generation and Analysis of Pythagorean Triples within a Two-Parameter Grid, International Journal of Mathematical Education in Science and Technology, Vol. 26, Issue 6, pg 787 793, 1995 Leyendekkers, J.V. and Rybak, J., Pellian Sequences Derived from Pythagorean Triples, International Journal of Mathematical Education in Science and Technology, 1464 5211, Vol. 26, Issue 6, pg 903 922, 1995 McCullough, D., Height and Excess of Pythagorean Triples, Mathematics Magazine, Vol. 78, No. 1, pg 26 44, February 2005 Weisbrod, J., Exploring a Pythagorean Ternary Tree, annual meeting of the Mathematical Association of America MathFest, August 6, 2009 www.2000clicks.com Math Help / Number Theory / Pell s Equation www.arxiv.org Catalani, M., Sequences related to the Pell generalized equation, April 4, 2003

www.cut-the-knot.org Lonnemo, H.A., The Trinary Tree(s) Underlying Primitive Pythagorean Triples, June 8, 2000 www.en.scientificcommons.org Wildberger, N.J., Pell s equation without irrational numbers, June 16, 2008 www.math.rutgers.edu Rowland, E., Pythagorean Triples Project www.mathworld.wolfram.com Pell Number www.numbertheory.org Matthews, K., Primitive Pythagorean triples and the negative Pell equation, November 16, 2007 www.planetmath.org Pell s Equation, Pythagorean Triplets