Newton, Halley, Pell and the Optimal Iterative High-Order Rational Approximation of √N

Abstract

In this paper we examine single-step iterative methods for the solution of the nonlinear algebraic equation f (x) = x2 - N = 0 , for some integer N, generating rational approximations p/q that are optimal in the sense of Pell’s equation p2 - Nq2 = k for some integer k, converging either alternatingly or oppositely.

Share and Cite:

Fried, I. (2018) Newton, Halley, Pell and the Optimal Iterative High-Order Rational Approximation of √N. Applied Mathematics, 9, 861-873. doi: 10.4236/am.2018.97059.

1. Introduction

We present ever higher order single-point iterative methods for the numerical solution of the nonlinear equation f ( x ) = 0 . Then we show that for f ( x ) = x 2 N these methods are optimal in the sense of Pell’s equation (see [1] [2] [3] [4] ), namely, that if the initial guess x 0 = p 0 / q 0 satisfies the diophantine Pell’s equation p 0 2 N q 0 2 = k , for some integer k, then the iterated value x 1 = p 1 / q 1 , obtained by a method of order n, satisfies the Pell equation p 1 2 N q 1 2 = k n .

Using a generalization of the recursive solution to Pell’s equation we generate super-linear and super-quadratic methods that converge alternatingly and oppositely to provide upper and lower bounds on the targeted root (see [5] [6] [7] ).

2. Pell’s Equation

Let N be a positive integer which is not a square. The pair of natural numbers p, q satisfying the general Pell’s equation (see [1] [2] [3] [4] ):

p 2 N q 2 = k (1)

are such that

( p q ) 2 = N + k q 2 or p q = N ( 1 + k 2 N q 2 ) (2)

nearly, if k / ( N q 2 ) 1 . If k > 0, then p/q is an overestimate of N , and if k < 0, then p/q is an underestimate of N .

We verify (see [1] , Chapter 32) that a new solution pair ( p 1 , q 1 ) to the optimal, or minimal ( k = ± 1 ), Pell’s equation is obtained from a known solution pair ( p 0 , q 0 ) by the expansion of

p 1 + N q 1 = ( p 0 + N q 0 ) n , (3)

where variable n is taken odd for k = 1 .

For example, if we take in Equation (3) n = 2, then (see [8] [9] , and also [10] [11] )

p 1 + N q 1 = ( p 0 2 + N q 0 2 ) + N ( 2 p 0 q 0 ) (4)

and

p 1 = p 0 2 + N q 0 2 , q 1 = 2 p 0 q 0 , or x 1 = x 0 2 + N 2 x 0 , x 1 = p 1 q 1 , x 0 = p 0 q 0 , (5)

which is Newton’s method, preferably written as

x 1 = x 0 x 0 2 N 2 x 0 , x 1 = x 0 f ( x 0 ) f ( x 0 ) , f ( x ) = x 2 N . (6)

Here

p 1 2 N q 1 2 = ( p 0 2 N q 0 2 ) 2 . (7)

3. Super-Linear Iterative Method

We start with the general power series expansion around N

x 1 = F ( x 0 ) = F ( N ) + F ( N ) ( x N ) + 1 2 ! F ( N ) ( x N ) 2 + O ( ( x N ) 3 ) (8)

and ask that N = F ( N ) , or that N is a fixed-point of iteration function F ( x ) . Now we pass from the general to the specific

x 1 = A x 0 + B C x 0 + D = A N + B C N + D + A D B C ( C N + D ) 2 ( x 0 N ) + O ( ( x 0 N ) 2 ) (9)

for parameters A , B , C , D , and we ask, here specifically, that

N = A N + B C N + D , (10)

or, again, that N is a fixed-point of the rational iteration function in Equation (9). To satisfy Equation (10) we take B = N C , D = A , and are left with

x 1 = A x 0 + N C C x 0 + A , x 1 N = A / C N A / C + N ( x 0 N ) , A / C > 0 (11)

in which A / C + N in the second denominator is written for A / C + x 0 .

Writing x 0 = p 0 / q 0 and x 1 = p 1 / q 1 , the iterative method assumes the form

x 1 = p 1 q 1 = A p 0 + C N q 0 C p 0 + A q 0 or p 1 = A p 0 + C N q 0 , q 1 = C p 0 + A q 0 , x 0 = p 0 q 0 , C 0 (12)

