Continued Fractions- Pell's Equation

 In we will introduce finite continued fractions. We will show that a finite continued fraction represents a rational number, and every rational number can be expressed by a finite continued fraction in a unique way. Continued fractions provide an important approach for solving Diophantine equations.

Many great mathematicians of the seventeenth and eighteenth centuries have been fascinated by continued fractions and have done work on it. Appearing in many areas of mathematics, continued fractions are interesting and useful in other areas of number theory. For instance, continued fractions are “the best” approximations of real numbers. Continued fractions, which also provide a way to learn about the decimal approximations of rational numbers, also appear in many other areas. Additionally, continued fractions provide a way to analyze solutions to Pell’s equation x2Dy2=1. Since all integral solutions of Pell’s equation come from convergents to D.

Finite Continued Fraction ( Rosen 1992)
An expression of the form 
a0+1a1+1a2+1an1+1an

is called as a finite continued fraction where each ai is a real number, a00,ai+1>0 and i0. The numbers a1,a2,...,an are the partial quotients of the finite continued fraction. The fraction is simple if each ai is an integer.

A finite continued fraction can also be written as [a0;a1,a2,,an]=a0+1[a1;a2,a3,,an]=[a0;[a1;a2,a2,,an]]   for n>0.Note that the semicolon separates the fractional part from the integral part.

Theorem.Every finite simple continued fraction represents a rational number
Example  [2;3,4,5,6]



Theorem:Every rational number can be represented by a finite simple continued fraction


This is [2;3,4,2]


THEOREM : Every rational number is uniquely represented by a finite continued fraction.
Example: represent 225157

Suppose an>1 in the finite simple continued fraction [a0;a1,...,an]. Since an=(an1)+11 , it follows that [a0;a1,...,an]=[a0;a1,...,an1,1]
For example,
[1;2,3,4,5]=[1;2,3,4,1].
On the other hand, let an=1. Then [a0;a1,...,an]=[a0;a1,...,an1,1]=[a0,a1,...,an1+1]
For example, [1;2,3,4,1]=[1;2,3,5].Thus, every rational number can be written as a finite simple continued fraction in two different ways. In other words, the continued fraction representation of a rational number is not unique.
Example:
In the example 2.4 6729 is represented as [2;3,4,2]
Since 2=1+1, it can be written

Therefore, it can also be denoted as [2;3,4,1,1]

An infinite continued fraction is an expression of the form
a0+1a1+1a2+1

where a0,a1, are real numbers with a1,a2,,an are positive with a00 and it is denoted by [a0,a1,,an,].If the real numbers a0,a1,,an are all integers, then the continued fraction is called simple.

Example:


THEOREM : The infinite simple continued fraction [a0;a1,a2,...] represents an irrational number.
Example:the continued fraction expansion of

13 is:

13=3+11+11+11+

Convergents of a Continued Fraction
By truncating the continued fraction for x=[a0;a1,...,an] at the various plus signs , we can generate a sequence {ck} of approximations of x, where 0kn; thus, ck=[a0,a1,,ak]; ck is called the kth convergent of x, a concept introduced by Wallis in his Opera Mathematica.

Theorem:The kth convergent of the finite simple continued fraction [a0;a1,,an] is ck=pkqk
where 2kn, and the sequences {pk} and {qk} are defined recursively as follows:

Example:

THEOREM  Let ck=pkqk be the kth convergent of the simple continued fraction [a0;a1,...,an], where 1kn. Then pkqk1qkpk1=(1)k1.
Continued Fractions and LDEs
Recall that the LDE ax+by=c is solvable if and only if d|c,where d=(a,b). If x0,y0 is a particular solution, then it has infinitely many solutions x=x0+(b/d)t,y=y0(a/d)t.

Continued fractions can be employed to solve LDEs. To see this, first consider the LDE ax+by=1, where b> 0 and gcd(a,b)=1. Since a/b is a rational number, it can be represented by a continued fraction [a0;a1,...,an]. Then cn=pnqn=ab

Since (pn,qn)=1=(a,b), it follows that a=pn and b=qn.
By Theorem , pnqn1qnpn1=(1)n1; so aqn1bpn1=(1)n1.
When n is odd, it becomes aqn1+b(pn1)=1; so x0=qn1,y0=pn1 is a solution of the LDE ax+by=1. On the other hand, when n is even, it becomes a(qn1)+bpn1=1; so x0=qn1,y0=pn1 is a solution.
When x0,y0 is a solution of the LDE ax+by=1, ax0+by0=1; so a(cx0)+b(cy0)=c; thus, cx0,cy0 is a particular solution of the LDE ax+by=c.
The following example illustrates this technique.
By Theorem , p3q2q3p2=(1)31; that is, (63)·4+23·11=1.Consequently, x0=4,y0=11 is a particular solution of the LDE (63)x+23y=1.Therefore, 7x0=28,7y0=77isaparticularsolutionoftheLDE(63)x+23y=7.So, by Theorem, its general solution is $x = 7x_0 +bt = 28+23t, y = 7y_0 −at =77+63t.$

