PELL S EQUATION NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA

Similar documents
Balancing And Lucas-balancing Numbers With Real Indices

ON SUMS AND RECIPROCAL SUM OF GENERALIZED FIBONACCI NUMBERS BISHNU PADA MANDAL. Master of Science in Mathematics

Pell s Equation Claire Larkin

BALANCING NUMBERS : SOME IDENTITIES KABERI PARIDA. Master of Science in Mathematics. Dr. GOPAL KRISHNA PANDA

FIBONACCI NUMBER AND ITS DISTRIBUTION MODULO 3 k

Continued Fractions Expansion of D and Pell Equation x 2 Dy 2 = 1

Chakravala - a modern Indian method. B.Sury

CHAPTER 1 REAL NUMBERS KEY POINTS

Introduction to Number Theory

On Representations of integers by the quadratic form x2 Dy2

Rohit Garg Roll no Dr. Deepak Gumber

On the Cardinality of Mersenne Primes

Integer-sided equable shapes

Diophantine Equation

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University

Cryptography. Number Theory with AN INTRODUCTION TO. James S. Kraft. Lawrence C. Washington. CRC Press

Infinite Continued Fractions

3 Finite continued fractions

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

Chapter 5. Number Theory. 5.1 Base b representations

SEVENTH EDITION and EXPANDED SEVENTH EDITION

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

Applications of Number Theory in Statistics

1 Continued Fractions

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Numbers. 2.1 Integers. P(n) = n(n 4 5n 2 + 4) = n(n 2 1)(n 2 4) = (n 2)(n 1)n(n + 1)(n + 2); 120 =

Diophantine equations

Exploring Number Theory via Diophantine Equations

NOTES ON SIMPLE NUMBER THEORY

Intermediate Math Circles February 26, 2014 Diophantine Equations I

a the relation arb is defined if and only if = 2 k, k

Chapter 2. Divisibility. 2.1 Common Divisors

4 Powers of an Element; Cyclic Groups

Elementary Number Theory

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Selected Chapters from Number Theory and Algebra

Number Theory, Algebra and Analysis. William Yslas Vélez Department of Mathematics University of Arizona

Sum of cubes is square of sum

Continued Fractions: Introduction and Applications

CONGRUUM PROBLEM. Manju Somanath 1 and J. Kannan 2. National College, Trichy - 01, India

Table of Contents. 2013, Pearson Education, Inc.

Minimal Number of Steps in the Euclidean Algorithm and its Application to Rational Tangles

ARITHMETIC PROGRESSION OF SQUARES AND SOLVABILITY OF THE DIOPHANTINE EQUATION 8x = y 2

A STUDY ON THE CONCEPT OF DIOPHANTINE EQUATIONS

Grade 8 Chapter 7: Rational and Irrational Numbers

Perfect if and only if Triangular

Junior Villafana. Math 301. Dr. Meredith. Odd Perfect Numbers

Airo International Research Journal September, 2016 Volume VII, ISSN:

Beautiful Mathematics

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

Square-Triangular Numbers

FACTORIZATION AND THE PRIMES

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

The Fundamental Theorem of Arithmetic

Numbers and their divisors

ON THE LENGTH OF THE PERIOD OF A REAL QUADRATIC IRRATIONAL. N. Saradha

2. THE EUCLIDEAN ALGORITHM More ring essentials

Appendix: a brief history of numbers

Numbers, Groups and Cryptography. Gordan Savin

Pell's Equation. Luke Kanczes

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

ARITHMETIC PROGRESSIONS IN THE POLYGONAL NUMBERS

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Cullen Numbers in Binary Recurrent Sequences

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

CONTINUED FRACTIONS Lecture notes, R. M. Dudley, Math Lecture Series, January 15, 2014

1 Overview and revision

Indian Mathematicians and Their Contributions

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

Part 2 - Beginning Algebra Summary

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

Algebra for error control codes

ALGEBRA+NUMBER THEORY +COMBINATORICS

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

Lecture 11: Number Theoretic Assumptions

Number Theory. Introduction

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

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

35 Chapter CHAPTER 4: Mathematical Proof

Winter Camp 2009 Number Theory Tips and Tricks

Fall 2017 Test II review problems

The roots of computability theory. September 5, 2016

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

Recreational Mathematics

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

Foundations of Discrete Mathematics

Standard forms for writing numbers

On the Sum of Corresponding Factorials and Triangular Numbers: Some Preliminary Results

FERMAT S TEST KEITH CONRAD


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