for parameters A and C. Referring to Equation (12) we have

Lemma 1. If p 0 , q 0 are such that p 0 2 N q 0 2 = k , and A 2 N C 2 = m , then p 1 , q 1 are such that p 1 2 N q 1 2 = k m .

Proof. We verify that

p 1 2 N q 1 2 = ( A p 0 + N C q 0 ) 2 N ( C p 0 + A q 0 ) 2 = ( A 2 N C 2 ) ( p 0 2 N q 0 2 ) = k m , (13)

and the result follows.

For instance, if N = 2 , C = A = 1 , p 0 = 3 and q 0 = 2 , then

p 1 = p 0 + 2 q 0 = 7 , q 1 = p 0 + q 0 = 5 and p 1 2 2 q 1 2 = 1. (14)

Observe that the iterative method (11) converges linearly for any A / C > 0 , since then

1 < A / C N A / C + N < 1 (15)

and | x 1 N | < | x 0 N | .

4. Alternating Convergence

If in Equation (11), A / C > N , then x 0 N and x 1 N are of the same sign, but if A / C < N , they are of opposite signs. Also, the smaller | A / C N | , the faster the convergence.

The method of Equation (11), as well as higher order methods, can be derived directly, in reverse, from the generalized Equation (3)

p 1 + N q 1 = ( p + N q ) n ( p 0 + N q 0 ) m (16)

with n = 1 and m = 1. Indeed, expansion of Equation (16) brings it to the form

p 1 + N q 1 = ( p p 0 + N q q 0 ) + N ( q p 0 + p q 0 ) , (17)

which elicits the pair of equations

p 1 = p p 0 + N q q 0 , q 1 = q p 0 + p q 0 (18)

with A = p and C = q in Equation (11).

For example, taking in Equation (11) N = 7 , p 0 / q 0 = 8 / 3 , p 0 2 7 q 0 2 = 1 , p / q = A / C = 5 / 2 , p 2 7 q 2 = 3 , we obtain from it the alternating sequence of convergents:

x 1 = p 1 q 1 = { 8 3 , 82 31 , 844 319 , 8686 3283 , 89392 33787 , 919978 347719 , } (19)

with

( p 1 q 1 ) 2 = { 7.1 , 6.997 , 7.00009 , 6.9999975 , 7.00000007 , 6.9999999979 , } (20)

5. The Method of Newton and Its Opposites

Taking in Equation (9) A / C = x 0 , or A = p 0 and C = q 0 , the linear method rises to become the quadratic method of Newton, otherwise directly obtainable from Equation (3) with n = 2 (see Equations (5)-(7)).

Here, for Newton’s method

x 1 N = 1 2 N ( x 0 N ) 2 (21)

nearly, if x 0 is close to N .

The method

p 1 q 1 = 2 N p 0 q 0 p 0 2 + N q 0 2 , or x 1 = 2 N x 0 x 0 2 + N (22)

is such that

p 1 2 N q 1 2 = N ( p 0 2 N q 0 2 ) 2 , (23)

or

x 1 N = 1 2 N ( x 0 N ) 2 (24)

if x 0 is close to N . Here, convergence is quadratic and from below. Compare Equations ((21) and (24)).

The average of methods (5) and (22)

x 1 = 1 2 ( x 0 2 + N 2 x 0 + 2 N x 0 x 0 2 + N ) (25)

is quartic

x 1 N = 1 8 N N ( x 0 N ) 4 . (26)

Or

p 1 q 1 = p 0 4 + 6 N p 0 2 q 0 2 + N 2 q 0 4 4 p 0 q 0 ( p 0 2 + N q 0 2 ) , and p 1 2 N q 1 2 = ( p 0 2 N q 0 2 ) 4 . (27)

For example, for N = 2 and x 0 = 3 / 2 we obtain from method (6) x 1 = 17 / 12 , from method (22) x 1 = 24 / 17 , and for their average x 1 = 577 / 408 , and

17 2 2 × 12 2 = 1 , 24 2 2 × 17 2 = 2 , 577 2 2 × 408 2 = 1. (28)

Here, ( 17 / 12 ) 2 = 2.007 , ( 24 / 17 ) 2 = 1.993 , ( 577 / 408 ) 2 = 2.000006 .

