The Pellian Equation x2 −Dy2 = −1 from a new Sequence Sn (Part XVI)

A New Method for Generating Pellian Triples (x,y,−1)

The Pellian equation is the Diophantine equation x2 − Dy2 = z2 where z equals 1. The least solutions of the Pell equation are posted in Wikipedia. and also listed in Table 91, page 254 of Recreations in the Theory of Numbers by Albert H. Beiler (1966), where the values for D on page 252-253 have been computed using the following two expressions:

x = [(p + qD)n + (p − qD)n ∕ 2]
y = [(p + qD)n + (p − q2D)n ∕ 22D)]

Although the tables in these two articles show a series of Ds, x, and ys used in the Pell equation I will not focus on any of these since they are not in the range of values required. Instead I will focus on those triples of the type (x,y,−1) using the negative Pell equation where we initially have two Ds, 373 and 533, which have an identical y value of 265. Before I turn to this topic I'll first post the first 20 values of a new sequence Sn not listed in the OEIS database, corresponding to the various D values with y = 265 and I'll be employing the negative Pell equation x2 − Dy2 = −1 to determine the x values of D equal to 373 and 533. The sequence Sn:

373, 533, 58522, 60362, 80834, 82994, 256961, 260801, 301745, 305905,
595850, 601690, 663106, 669266, 1075289, 1083029, 1164917, 1173077, 1694978, 1704818

where each group of two numbers have been separated into pairs since they are related by a certain property. The black and red pairs are different enough that both belong to two different sequences, Sn1 and Sn2, respectively.

There are a couple of ways to do this. First according to the literature both D values of 373 and 533 have large values of y for the positive Pell equation, where the equation is equal to 1. The y and x values obtained from Google's Canon Pellianus are plugged into the equation x + yD:

R373 = 52387849 + 2712540373    for the + Pell equation
R533 = 74859849 + 3242540533    for the + Pell equation

followed by taking the square roots of the R values:

where R373½ = 10236  
 and R533½ = 12236  

where a specific RD equals a specific x + yD. Dividing the two large numbers in each of the equations by the appropriate R½ gives:

5118 + 265373    for the − Pell equation
6118 + 265533    for the − Pell equation

Thus we have converted the + Pell numbers into their − Pell counterparts. The alternative approach, however, is to use the computer program (A Pell calculator) developed on this website (see Calculator) to find these values. Moreover, any D can be typed in. Easy peasy. For example, the calculations for 373 and 533 are shown in Calc 373 and Calc 533. In addition, the negative Pell numbers are the way to go since the positive Pell numbers are too cumbersome to work with.

And now to the juicy part the generation of the Sequence Sn. We set up a table where the first row consists of the number (Δ) to add to each number to generate the next number in the sequences of x that number being 70225 the square of y = 265. The third column contains the two xs 5118 and 6118, respectively. Subtracting 70225 from these two numbers gives −65107 and −64107 which are the required two numbers after 5118 and 6118 (after converting to positive numbers). It doesn't matter whether x is + or − in the Pell equation since x is being squared. These two numbers go into the last two rows and are subjected to the same addition with 70225. Since the same number is being added each time we can reduce this to a general equation where we can consider the numbers at n = 0, column 3 as being the initial x0 and use the equation:

x = 70225n + x0 (a)

where the general equation for the negative and positive Pell is:

x = y2n + x0 (b)

for all n ≥ 0.

Table I (the xs)
n --012 34
26527022570225702257022570225
xa−65107511875343145568215793 286018
xb−64107611876343146568216793 287018
xc-64107134332204557274782 345007
xd-65107135332205557275782 346007

Note that the two pair of xs differ by 1000. Strange but true. Using every one of these calculated xs and the lone y = 265 along with the negative Pell equation we can calculate for all Ds and obtain the results shown in Table II. However, there are two alternative ways to obtain the D values. We can use the equation for obtaining the D values by using the recursive formula:

Dn+1 = Dn + 2xn + 70225

for all n ≥ 0.

Or we can modify the Pellian formula and substitute the value of x in (a) to get a random access instead of the sequential equation above:

Dn = [(70225n + x0)2 + 1] 70225

and since

x0 + 265D0 = 2x0

from above in the RD section, then

265D0 = x0

and

Dn = [(70225n + 265D0)2 + 1] 70225 (c)

where (a) and (c) are the desired equations for generating all xs and all Ds for the sequence Sn. We can generalize these equations by using (b) and (d) as long as the initial variables are x0 and D0.

Dn = [(y2n + yD0)2 + 1] y2 (d)

for all n ≥ 0 in terms of D0 and y.

Similarly the next equation can be used to generate the positive Pell solutions if one desires to go via that route instead:

Dn = [(y2n + yD0)2 − 1] y2 (e)
Table II (the Ds)
n --012 34
Da-37380834301745663106 1164917
Db-53382994305905669266 1173077
Dc-585222569615958501075189 1694978
Dd-603622608016016901083029 1704818

Thus, one can see from scanning down the columns in Table II, that the numbers are identical to the original sequence Sn.

I mentioned above that the entries in the two sequences are related by a certain property. The method of using continuing fractions as used in the Pell calculator relies on the fact that when Qn = 1 in column n of the Pell calculator, the x and y values that satisfy the Pell equation fall at n − 1. For the negative Pell the value of n − 1 is an odd number, while the value for a positive Pell n − 1 is an even number.

Qn = 1 for the first subsequence Sn1 falls at an n = 6 with a period of 5 and for the second subsequence Sn2 falls at n = 8 with a period of 7. This is shown for 58522 and 60362 at Calc 58522 and Calc 60362. So these two sequences although having the same y value are not identical.

This concludes Part XVI. Go back to Part XV.

Go back to homepage.


Copyright © 2021 by Eddie N Gutierrez. E-Mail: enaguti1949@gmail.com