A Few Primality Testing Algorithms

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

Lecture 4: Number theory

PRIME NUMBERS YANKI LEKILI

A Curious Connection Between Fermat Numbers and Finite Groups

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

Transcription:

PELL S EQUATION A Project Report Submitted by PANKAJ KUMAR SHARMA In partial fulfillment of the requirements For award of the degree Of MASTER OF SCIENCE IN MATHEMATICS UNDER GUIDANCE OF Prof GKPANDA DEPARTMENT OF MATHEMATICS NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA

CERTIFICATE This is to certify that the project report submitted by Mr Pankaj Kumar Sharma to the National Institute of Technology, Rourkela, Odisha for the partial fulfillment of the requirements of MSc degree in Mathematics is a bonafide review work carried out by him under my supervision and guidance The content of this report in full or parts has not been submitted to any other Institute or University for the award of any degree or diploma ProfGKPANDA DEPARTMENT OF MATHEMATICS NIT ROURKELA ii

DECLARATION I declare that the topic PELL S EQUATION for my MSc Project has not been submitted by anyone in any other institution or university for award of any degree Place: Date: PANKAJ KUMAR SHARMA Roll No: 410MA2109 iii

ACKNOWLEDGEMENT I would like to express my deep appreciation to my guide Dr GKPANDA, Professor and Head, Department of Mathematics, NIT Rourkela for the time, guidance, encouragement he has given me during this project period I would like to thank the faculty members of Department of Mathematics and PhD scholar Mr Sudhansu Sekhar Rout who helped me a lot for this project Thanks to all my friends and classmates who encourage me a lot in this project I owe my gratitude to my parents and brother, who supported for their blessings and inspiration PANKAJ KUMAR SHARMA iv

CONTENTS CERTIFICATE DECLARATION ACKNOWLEDGEMENT ii iii iv INTRODUCTION AND SUMMARY 1 Chapter-1 3 PRELIMINARIES 3 Chapter-2 6 CONTINUED FRACTION 6 Chapter-3 13 HISTORY OF PELL S EQUATION 13 PROBLEMS LEADING TO PELL S EQUATION 13 BRAHMAGUPTA S METHOD 15 RESULTS ON PELL S EQUATION 17 Chapter-4 23 ASSOCIATED PELL S EQUATION 23 PELL NUMBER, PELL PRIME, PELL LUCAS NUMBER 23 HALF COMPANION PELL NUMBER 24 Chapter-5 25 APPLICATIONS OF PELL S EQUATION 25 REFRENCES 30

INTRODUCTION Number theory is that branch of mathematics that is concerned with the properties of numbers For this reason, number theory, which has a 4000 years of rich history, has traditionally been considered as pure mathematics The theory of numbers has always occupied a unique position in the world of mathematics This is due to unquestionable historical importance of the subject It is one of the few disciplines having demonstrable results that predate the very idea of a university or an academy The natural numbers have been known to us for so long that mathematician Leopold Kronecker once remarked, God created the natural numbers, and all the rest is the work of man Far from being a gift from Heaven, number theory has a long and sometimes painful evolution The theory of continued fractions begins with Rafael Bombelli, the last of great algebraists of Renaissance Italy In his L Algebra Opera (1572), Bombelli attempted to find square roots by using infinite continued fractions One of the main uses of continued fraction is to find the approximate values of irrational numbers Srinivas Ramanujan has no rival in the history of mathematics His contribution to number theory is quite significant GHHardy, commenting on Ramanujan s work, said On this side (of Mathematics) most recently I have never met his equal, and I can only compare him with Euler or Jacobi Pell s equation,was probably first studied in the case Early mathematicians, upon discovering that is irrational, realized that although one cannot solve the equation in integers,one can at least solve the next best things The early investigators of Pell equation were the Indian mathematicians 1 P a g e

Brahmagupta and Bhaskara In particular Bhaskara studied Pell s equation for the values and Bhaskara found the solution for Fermat was also interested in the Pell s equation and worked out some of the basic theories regarding Pell s equation It was Lagrange who discovered the complete theory of the equation, Euler mistakenly named the equation to John Pell He did so apparently because Pell was instrumental in writing a book containing these equations Brahmagupta has left us with this intriguing challenge: A person who can, within a year, solve is a mathematician In general Pell s equation is a Diophantine equation of the form, where is a positive non square integer and has a long fascinating history and its applications are wide and Pell s equation always has the trivial solution, and has infinite solutions and many problems can be solved using Pell s equation 2 P a g e

