The Pellian Equation x2 −Dy2 = ±1 Revisited (Part II)

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

The Pellian equation x2 − Dy2 = 1 was covered in Part I. The negative Pellian equation x2 − Dy2 = −1 is a topic of this page which follows a similar method as described previously with some modifications. The least solutions of the negative Pell equation, however, are not posted in either Wikipedia (which has a small section describing this topic) or listed in Recreations in the Theory of Numbers by Albert H. Beiler (1966) as were their positive Pell solutions, but the following equations on page 253 may be used for their computation:

x = [(p + qD)2n-1 + (p − qD)2n-1 ∕ 2]
y = [(p + qD)2n-1 + (p − qD)2n-1 ∕ 2D)]

In addition, the method of converting a quadratic surd D into continued fractions (pages 261-262) are also methods that can be used to generate these least solutions. However, a simpler method to generate the subsequent x and y values, starting with the known least solutions for the positive Pell equation, is now the subject of this web page. The method involves the use of the following mathematical expressions:

RDu = (n1 + D) ∕n2
RD = (n1 + D)2 ∕n2

where n1 was computed and then found to be the same number as the least x of the negative least solution, viz., the x value in red in each of the odd numbered tables (a totally unexpected surprise) and n2 is 1. RDu is the non squared irrational number or surd obtained from RD which was used to calculate the x and y in the regular Pell equation of Part I. Initially the known least value solutions x and y of the positive Pell equation is multiplied and rounded off by RDu to generate a new x and y solutions with z = −1. This new row of values is then tested to make sure it fits the negative Pell equation.

Multiplication of this new row by RDu produces a third row of positive Pell values and further repetition produces −1 values followed by +1 values. Once the desired number of rows is obtained we can backtrack and generate the approximate least solution values of the negative Pell equation by taking the initial +1 least solutions x and y and dividing by RDu. It is simple and generates the least solution of the negative Pell equation which we can tabulate in a new table. This can be done by either extracting the x and y from the RDu table, or starting anew using the newly obtained x and y values then multiplying thru repeatedly by RD just as was done in Part I for the positive Pell equation.

Only the first few numbers D in Part I for which x2 − Dy2 = −1 is solvable are 2,5,10,13,17,26,29... the numbers in the sequence A031396 in the OEIS. The values obtained for the RDs from Part I all have n2 = 1 except for the D = 13 having an n2 of 4 and whose RD is calculated in a slightly different manner. All the others with n2 > 1 are not solvable using the method on this page thus making it consistent with known methods.

Tables of D and Pell (x,y,±1) and (x,y,−1) Triples

Table I D=2
x y z
11 -1
321
75-1
17121
4129-1
99701
239169-1
5774081
1393985-1
336323781
81195741-1
Table II D=2
x y z
11-1
75-1
4129-1
239169-1
1393985-1
81195741-1
4732133461-1
275807195025-1
Table III D=5
x y z
21 -1
941
3817-1
161721
6821305-1
288912921
122385473-1
51841231841
21960298209-1
9302494160201
39405981762289-1
Table IV D=5
x y z
21-1
3817-1
682305-1
122385473-1
21960298209-1
39405981762289-1
7071116231622993-1
1268860318567451585-1
Table V D=10
x y z
31 -1
1961
11737-1
7212281
44431405-1
2737986581
16871753353-1
10396813287761
64068032026009-1
39480499124848301
24328979776934989-1
Table VI D=10
x y z
31-1
196-1
11737-1
721228-1
44431405-1
273798658-1
16871753353-1
1039681328776-1
Table I D=13
x y z
185 -1
6491801
233826485-1
8424012336401
303498188417525-1
10934358493032645401
3939404038210925940965-1
14192788896013936371392801
Table II D=13
x y z
185-1
233826485-1
303498188417525-1
3939404038210925940965-1
5113343406601814181862955045-1
Table VII D=17
x y z
41 -1
3381
26865-1
21775281
176844289-1
143649348401
1166876283009-1
947865722989121
Table VIII D=17
x y z
41-1
26865-1
176844289-1
1166876283009-1
7699613218674305-1
50805778361232221121-1
Table IX D=26
x y z
51 -1
51101
515101-1
520110201
5252510301-1
5304511040301
53570351050601-1
54100801106100401
Table X D=26
x y z
51-1
515101-1
5252510301-1
53570351050601-1
546365045107151001-1

This concludes Part II. Go back to Part I. Go to Part III.

Go back to homepage.


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