The biased average method

x 1 = x 0 2 + N 2 x 0 ( 1 2 ϵ ) + 2 N x 0 x 0 2 + N ( 1 2 + ϵ ) , ϵ = 1 16 N 2 ( x 0 2 N ) 2 (29)

produces an oppositely converging quartic method such that, asymptotically

x 1 N = 1 8 N N ( x 0 N ) 4 . (30)

Compare Equations ((26) and (30)).

The biased average method

x 1 = x 0 2 + N 2 x 0 ( 1 2 ϵ ) + 2 N x 0 x 0 2 + N ( 1 2 + ϵ ) , ϵ = 1 32 N 2 ( x 0 2 N ) 2 (31)

is a quintic method and such that

x 1 N = 1 4 N 2 ( x 0 N ) 5 + O ( ( x 0 N ) 6 ) , (32)

implying that the convergence of method (31) is alternating. Indeed, starting with x 0 = 3 / 2 we obtain from method (31)

x 0 2 = 2 + 0.25 , x 1 2 = 2 7.6 × 10 7 , x 1 2 = 2 + 2.5 × 10 34 . (33)

6. More Convergence from Below

The noteworthy method

x 1 = 3 N x 0 2 2 N x 0 (34)

converges to N quadratically and from below,

x 1 N = 3 2 N ( x 0 N ) 2 . (35)

We write x 0 = p 0 / q 0 and x 1 = p 1 / q 1 and have for Equation (34) that

p 1 2 N q 1 2 = ( p 0 2 4 N q 0 2 ) ( p 0 2 N q 0 2 ) 2 . (36)

7. Super-Linear Alternating Methods

We put in Equation (11)

A = x 0 ( 1 + 2 ϵ ) , C = 1 , (37)

and obtain

x 1 N = ϵ ( x 0 N ) + 1 2 N ( x 0 N ) 2 (38)

nearly, if x 0 is close to N and ϵ 1 , the super-linear method

x 1 = x 0 x 0 2 N 2 x 0 ( 1 + ϵ ) or x 1 = x 0 x 0 2 N 2 x 0 ( 1 ϵ ) . (39)

A small negative ϵ causes method (39) to ultimately oscillate, or alternate.

With

ϵ = 1 4 N ( x 0 2 N ) (40)

method (39) becomes cubic and of alternating convergence

x 1 N = 3 4 N ( x 0 N ) 3 + O ( ( x 0 N ) 4 ) . (41)

8. Stacked Methods

From

p 2 + N q 2 = ( p 0 + N q 0 ) ( p 1 + N q 1 ) = ( p 0 p 1 + N q 0 q 1 ) + N ( p 0 q 1 + p 1 q 0 ) (42)

we have the stacked method

p 2 q 2 = p 0 p 1 + N q 0 q 1 p 0 q 1 + p 1 q 0 , (43)

or

x 2 = x 0 x 1 + N x 0 + x 1 . (44)

It is such that if

x 0 = N + ϵ 0 , and x 1 = N + ϵ 1 , (45)

then

x 2 = N + ϵ 0 ϵ 1 2 N = N + 1 2 N ( x 0 N ) ( x 1 N ) (46)

nearly, if both epsilons are small compared with N .

If ϵ 0 ϵ 1 < 0 , then x 2 < N , and if ϵ 0 ϵ 1 > 0 , then x 2 > N . For example, for N = 2 we obtain from the stacked method of Equation (44) the alternatingly converging sequence

x 2 = { 1 1 , 3 2 , 7 5 , 41 29 , 577 408 , 47321 33461 , } (47)

with

x 2 2 = { 1 , 2.25 , 1.96 , 1.9988 , 2.000006 , 1.9999999991 , } (48)

9. Halley’s Third-Order Method

Halley’s cubic iterative method

x 1 = x 0 det [ 1 f 0 0 2 f 0 ] det [ f 0 f 0 f 0 2 f 0 ] f 0 (49)

becomes for f ( x ) = x 2 N and x 0 = p 0 / q 0

x 1 = p 1 q 1 , p 1 = p 0 ( p 0 2 + 3 N q 0 2 ) , q 1 = q 0 ( 3 p 0 2 + N q 0 2 ) , (50)

and is verified to be such that