Chapter-1 PRELIMINARIES: Divisibility: If and are two integers, then we say that divides and we write if for some integer Division Algorithm: Given two integers and with, there exists unique integers and satisfying The integers and are called quotient and remainder respectively in the division of by Greatest Common Divisor: The greatest common divisor integers and is the largest integer which divides both and of Given integers and, not both of which are zero, then there exist integers and such that Euclid lemma: If and, then and are relatively prime if Euclidean Algorithm: The Euclidean algorithm used to find the gcd of two integers, is the repeated application of division algorithm, starting with the number and, and terminating when a remainder of occurs In general the Euclidean algorithm runs as follows: 3 P a g e

Hence Example: To calculate, we have The last non zero remainder is 2 So Linear Diophantine Equation: A linear equation which is to be solved for integers is called a Diophantine equation The linear Diophantine equation of the form iff has solution Theorem11: Let Consider the linear Diophantine equation a) If, there are no solutions 4 P a g e

b) If, there are infinitely many solutions of the form, Where is a particular solution and Example: Since and, there are infinitely many solutions By trial and error we find that, is a particular solution Hence the general solution is given by, Prime number: An integer positive divisors are and is called a prime number if its only An integer greater than 1 that is not a prime is termed as composite Fundamental Theorem of Arithmetic: Every positive integer can be expressed as a product of prime; this representation is unique, apart from the order in which the factors occur, ie Theorem 12: There exists infinitely many primes Proof: Suppose that were the only primes Let M be the product of these primes Since, then there exists a prime, such that Since, we know Therefore, for all such that contrary to hypothesis So there exist infinitely many primes 5 P a g e

Chapter-2 CONTINUED FRACTION: A continued fraction is an expression of the form where and are either rational numbers, real numbers or complex numbers If for all, then the expression is called a simple continued fraction If the expression contains finitely many terms then it is called a finite continued fraction; otherwise it is called an infinite continued fraction The number are called the partial quotients If the expression is truncated after partial quotients, then the value of the resulting expression is called the convergent of the continued fraction, and it is denoted by If and repeat cyclically, then the expression is called a periodic continued fraction We express it as ], if is an integer Example: By Euclidean algorithm 6 P a g e

So, = 2 + = 2 + =[ 2;1,3,4] = [2;1,3,3,1] So we noticed that the continued fraction expansion of a rational number is not unique : The convergent of the continued fraction [ ] is [ ] and for [ ] Theorem 21: Let be positive real numbers Let,,, Then the convergent is given by Proof: We will prove this by induction on Since and = So, result holds for and Assume that the result is true for, then [ = Since the first partial quotients ) are same in both continued fraction, so we see that 7 P a g e

= = Hence the assertion for Example: = [ ], so Theorem 22: If is the convergent of the finite simple continued fraction then, Proof: We will prove this by induction For So result holds for Now assume that it is true for, where Then 8 P a g e

showing that the formula holds for, Hence proved Corollary 221: For and are relatively prime Proof: If gcd, then Since Hence proved Now we will see how to solve the linear Diophantine equation using continued fraction Since, no solution of this equation exists if, where, so there is no harm in assuming that For if then Both equations have the same solution and in the latter case, we know that with Diophantine equation Notice that a solution of the equation may be obtained by solving first the with If integer and can be found for which then multiplying both sides by we get, Hence and is the of solution of To find a pair of integer s and satisfying the equation of the rational number, we have to find the simple continued fraction expansion where, The last two convergents of this continued fraction are 9 P a g e

and, As, we have and Then which implies, Thus, with and, so If is odd, then has particular solution If is even, then And the general solution is,, Now let s solve the linear Diophantine equation by using simple continued fraction We have, 10 P a g e

Firstly we have to find a particular solution to The convergent are Now, implying that, multiplying both sides by 250, we get So, the particular solution is given by and the general solution is given by 2 Periodic Continued Fraction: Here we see that partial quotients 2 and 1, 2 repeat indefinitely, such fractions are called periodic We write a periodic continued fraction as, is Here, is the period of the expansion and the length of the period 11 P a g e

Example:, is a continued fraction whose period has length Note: If is an infinite continued fraction with positive terms, then its value is an irrational number Every irrational number has a unique infinite continued fraction expansion whose terms are given recursively by Example: and, for So, 12 P a g e

