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

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

The Pellian equation x2 − Dy2 = 1 was covered in Part I and the negative Pellian equation x2 − Dy2 = −1 in Part II. 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. On the other hand, this method is now available on this website as a computer program making it extremely easy to generate the convergents. As to the topic of this article, it concerns the sequence Sn generated from the the equation 4(n)(n+3) + 5 which was found in the OEIS database with the Sloane number A078371 as the equation (2n + 5)(2n + 1). Note the equations though dissimilar are out of phase by one, i.e., n = 1 in the former is the same as n = 0 in the latter. The comment section describes the numbers in the sequence as quote "generic form of D in the (nontrivially) solvable Pell equation x2 + y2D = +4":

Sn = 4(n)(n+3) + 5
5, 21, 45, 77, 117, 165, 221, 285, 357, 437, 525, 621, 725, 837, 957, 1085, 1221, 1365...

These D values entered into the Pell calculator program gives initial values of Qn = +4 at n = 3 and 5 which leads to x and y values at positions n = 2 and 4. The Sloane comment that Qn is +4 is confusing and most important it makes no mention that the Qn = +1 for the numbers in this series all fall initially at n = 7 and multiples of 6m + 7 with m ≥ 0. In addition, all x and y are situated at n = 6 (and also at multiples of 6) as the variables pn and qn. See the examples for 117 at Code 117 and 1221 at Code 1221. The red number 5 in the above sequence although generated by the equation does not share the properties of the numbers under discussion since its Qn is 1 for all n (see Code 5).

Table I shows the first 13 D numbers in the sequence Sn.

Table I
D214577117165221285357437525621 725837
x55161351649107916652431340145996049 7775980112151
y1224406084112144180220264 312364420

The Pell equations are set up according to the following formats with the x and ys taken from Table I. The first equation with n1 and n2 gives the alternate expression for x + yD where the square term is divided by ½n1 and n2 is a triangular number nt equal to (n2 + n)/2.

RD = (n1 + n2D)2 ∕ ½n1 = x + yD

Table II gives the formulas for all 13 Pell equations according to the format listed above where both formulas on the right are equivalent. Entry one with D = 5 is added here to show that n2 = 1 is the first triangular number although the equation is not part of the group as stated previously. The values for pn and qn were obtained from the first least solution at n = 2. The triangular numbers are in blue.

Table II
Pell EquationEqual Expressions
x2 − 5y2 = 1 R5 = (2 + 15)2 = 9 + 45
x2 − 21y2 = 1 R21 = (14 + 321)2 ∕7 = 55 + 1221
x2 − 45y2 = 1 R45 = (40 + 645)2 ∕20 = 161 + 2445
x2 − 77y2 = 1 R77 = (88 + 1077)2 ∕44 = 351 + 4077
x2 − 117y2 = 1 R117 = (162 + 15117)2 ∕81 = 649 + 60117
x2 − 165y2 = 1 R165 = (270 + 21165)2 ∕135 = 1079 + 84165
x2 − 221y2 = 1 R221 = (416 + 28221)2 ∕208 = 1665 + 112221
x2 − 285y2 = 1 R285 = (608 + 36285)2 ∕304 = 2431 + 144285
x2 − 357y2 = 1 R357 = (850 + 45357)2 ∕425 = 3401 + 180357
x2 − 437y2 = 1 R437 = (1150 + 55437)2 ∕575 = 4599 + 220437
x2 − 525y2 = 1 R525 = (1512 + 66525)2 ∕756 = 6049 + 264525
x2 − 621y2 = 1 R621 = (1944 + 78621)2 ∕972 = 7775 + 312621
x2 − 725y2 = 1 R725 = (2450 + 91725)2 ∕1225 = 9801 + 364725
x2 − 837y2 = 1 R837 = (3038 + 105837)2 ∕1519 = 12151 + 420837

This concludes Part XVII. To go to Part XVIII where the triangular numbers are used in the calculation of n1.

Go back to homepage.


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