Pell's Equation
The integer 10 has an intriguing property: One less than the number is a square: 101=32; and one less than one-half of the number is also a square: 10/21=22. The next number that has the same property is 290:2901=172 and 290/21=122.

Are there are other such numbers? If yes, how do we find them?

To discover this, let r be such a number. Then r1=x2 and r/21=y2,for some positive integers x and y. Eliminating r between the equations yields the Diophantine equation x22y2=1
Clearly x = 3, y = 2 is a solution of the equation:
322.22=1. Likewise, x=17,y=12 is also a solution: 1722·122=1.

More generally, we would like to solve the nonlinear diophantine equation x2Ny2=1. This equation is commonly called Pell’s equation, after John Pell.

Trivial Solutions
When N=0, we halve x=±1, but y is arbitrary. They are trivial solutions. If N2,x2Ny20; so the only solutions are the trivial ones with y=0, namely, x=±1,y=0. If N=1, then x2+y2=1; again, the only solutions are the trivial ones, namely, (±1,0),(0,±1).

Nontrivial Solutions
So we assume that N>0. If N is a square m2, then Pell’s equation yields 1=x2m2y2=(xmy)(x+my).Then xmy=1=x+my or xmy=1=x+my. Solving these two linear systems, we get a solution in each case.Thus, when N<0 or N is a square, we know the exact solutions, and they are finite in number. So we turn to the case when N is positive and square-free.

The simplest such Pell equation is when N=2:x22y2=1. Because 322.22=1,x=3,y=2 is a solution; so is x=17,y=12. Thus, x22y2=1 has at least two solutions. In fact, we shall see later that it has infinitely many solutions.

Next, we make thee important observations about the solutions:
  • If x,y is a solution, then so are x,y; and x,±y. Thus, the nontrivial solutions occur in quadruples. So we can always assume that x and y are positive.
  • Because 1+Ny2=x2, nontrivial solutions can be found by computing 1+Ny2 and then determining if it is a square. For example, 1+92·1202=11512;so x=1151,y=120 is a solution of x292y2=1, as noted earlier. This method, although it sounds simple in theory, is not practical.
  • Let a,b be a solution. Then a2Nb2=(a+bN)(abN), so numbers of the form a+bN play an important role in finding the solutions. For convenience, we then say that the irrational number a+bN yields a solution.
For instance, 1151+12092 yields a solution of x292y2=1.

LEMMA : If r and s yield solutions of Pell’s equation x2Ny2=1, where N>0 and is squarefree, then so does rs.

Example:Let r=3+22 and s=17+122 yield two solutions of x22y2=1. Find two additional solutions.
Solution
By Lemma rs=(3·17+2·12·2)+(3·12+2·17)2=99+702 yields a solution: 
9922·702=1. Likewise,r2=(3·3+2·2·2)+(3·2+2·3)2=17+122 also yields a solution

The following lemma helps us determine the least solution of x2Ny2=1,where N>0 and is square-free.

LEMMA  Let N>0 and square-free. Suppose r=a+bN  and s=c+dN  yield solutions of x2Ny2=1, where a,b,c,d>0. Then r<s if and only if a<c.

THEOREM: Suppose α+βN yields the least solution of x2Ny2=1, where N>0 and is square-free. Then the equation has infinitely many solutions, given by

x=[(α+βN)n+(αβN)n]/2
y=[(α+βN)n(αβN)n]/(2N)

Example:Using the fact that 3+22 yields the least solution of x22y2=1, find two new solutions.
By the above theorem
x=[(3+22)n+(322)n]/2
y=[(3+22)n(322)n]/(22)
is a solution for every integer n. Notice that n=1 yields the least solution. 

When n=2,
x=[(3+22)2+(322)2]/2=17
and 
y=[(3+22)2(322)2]/(22)=12

When n=3,
x=[(3+22)3+(322)3]/2=99
and 
y=[(3+22)3(322)3]/(22)=70

Thus 17+122 and 99=702 yield two new solutions.

Comments

Popular posts from this blog

Number Theory CST 292 KTU IV Semester Honors Course Notes Dr Binu V P 9847390760

Sum of Squares

Well Ordering Principle