Chapter-3 PELL S EQUATION: John Pell (1611-1685) was an English mathematician who taught mathematics in Holland, at the universities of Amsterdam and Breda in 1640 s Pell s equation has a long fascinating history Its first recorded appearance is in the cattle problem of Archimedes This problem involves eight different kinds of cattle and ask the reader to determine how many there are of each kind After facing a lot of problem s it finally reduced to solving the Pell s equation The first significant progress in solving the Pell s equation was made in India as early as AD 628, by Brahmagupta Brahmagupta described how to use the known solution to a Pell s equation to create new solutions and Bhaskaracharya in 1150 AD gave a method of solving Pell s equation The modern European history of Pell s equation begins in 1657 when Fermat challenged his fellow mathematician to solve the equation several of them found the smallest solution, which was and William Brouncker in described a general method for solving Pell s equation Brouncker found the solution J Wallis described Brounckers method in a book on algebra and number theory and Wallis and Fermat both asserted that the Pell s equation always has a solution Euler mistakenly thought that the method in Wallis book was due to John Pell, and so Euler assigned the equation the name Pell s equation But John Pell has nothing to do with the so called Pell s equation Problems Leading To Pell s Equation: One of the main reasons for the popularity of Pell s equation is the fact that many natural 13 P a g e

questions that one might ask about integer s leads to a quadratic equation in two variables, which can be casted as a Pell s equation Square Triangular Numbers: The numbers which can be arranged in a shape of triangle is called triangular numbers, whereas the numbers which can be arranged in a shape of square are called square numbers 1+2=3 1+2+3=6 (Triangular Numbers) 1+2+3+4=10 2 2 =4 3 2 =9 (Square Numbers) 4 2 =16 The triangular number is = and the square number = We observe that the sum of two adjacent triangular numbers is square But what about the case when an individual triangular number is square? So, the square triangular numbers are solution to the equation Multiplying both sides by 8 we get Letting,, we have 14 P a g e

Solution to? gives square-triangular numbers with How to solve the Diophantine equation There are triangular numbers that differ from a square by 1 such as Are there other such triangular numbers? This leads to solving the equation This implies, BRAHMAGUPTA S METHOD: (Pell s equations) leading to Identity: From this we observe that if and ) are both 1, then, ie if are solution to pell equation then is also a solution Brahmagupta s Lemma: If are integer solution of pell type equation of the form, then are both integer solution of Pell type equation, using the method of composition, if satisfies pells equation, then so does which is obtained by composing with itself Another solution can be obtained by composing with 15 P a g e

Solving Pell s Equation Using Brahmagupta s Method: By Brahmagupta s lemma if is solution of, then composing with itself gives us as a solution of and dividing by we get Which is a solution to the Pell s equation For most values of this idea is not helpful because are not integers, but when this idea helps a lot When, as is solution of then,, so, For and For we can get solutions to the Pell s equation by method of composing, but it s too much complicated So Brahmagupta was able to show that if we can find which nearly satisfies Pell s equation in the sense where then we can find many integer solutions to Pell s equation EXAMPLE: Brahmagupta s solution of the Pell s equation Here satisfy the equation So applying the above method, we find that,, 16 P a g e