p 1 2 N q 1 2 = ( p 0 2 N q 0 2 ) 3 = k 3 if p 0 2 N q 0 2 = k , (51)

implying that if p 0 / q 0 is an underestimate (k < 0), then so is p 1 / q 1 , and if p 0 / q 0 is an overestimate (k > 0), then so is p 1 / q 1 .

Otherwise, here

x 1 N = 1 4 N ( x 0 N ) 3 (52)

nearly, if p 0 / q 0 is close to N .

10. Fourth-Order Method

The quartic method (see [12] [13] for higher order methods):

x 1 = x 0 det [ 1 f 0 0 0 2 f 0 f 0 0 3 f 0 3 f 0 ] det [ f 0 f 0 0 f 0 2 f 0 f 0 f 0 3 f 0 3 f 0 ] f 0 (53)

becomes for f ( x ) = x 2 N and x 0 = p 0 / q 0

x 1 = p 1 q 1 , p 1 = p 0 4 + 6 N p 0 2 q 0 2 + N 2 q 0 4 , q 1 = 4 p 0 q 0 ( p 0 2 + N q 0 2 ) , (54)

observed to be a repeated second order method and such that

p 1 2 N q 1 2 = ( p 0 2 N q 0 2 ) 4 . (55)

Otherwise, here

x 1 N = 1 8 N N ( x 0 N ) 4 (56)

if x 0 is close to N . Convergence here is from above.

11. Fifth-Order Method

The quintic method

x 1 = x 0 det [ 1 f 0 0 2 f 0 f 0 0 3 f 0 3 f 0 f 0 0 4 f 0 6 f 0 4 f 0 ] det [ f 0 f 0 f 0 2 f 0 f 0 f 0 3 f 0 3 f 0 f 0 f 0 4 f 0 6 f 0 4 f 0 ] f 0 (57)

becomes for f ( x ) = x 2 N and x 0 = p 0 / q 0

x 1 = p 1 q 1 , p 1 = p 0 ( p 0 4 + 10 N p 0 2 q 0 2 + 5 N 2 q 0 4 ) , q 1 = q 0 ( 5 p 0 4 + 10 N p 0 2 q 0 2 + N 2 q 0 4 ) , (58)

and happens to be such that

p 1 2 N q 1 2 = ( p 0 2 N q 0 2 ) 5 . (59)

Otherwise, here

x 1 N = 1 16 N 2 ( x 0 N ) 5 (60)

if x 0 is close to N .

12. A Rational Quadratic Method

The method

x 1 = 2 2 + 4 x 0 + 2 x 0 2 2 + 2 2 x 0 + x 0 2 (61)

is merely x 1 = 2 in disguise. Replacement of 2 by the good rational approximation p/q turns the scheme into

x 1 = 2 p + 4 q x 0 + p x 0 2 2 q + 2 p x 0 + q x 0 2 , (62)

and for the specific p / q = 7 / 5 , 7 2 2 × 5 2 = 1 , it becomes

x 1 = p 1 q 1 = 14 + 20 x 0 + 7 x 0 2 10 + 14 x 0 + 5 x 0 2 , x 0 = p 0 q 0 , p 1 2 2 q 1 2 = ( p 0 2 2 q 0 2 ) 2 . (63)

Starting with x 0 = 7 / 5 we obtain x 1 = 239 / 169 , x 1 2 = 1.999965 . Starting with x 0 = 17 / 12 we obtain x 1 = 8119 / 5741 , x 1 2 = 1.99999997 . Then

x = 1855077841 / 1311738121 , 1855077841 2 2 × 1311738121 2 = 1 ( 1855077841 / 131173812 ) 2 = 1.99999999999999999942. (64)

From

x 1 = p 1 q 1 = 6 + 8 x 0 + 3 x 0 2 4 + 6 x 0 + 2 x 0 2 , x 0 = p 0 q 0 , p 1 2 2 q 1 2 = ( p 0 2 2 q 0 2 ) 2 , (65)

obtained from Equation (62) with p / q = 3 / 2 , 3 2 2 × 2 2 = 1 , we compute

x 1 = { 3 / 2 , 99 / 70 , 114243 / 80782 , 152139002499 / 107578520350 } (66)

with

152139002499 2 2 × 107578520350 2 = 1 ( 152139002499 / 107578520350 ) 2 = 2.000000000000000000000086. (67)