is a solution to, ie,, ie, and is a solution Applying method of composition to we get, (2 = (1476, 13447) Again applying method of composition to (9, 82) and (1476, 13447) we have, By applying again and again the method of composition, we can generate further solutions Results on Pell s Equation: The Pell equation is a Diophantine equation of the form Given, we want to find all integer pairs that satisfy the equation Since any solution yields multiple solution, we restrict ourselves to those solutions where and are positive integers We generally take to be a positive non-square integer; otherwise there are only uninteresting solutions If, then = (, in the case and (0, 1) or ( in the case, if, then arbitrary) and if is non zero square,then and are consecutive squares, implying that = ( Notice that the Pell equation always has the trivial solution 17 P a g e

The following result is well known: If is the convergent to the irrational number, then Theorem 31: If is a convergent of the continued fraction expansion of then, is a solution of one of the equation k where 1+2 Proof: If is a convergent of, then < and, therefore < Now = These two inequalities combine to yield Example: Let The first two convergent of are Now calculating, we find that 18 P a g e

Hence, provides a positive solution of Note: If is a positive integer that is not a perfect square, then the continued fraction expansion of necessarily has the form Example: If the length of the period of the continued fraction expansion of is then the fundamental solution of the equation is given by when is even and by when is odd Finding the fundamental solution may become a difficult task, as the value of the fundamental solution may be very large, even for comparatively small values of For example the equation has the fundamental solution =379516400906811930638014896080, and =12055735790331359447442538767 The solution is even worse with, where the smallest positive integer has 1118 digits So, everything depends upon the continued fraction expansion of and in case of, the period has 2174 terms There might be possibilities that the solution of may be small for a given value of and very large for succeeding values of For example the equation, whose fundamental solution is given by, But with the case, where the solution is and with, where the solution is 19 P a g e

From any solution of, we can obtain infinitely many solutions Let be a solution of Then we can generate another solution by the following process: We see that we have got a equation which is nothing but a Pell s Equation and is a solution Applying the process repeatedly we can get as many solution as we desire Alternatively, suppose we consider integer powers of where are the binomial coefficient, 20 P a g e

Theorem 32: Let be the fundamental solution of Then every pair of integers defined by the condition is also a positive solution, Proof:, Further, because and are positive and are both positive integers Since is a solution of we have Hence, is a solution Example:,, forms the fundamental solution Now So,, which implies is a solution since, So, In this way we can generate infinitely many solutions 21 P a g e

Note: If is the fundamental solution of, then the solutions is also given by Theorem 33: If and, then and for positive n Proof: We will prove this by induction, observe that and Since and is a positive integer it is clear that So, the result holds for Now assume the solution with positive integers greater than We have,, Therefore, and We know that,, so, also implies that Therefore, we have and 22 P a g e

ASSOCIATED PELL S EQUATION: The equation negative Pell s equation Let Chapter-4 is called associated Pell s equation or, be the length of the period the continued fraction expansion of If is even, then has no solution If is odd, then has infinitely many solutions and all given by Example: The equation has no solution, since so Again has solution, since ; so The first two such solutions are PELL NUMBERS: The Pell number is defined by the recurrence relation That is, the Pell numbers sequence starts with and, and then each Pell number is the sum of twice the previous Pell number and the Pell number before that The first few terms of the sequence are The Pell number can also be expressed by the closed form 23 P a g e

PELL PRIME: A Pell prime is a Pell number that is prime The first few Pell primes are A Pell number can only be prime if itself is prime PELL- LUCAS NUMBER: The Pell-Lucas numbers are defined by the recurrence relation That is, the first two numbers in the sequence are both 2, and each successive number in formed by adding twice the previous Pell-Lucas number to the Pell-Lucas number before that, or, by adding the next Pell number to the previous Pell number The first few terms of the sequence are The Pell-Lucas numbers can be expressed by the closed form The Pell-Lucas numbers are all even HALF COMPANION PELL NUMBERS : 24 P a g e

Chapter 5 APPLICATIONS OF PELL S EQUATION: 1) (Double equations): Find, such that and Solution: We have, t implying that, leads to,, which is a Pell s equation with Solutions are listed in the following table: 3 17 99 577 3363 19601 2 12 70 408 2378 13860 0 28 33292 1130976 2) Rational approximation to square roots we cannot write, with, is irrational But, so, Pell solutions lead to good rational approximation to 25 P a g e

Example: The fourth solution to is and, while 3) Sums of consecutive integers Example: In general if we have,, then leading to, and, which finally simplifies to,, and can be written as,, which is a associated Pell s equation The solutions are listed below, with both 1 7 41 239 1393 8119 1 5 29 169 985 5741 26 P a g e

0 2 14 84 492 2870 0 3 20 119 696 4059 So, 4) Pythagorean triangle with consecutive legs, like, In general we are interested in solving Clearly, is odd, so is odd implies, which gives, and finally, which is an associated Pell s equation So, The solutions are listed in the following table 27 P a g e

1 7 41 239 1393 8119 1 5 29 169 985 5741 0 3 20 119 696 4059 1 5 29 169 985 5741 5) Consecutive Heronian triangles Example: The right triangle has area 6 Find Heronian triangle with consecutive sides, and thus, which implies, Then is even say so, Unique factorization 28 P a g e

2 7 26 97 362 1351 1 4 15 56 209 780 4 14 52 194 724 2702 6 84 1170 16926 226974 3161340 So, we have triangles with sides ( ); ( ); and so on 29 P a g e

REFERENCES [1] David M Burton, Elementary Number Theory, Tata McGraw-Hill, Sixth Edition (2011) [2] Gareth A Jones and J Mary Jones, Elementary Number Theory, Springer-Verlag London Limited (2007) [3] Martin Erickson and Anthony Vazzana, Introduction to Number Theory, Chapman and Hall/CRC (2010) [4] Neville Robbins, Beginning Number Theory, Narosa (2006) 30 P a g e