13. The General Rational Super-Quadratic Method

We start by writing

x 1 = p 1 q 1 = A x 0 2 + B x 0 + C P x 0 2 + Q x 0 + R (68)

to have

x 1 N = p 1 ( x 0 ) q 1 ( x 0 ) N q 1 ( x 0 ) . (69)

To have a factor ( x 0 N ) 2 in the numerator of the right-hand side of Equation (69), we ask that

p 1 ( x ) q 1 ( x ) N = 0 , and that ( p 1 ( x ) q 1 ( x ) N ) = 0 , at x = N (70)

resulting in

P = 1 , B = 2 N , R = N , C = A N , Q = 2 A , (71)

and the method

x 1 N = A N x 0 2 + 2 A x 0 + N ( x 0 N ) 2 (72)

that can be raised to cubic with the choice A = x 0 .

Instead, we leave A = p / q , x 0 = p 0 / q 0 to have the method

x 1 = p 1 q 1 = A x 0 2 + 2 N x 0 + A N x 0 2 + 2 A x 0 + N , A = p q , x 0 = p 0 q 0 (73)

such that

p 1 2 N q 1 2 = ( p 2 N q 2 ) ( p 0 2 N q 0 2 ) 2 . (74)

For example, for N = 7 , A = 8 / 3 , x 0 = 8 / 3 , 8 2 7 × 3 2 = 1 , we obtain from Equation (73)

x 1 = 2024 765 , x 1 2 = 7.0000017 , 2024 2 7 × 765 2 = 1 , x 1 = 130576328 49353213 , x 1 2 = 7.0000000000000004 , 130576328 2 7 × 49353213 2 = 1. (75)

For N = 7 , A = 5 / 2 , x 0 = 5 / 2 , 5 2 7 × 2 2 = 3 , we obtain from Equation (73)

x 1 = 545 206 , x 1 2 = 6.99936 , 545 2 7 × 206 2 = 27 , x 1 = 6113945 2310854 , x 1 2 = 6.9999999996 , 6113945 2 7 × 2310854 2 = 2187. (76)

Equation (73), as well as higher order methods, could have been derived directly, in reverse, from

p 1 + N q 1 = ( p + N q ) n ( p 0 + N q 0 ) m (77)

with n = 1 , m = 2 .

14. The Direct Construction of a Super-Quadratic Method

To locate root a of f ( x ) , f ( a ) = 0 , we start by writing the fixed-point iterative method

x 1 = F ( x 0 ) , F ( x ) = x + A f ( x ) + B f 2 ( x ) (78)

for constants A and B. Then we require that

F ( a ) = 0 , F ( a ) = ϵ , (79)

where ϵ is any parameter.

Differentiating F ( x ) once and twice, the previous system of two equations in the two unknowns A and B becomes

[ f 2 f f f 2 ( f 2 + 2 f f ) ] [ A B ] = [ 1 ϵ ] , (80)

which we solve to have

A = 1 f 3 ( ϵ f f + f 2 + f f ) , B = 1 2 f 3 ( ϵ f + f ) . (81)

Since root a of f ( x ) is unknown we replace a by x 0 to have the method

x 1 = x 0 f 0 f 0 1 2 f 0 2 f 0 2 ( ϵ + f 0 f 0 ) , (82)

where f 0 = f ( x 0 ) etc. Here

x 1 a = 1 2 ϵ ( x 0 a ) 2 + O ( ( x 0 a ) 3 ) , (83)

and convergence is from below if ϵ > 0 , while convergence is from above if ϵ < 0 .

For

f ( x ) = x 2 N (84)

the method becomes

x 1 = 1 8 x 0 3 ( N 2 + 6 N x 0 2 + 3 x 0 4 ϵ ( x 0 2 N ) 2 x 0 ) . (85)

For example, for N = 2 , ϵ = 1 / 25 , and x 0 = 1.5 we have x 1 = 1.414213 and x 1 2 = 1.9999983 . For ϵ = 0 we have x 1 = 1.414352 and x 1 2 = 2.00039 .

The choice

ϵ = 1 2 N N ( x 0 2 N ) (86)

makes method (82) the quartic

x 1 N = 7 8 N N ( x 0 N ) 4 + O ( ( x 0 N ) 5 ) . (87)

15. The Simplest of All Methods

A simple routine for constructing a rational approximation to an irrational number consists of starting with any good rational approximation p/q to, say, 2 , then adding one to p if ( p / q ) 2 < 2 , or adding one to q if ( p / q ) 2 > 2 . Starting with 3/2 we obtain this way the alternating sequence

3 2 , 3 3 , 4 3 , 5 3 , 5 4 , 6 4 , 6 5 , 7 5 , 8 5 , 8 6 , 9 6 , 9 7 , 10 7 , 10 8 , 11 8 , 12 8 , 12 9 , 13 9 , , (88)

where ( 12 / 9 ) 2 = 1.78 , ( 13 / 9 ) 2 = 2.086 .

The method is sluggish, yet we can glean from this long sequence some very good Pell approximations to 2 , such as 1 / 1 , k = 1 ; 3 / 2 , k = 1 ; 7 / 2 , k = 1 ; 17 / 12 , k = 1 ; 41 / 29 , k = 1 ; 99 / 70 , k = 1 ; 239 / 169 , k = 1 ; 577 / 408 , k = 1 . Number k = p 2 N q 2 .

Going up to 4-digit approximations we find ( 3363 / 2378 ) 2 = 2.000000180 , 3363 2 2 × 2378 2 = 1 , and then ( 8119 / 5741 ) 2 = 1.999999970 , 8119 2 2 × 5741 2 = 1 . Among the 5-digit approximations we find ( 19601 / 13860 ) 2 = 2.000000005 , 19601 2 2 × 13860 2 = 1 and ( 47321 / 33461 ) 2 = 1.999999999 , 47321 2 2 × 33461 2 = 1 .

Thus, the alternating sequence of rational approximations to 2

1 1 , 3 2 , 7 5 , 17 12 , 41 29 , 99 70 , 239 169 , 577 408 , 1393 985 , 3363 2378 , 8119 5741 , 19601 13860 , 47321 33461 , 114243 80782 (89)

is of excellent p/q rational approximations to 2 such that p 2 2 q 2 = 1 if p / q < 2 , and p 2 2 q 2 = 1 if p / q > 2 .

For N = 7 we find this way 8 / 3 , k = 1 ; 127 / 48 , k = 1 ; 2024 / 765 , k = 1 for the upper bounds, and 2 / 1 , k = 3 ; 5 / 2 , k = 3 ; 37 / 14 , k = 3 ; 82 / 31 , k = 3 for the lower bounds.

To understand the convergence mechanism of this algorithm, let p/q be the last fraction less then 2 , namely, such that p / q < 2 , but ( p + 1 ) / q > 2 . Then

p q < 2 < p q + 1 q , (90)

and the bounds on 2 become tighter as q increases by the repeated addition of 1 to it.

16. Bisection by Mediants

Mediant m of the two nonzero rationals a / b < c / d is

m = a + c b + d . (91)

Lemma 2. We have

a b < m < c d . (92)

Proof. Since a / b < c / d , b c a d > 0 , and the result follows.

Lemma 3. We have

If b c a d = k , then m a b = k b ( b + d ) , and c d m = k d ( b + d ) . (93)

Proof. The result follows by some simple algebra.

For example, from Equation (89) we have that 7 / 5 < 2 < 3 / 2 with 3 / 2 7 / 5 = 1 / 10 . Here the mediant m = 10 / 7 , and 7 / 5 < 2 < 10 / 7 with 10 / 7 7 / 5 = 1 / 35 . The next m = 17 / 12 , and 7 / 5 < 2 < 17 / 12 with 17 / 12 7 / 5 = 1 / 60 ; all spreads between the upper and lower bounds having a numerator equal to one.

Unlike ordinary bisections, bisection by mediants converges to a rational number in a finite number of steps. For example, by mediants

1 1 < 2 < 4 1 , 1 1 < 2 < 5 2 , 6 3 2 6 3 , (94)

while by ordinary bisection

1 1 < 2 < 4 1 , 2 2 < 2 < 5 2 , 7 4 < 2 < 10 4 , 14 8 < 2 < 17 8 , 28 16 < 2 < 31 16 , . (95)

17. Root Bracketing

We start with the following result.

Lemma 4. Let the integer pair ( p 0 , q 0 ) satisfy Pell’s equation p 0 2 N q 0 2 = 1 , and let p 1 = A p 0 + C N q 0 , q 1 = C p 0 + A q 0 . Then

p 0 q 0 p 1 q 1 = C q 0 q 1 . (96)

Proof. The result follows by common denominator.

Numerical example. For N = 7 , A = 2 , C = 1 we have that A 2 7 C 2 = 3 . Hence, in accordance with Lemma 1

p 1 = 2 p 0 + 7 q 0 , q 1 = p 0 + 2 q 0 , are such that p 1 2 7 q 1 2 = 3 ( p 0 2 7 q 0 2 ) = 3. (97)

Choosing the Pell (k = 1) pair ( p 0 , q 0 ) = ( 127 / 48 ) , 127 2 7 × 48 2 = 1 , we obtain the Pell ( k = 3 ) pair ( p 1 , q 1 ) = ( 590 , 223 ) , 590 2 7 × 223 2 = 3 , and

590 223 < 7 < 127 48 of spread 127 48 590 223 = 1 10704 (98)

of a numerator equal to one.

Similarly, choosing the Pell (k = 1) pair ( p 0 , q 0 ) = ( 2024 , 765 ) we obtain the Pell ( k = 3 ) pair ( p 1 , q 1 ) = ( 9403 , 3554 ) , and

9403 3554 < 7 < 2024 765 of spread 2024 765 9403 3554 = 1 2718810 . (99)

The mediant in Equation (99) is m = ( 9403 + 2024 ) / ( 3554 + 765 ) = 11427 / 4319 , and with it

9403 3554 < 7 < 11427 4319 of spread 11427 4319 9403 3554 = 1 15349726 . (100)

18. Conclusion

In this paper we have examined single-step iterative methods for the solution of the nonlinear algebraic equation f ( x ) = x 2 N = 0 , for some integer N, which produce rational approximations p/q that are optimal in the sense of Pell’s equation p 2 N q 2 = k for some integer k. We have also considered the most elementary bisection method for iteratively creating upper and lower bounds on the targeted root.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

[1] Silverman, J.H. (2006) A Friendly Introduction to Number Theory, Chapter 12. Prentice Hall, New Jersey.
[2] Whitford, E.E. (1912) The Pell Equation. E. E. Whitford, New York.
[3] Barbeau, E.J. (2000) Pell’s Equation. Springer, New York.
[4] Jacobson Jr., M.J. and Williams, H.C. (2009) Solving the Pell Equation. Springer, New York.
[5] Fried, I. (2009) Oppositely Converging Newton-Raphson Method for Nonlinear Equilibrium Problems. International Journal for Numerical Methods in Engineering, 79, 375-378.
https://doi.org/10.1002/nme.2574
[6] Fried, I. (2013) High-Order Iterative Bracketing Methods. International Journal for Numerical Methods in Engineering, 94, 708-714.
https://doi.org/10.1002/nme.4467
[7] Fried, I. (2014) Effective High-Order Iterative Methods via the Asymptotic Form of the Taylor-Lagrange Remainder. Journal of Applied Mathematics, 2014, Article ID: 108976.
https://doi.org/10.1155/2014/108976
[8] Brown, L.M. (1997) An Algorithm for Square Roots: An Episode in the Campaign Against Dotage. The Mathematical Gazette, 81, 428-429.
https://doi.org/10.2307/3619622
[9] McBride, A. (1999) Remarks on Pell’s Equation and Square Root Algorithms. The Mathematical Gazette, 83, 47-52.
https://doi.org/10.2307/3618682
[10] Dunkel, O. (1927) A Note on the Computation of Arithmetic Roots. The American Mathematical Monthly, 34, 366-368.
https://doi.org/10.2307/2300041
[11] Uspensky, J.V. (1927) Note on the Computation of Roots. The American Mathematical Monthly, 34, 130-134.
https://doi.org/10.1080/00029890.1927.11986665
[12] Neta, B. (1979) A Sixth-Order Family of Methods for Nonlinear Equations. International Journal of Computer Mathematics, Section B, 7, 157-161.
https://doi.org/10.1080/00207167908803166
[13] Fried, I. (2016) A Remarkable Chord Iterative Method for Roots of Uncertain Multiplicity. Applied Mathematics, 7, 1207-1214.
https://doi.org/10.4236/am.2016.711106

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.