Pell's equation explained

Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form

x2-ny2=1,

where n is a given positive nonsquare integer, and integer solutions are sought for x and y. In Cartesian coordinates, the equation is represented by a hyperbola; solutions occur wherever the curve passes through a point whose x and y coordinates are both integers, such as the trivial solution with x = 1 and y = 0. Joseph Louis Lagrange proved that, as long as n is not a perfect square, Pell's equation has infinitely many distinct integer solutions. These solutions may be used to accurately approximate the square root of n by rational numbers of the form x/y.

This equation was first studied extensively in India starting with Brahmagupta,[1] who found an integer solution to

92x2+1=y2

in his Brāhmasphuṭasiddhānta circa 628.[2] Bhaskara II in the 12th century and Narayana Pandit in the 14th century both found general solutions to Pell's equation and other quadratic indeterminate equations. Bhaskara II is generally credited with developing the chakravala method, building on the work of Jayadeva and Brahmagupta. Solutions to specific examples of Pell's equation, such as the Pell numbers arising from the equation with n = 2, had been known for much longer, since the time of Pythagoras in Greece and a similar date in India. William Brouncker was the first European to solve Pell's equation. The name of Pell's equation arose from Leonhard Euler mistakenly attributing Brouncker's solution of the equation to John Pell.[3] [4]

History

As early as 400 BC in India and Greece, mathematicians studied the numbers arising from the n = 2 case of Pell's equation,

x2-2y2=1,

and from the closely related equation

x2-2y2=-1

because of the connection of these equations to the square root of 2. Indeed, if x and y are positive integers satisfying this equation, then x/y is an approximation of . The numbers x and y appearing in these approximations, called side and diameter numbers, were known to the Pythagoreans, and Proclus observed that in the opposite direction these numbers obeyed one of these two equations. Similarly, Baudhayana discovered that x = 17, y = 12 and x = 577, y = 408 are two solutions to the Pell equation, and that 17/12 and 577/408 are very close approximations to the square root of 2.

Later, Archimedes approximated the square root of 3 by the rational number 1351/780. Although he did not explain his methods, this approximation may be obtained in the same way, as a solution to Pell's equation.[5] Likewise, Archimedes's cattle problem - an ancient word problem about finding the number of cattle belonging to the sun god Helios - can be solved by reformulating it as a Pell's equation. The manuscript containing the problem states that it was devised by Archimedes and recorded in a letter to Eratosthenes,[6] and the attribution to Archimedes is generally accepted today.[7] [8]

Around AD 250, Diophantus considered the equation

a2x2+c=y2,

where a and c are fixed numbers, and x and y are the variables to be solved for.This equation is different in form from Pell's equation but equivalent to it.Diophantus solved the equation for (ac) equal to (1, 1), (1, −1), (1, 12), and (3, 9). Al-Karaji, a 10th-century Persian mathematician, worked on similar problems to Diophantus.[9]

In Indian mathematics, Brahmagupta discovered that

2
(x
1

-

2
Ny
2

-

2)
Ny
2

=(x1x2+Ny1y

2
2)

-N(x1y2+x2y

2,
1)
a form of what is now known as Brahmagupta's identity. Using this, he was able to "compose" triples

(x1,y1,k1)

and

(x2,y2,k2)

that were solutions of

x2-Ny2=k

, to generate the new triples

(x1x2+Ny1y2,x1y2+x2y1,k1k2)

and

(x1x2-Ny1y2,x1y2-x2y1,k1k2).

Not only did this give a way to generate infinitely many solutions to

x2-Ny2=1

starting with one solution, but also, by dividing such a composition by

k1k2

, integer or "nearly integer" solutions could often be obtained. For instance, for

N=92

, Brahmagupta composed the triple (10, 1, 8) (since

102-92(12)=8

) with itself to get the new triple (192, 20, 64). Dividing throughout by 64 ("8" for

x

and

y

) gave the triple (24, 5/2, 1), which when composed with itself gave the desired integer solution (1151, 120, 1). Brahmagupta solved many Pell's equations with this method, proving that it gives solutions starting from an integer solution of

x2-Ny2=k

for k = ±1, ±2, or ±4.[10]

The first general method for solving the Pell's equation (for all N) was given by Bhāskara II in 1150, extending the methods of Brahmagupta. Called the chakravala (cyclic) method, it starts by choosing two relatively prime integers

a

and

b

, then composing the triple

(a,b,k)

(that is, one which satisfies

a2-Nb2=k

) with the trivial triple

(m,1,m2-N)

to get the triple

(am+Nb,a+bm,k(m2-N))

, which can be scaled down to
\left(am+Nb
k

,

a+bm
k

,

m2-N
k

\right).

When

m

is chosen so that
a+bm
k
is an integer, so are the other two numbers in the triple. Among such

m

, the method chooses one that minimizes
m2-N
k
and repeats the process. This method always terminates with a solution. Bhaskara used it to give the solution x = , y =  to the N = 61 case.[10]

Several European mathematicians rediscovered how to solve Pell's equation in the 17th century. Pierre de Fermat found how to solve the equation and in a 1657 letter issued it as a challenge to English mathematicians.[11] In a letter to Kenelm Digby, Bernard Frénicle de Bessy said that Fermat found the smallest solution for N up to 150 and challenged John Wallis to solve the cases N = 151 or 313. Both Wallis and William Brouncker gave solutions to these problems, though Wallis suggests in a letter that the solution was due to Brouncker.[12]

John Pell's connection with the equation is that he revised Thomas Branker's translation[13] of Johann Rahn's 1659 book Teutsche Algebra[14] into English, with a discussion of Brouncker's solution of the equation. Leonhard Euler mistakenly thought that this solution was due to Pell, as a result of which he named the equation after Pell.[15]

The general theory of Pell's equation, based on continued fractions and algebraic manipulations with numbers of the form

P+Q\sqrt{a},

was developed by Lagrange in 1766–1769.[16] In particular, Lagrange gave a proof that the Brouncker–Wallis algorithm always terminates.

Solutions

Fundamental solution via continued fractions

Let

hi/ki

denote the sequence of convergents to the regular continued fraction for

\sqrt{n}

. This sequence is unique. Then the pair of positive integers

(x1,y1)

solving Pell's equation and minimizing x satisfies x1 = hi and y1 = ki for some i. This pair is called the fundamental solution. The sequence of integers

[a0;a1,a2,\ldots]

in the regular continued fraction of

\sqrt{n}

is always eventually periodic. It can be written in the form

\left[\lfloor\sqrt{n}\rfloor;\overline{a1,a2,\ldots,ap-1,2\lfloor\sqrt{n}\rfloor}\right]

, where

a1,a2,\ldots,ap-1,2\lfloor\sqrt{n}\rfloor

is the periodic part repeating indefinitely. Moreover, the tuple

(a1,a2,\ldots,ap-1)

is palindromic. It reads the same from left to right as from right to left. The fundamental solution is then

(x1,y1)=\begin{cases}(hp-1,kp-1),&forpeven\\(h2p-1,k2p-1),&forpodd\end{cases}

The time for finding the fundamental solution using the continued fraction method, with the aid of the Schönhage–Strassen algorithm for fast integer multiplication, is within a logarithmic factor of the solution size, the number of digits in the pair

(x1,y1)

. However, this is not a polynomial-time algorithm because the number of digits in the solution may be as large as, far larger than a polynomial in the number of digits in the input value n.[17]

Additional solutions from the fundamental solution

Once the fundamental solution is found, all remaining solutions may be calculated algebraically from

xk+yk\sqrtn=(x1+y1\sqrtn)k,

expanding the right side, equating coefficients of

\sqrt{n}

on both sides, and equating the other terms on both sides. This yields the recurrence relations

xk+1=x1xk+ny1yk,

yk+1=x1yk+y1xk.

Concise representation and faster algorithms

Although writing out the fundamental solution (x1, y1) as a pair of binary numbers may require a large number of bits, it may in many cases be represented more compactly in the form

x1+y1\sqrtn=

t
\prod
i=1

(ai+bi\sqrt

ci
n)
using much smaller integers ai, bi, and ci.

For instance, Archimedes' cattle problem is equivalent to the Pell equation

x2-410286423278424y2=1

, the fundamental solution of which has digits if written out explicitly. However, the solution is also equal to

x1+y1\sqrtn=u2329,

where

u=x'1+y'1\sqrt{4729494}=(300426607914281713365\sqrt{609}+84129507677858393258\sqrt{7766})2

and

x'1

and

y'1

only have 45 and 41 decimal digits respectively.

Methods related to the quadratic sieve approach for integer factorization may be used to collect relations between prime numbers in the number field generated by and to combine these relations to find a product representation of this type. The resulting algorithm for solving Pell's equation is more efficient than the continued fraction method, though it still takes more than polynomial time. Under the assumption of the generalized Riemann hypothesis, it can be shown to take time

\expO(\sqrt{logNloglogN}),

where N = log n is the input size, similarly to the quadratic sieve.

Quantum algorithms

Hallgren showed that a quantum computer can find a product representation, as described above, for the solution to Pell's equation in polynomial time.[18] Hallgren's algorithm, which can be interpreted as an algorithm for finding the group of units of a real quadratic number field, was extended to more general fields by Schmidt and Völlmer.[19]

Example

As an example, consider the instance of Pell's equation for n = 7; that is,

x2-7y2=1.

The continued fraction of

\sqrt{7}

has the form

[2;\overline{1,1,1,4}]

. Since the period has length

4

, which is an even number, the convergent producing the fundamental solution is obtained by truncating the continued fraction right before the end of the first occurrence of the period:
[2,1,1,1]=8
3
.

The sequence of convergents for the square root of seven are

h/k (convergent)h2 − 7k2 (Pell-type approximation)
2/1−3
3/1+2
5/2−3
8/3+1

Applying the recurrence formula to this solution generates the infinite sequence of solutions

(1, 0); (8, 3); (127, 48); (2024, 765); (32257, 12192); (514088, 194307); (8193151, 3096720); (130576328, 49353213); ... (sequence (x) and (y) in OEIS)

For the Pell's equation

x2-13y2=1.

the continued fraction

\sqrt{13}=[3;\overline{1,1,1,1,6}]

has a period of odd length. For this the fundamental solution is obtained by truncating the continued fraction right before the second occurrence of the period
[3;1,1,1,1,6,1,1,1,1]=649
180
. Thus, the fundamental solution is

(x1,y1)=(649,180)

.

The smallest solution can be very large. For example, the smallest solution to

x2-313y2=1

is ( ), and this is the equation which Frenicle challenged Wallis to solve.[20] Values of n such that the smallest solution of

x2-ny2=1

is greater than the smallest solution for any smaller value of n are

1, 2, 5, 10, 13, 29, 46, 53, 61, 109, 181, 277, 397, 409, 421, 541, 661, 1021, 1069, 1381, 1549, 1621, 2389, 3061, 3469, 4621, 4789, 4909, 5581, 6301, 6829, 8269, 8941, 9949, ... .(For these records, see for x and for y.)

List of fundamental solutions of Pell's equations

The following is a list of the fundamental solution to

x2-ny2=1

with n ≤ 128. When n is an integer square, there is no solution except for the trivial solution (1, 0). The values of x are sequence and those of y are sequence in OEIS.
n x y
1
23 2
32 1
4
59 4
65 2
78 3
83 1
9
1019 6
1110 3
127 2
13649 180
1415 4
154 1
16
1733 8
1817 4
19170 39
209 2
2155 12
22197 42
2324 5
245 1
25
2651 10
2726 5
28127 24
299801 1820
3011 2
311520 273
3217 3
n x y
3323 4
3435 6
356 1
36
3773 12
3837 6
3925 4
4019 3
412049 320
4213 2
433482 531
44199 30
45161 24
4624335 3588
4748 7
487 1
49
5099 14
5150 7
52649 90
5366249 9100
54485 66
5589 12
5615 2
57151 20
5819603 2574
59530 69
6031 4
611766319049 226153980
6263 8
638 1
64
n x y
65129 16
6665 8
6748842 5967
6833 4
697775 936
70251 30
713480 413
7217 2
732281249 267000
743699 430
7526 3
7657799 6630
77351 40
7853 6
7980 9
809 1
81
82163 18
8382 9
8455 6
85285769 30996
8610405 1122
8728 3
88197 21
89500001 53000
9019 2
911574 165
921151 120
9312151 1260
942143295 221064
9539 4
9649 5
n x y
9762809633 6377352
9899 10
9910 1
100
101201 20
102101 10
103227528 22419
10451 5
10541 4
10632080051 3115890
107962 93
1081351 130
109158070671986249 15140424455100
11021 2
111295 28
112127 12
1131204353 113296
1141025 96
1151126 105
1169801 910
117649 60
118306917 28254
119120 11
12011 1
121
122243 22
123122 11
1244620799 414960
125930249 83204
126449 40
1274730624 419775
128577 51

Connections

Pell's equation has connections to several other important subjects in mathematics.

Algebraic number theory

Pell's equation is closely related to the theory of algebraic numbers, as the formula

x2-ny2=(x+y\sqrtn)(x-y\sqrtn)

is the norm for the ring

Z[\sqrt{n}]

and for the closely related quadratic field

Q(\sqrt{n})

. Thus, a pair of integers

(x,y)

solves Pell's equation if and only if

x+y\sqrt{n}

is a unit with norm 1 in

Z[\sqrt{n}]

.[21] Dirichlet's unit theorem, that all units of

Z[\sqrt{n}]

can be expressed as powers of a single fundamental unit (and multiplication by a sign), is an algebraic restatement of the fact that all solutions to the Pell's equation can be generated from the fundamental solution.[22] The fundamental unit can in general be found by solving a Pell-like equation but it does not always correspond directly to the fundamental solution of Pell's equation itself, because the fundamental unit may have norm −1 rather than 1 and its coefficients may be half integers rather than integers.

Chebyshev polynomials

Demeyer mentions a connection between Pell's equation and the Chebyshev polynomials:If

Ti(x)

and

Ui(x)

are the Chebyshev polynomials of the first and second kind respectively, then these polynomials satisfy a form of Pell's equation in any polynomial ring

R[x]

, with

n=x2-1

:[23]
2
T
i

-(x2-1)

2
U
i-1

=1.

Thus, these polynomials can be generated by the standard technique for Pell's equations of taking powers of a fundamental solution:

Ti+Ui-1\sqrt{x2-1}=(x+\sqrt{x2-1})i.

It may further be observed that if

(xi,yi)

are the solutions to any integer Pell's equation, then

xi=Ti(x1)

and

yi=y1Ui-1(x1)

.[24]

Continued fractions

A general development of solutions of Pell's equation

x2-ny2=1

in terms of continued fractions of

\sqrt{n}

can be presented, as the solutions x and y are approximates to the square root of n and thus are a special case of continued fraction approximations for quadratic irrationals.

The relationship to the continued fractions implies that the solutions to Pell's equation form a semigroup subset of the modular group. Thus, for example, if p and q satisfy Pell's equation, then

\begin{pmatrix}p&q\nq&p\end{pmatrix}

is a matrix of unit determinant. Products of such matrices take exactly the same form, and thus all such products yield solutions to Pell's equation. This can be understood in part to arise from the fact that successive convergents of a continued fraction share the same property: If pk−1/qk−1 and pk/qk are two successive convergents of a continued fraction, then the matrix

\begin{pmatrix}pk-1&pk\qk-1&qk\end{pmatrix}

has determinant (−1)k.

Smooth numbers

Størmer's theorem applies Pell equations to find pairs of consecutive smooth numbers, positive integers whose prime factors are all smaller than a given value.[25] [26] As part of this theory, Størmer also investigated divisibility relations among solutions to Pell's equation; in particular, he showed that each solution other than the fundamental solution has a prime factor that does not divide n.[25]

The negative Pell's equation

The negative Pell's equation is given by

x2-ny2=-1

and has also been extensively studied. It can be solved by the same method of continued fractions and has solutions if and only if the period of the continued fraction has odd length. However, it is not known which roots have odd period lengths, and therefore not known when the negative Pell equation is solvable. A necessary (but not sufficient) condition for solvability is that n is not divisible by 4 or by a prime of form 4k + 3.[27] Thus, for example, x2 − 3y2 = −1 is never solvable, but x2 − 5y2 = −1 may be.[28]

The first few numbers n for which x2 − ny2 = −1 is solvable are

1, 2, 5, 10, 13, 17, 26, 29, 37, 41, 50, 53, 58, 61, 65, 73, 74, 82, 85, 89, 97, ... .

Let

\alpha=\Pijisodd(1-2j)

. The proportion of square-free n divisible by k primes of the form 4m + 1 for which the negative Pell's equation is solvable is at least α.[29] When the number of prime divisors is not fixed, the proportion is given by 1 - α.[30] [31]

If the negative Pell's equation does have a solution for a particular n, its fundamental solution leads to the fundamental one for the positive case by squaring both sides of the defining equation:

(x2-ny2)2=(-1)2

implies

(x2+ny2)2-n(2xy)2=1.

As stated above, if the negative Pell's equation is solvable, a solution can be found using the method of continued fractions as in the positive Pell's equation. The recursion relation works slightly differently however. Since

(x+\sqrt{n}y)(x-\sqrt{n}y)=-1

, the next solution is determined in terms of

i(xk+\sqrt{n}yk)=(i(x+\sqrt{n}y))k

whenever there is a match, that is, when

k

is odd. The resulting recursion relation is (modulo a minus sign, which is immaterial due to the quadratic nature of the equation)

xk=xk-2

2
x
1

+nxk-2

2
y
1

+2nyk-2y1x1,

yk=yk-2

2
x
1

+nyk-2

2
y
1

+2xk-2y1x1,

which gives an infinite tower of solutions to the negative Pell's equation.

Generalized Pell's equation

The equation

x2-dy2=N

is called the generalized[32] [33] (or general[34]) Pell's equation. The equation

u2-dv2=1

is the corresponding Pell's resolvent.[34] A recursive algorithm was given by Lagrange in 1768 for solving the equation, reducing the problem to the case

|N|<\sqrt{d}

.[35] [36] Such solutions can be derived using the continued-fractions method as outlined above.

If

(x0,y0)

is a solution to

x2-dy2=N,

and

(un,vn)

is a solution to

u2-dv2=1,

then

(xn,yn)

such that

xn+yn\sqrt{d}=(x0+y0\sqrt{d})(un+vn\sqrt{d})

is a solution to

x2-dy2=N

, a principle named the multiplicative principle.[34] The solution

(xn,yn)

is called a Pell multiple of the solution

(x0,y0)

.

There exists a finite set of solutions to

x2-dy2=N

such that every solution is a Pell multiple of a solution from that set. In particular, if

(u,v)

is the fundamental solution to

u2-dv2=1

, then each solution to the equation is a Pell multiple of a solution

(x,y)

with

|x|\le\sqrt{|N|}\left(\sqrt{|U|}+1\right)/2

and

|y|\le\sqrt{|N|}\left(\sqrt{|U|}+1\right)/(2\sqrt{d})

, where

U=u+v\sqrtd

.[37]

If x and y are positive integer solutions to the Pell's equation with

|N|<\sqrtd

, then

x/y

is a convergent to the continued fraction of

\sqrtd

.

Solutions to the generalized Pell's equation are used for solving certain Diophantine equations and units of certain rings,[38] [39] and they arise in the study of SIC-POVMs in quantum information theory.[40]

The equation

x2-dy2=4

is similar to the resolvent

x2-dy2=1

in that if a minimal solution to

x2-dy2=4

can be found, then all solutions of the equation can be generated in a similar manner to the case

N=1

. For certain

d

, solutions to

x2-dy2=1

can be generated from those with

x2-dy2=4

, in that if

d\equiv5\pmod{8},

then every third solution to

x2-dy2=4

has

x,y

even, generating a solution to

x2-dy2=1

.

References

  1. Web site: O'Connor . J. J. . Robertson . E. F. . February 2002 . Pell's Equation . 13 July 2020 . School of Mathematics and Statistics, University of St Andrews, Scotland.
  2. Web site: Number theory – Number theory in the East . Dunham . William . Encyclopedia Britannica . en . 2020-01-04.
  3. As early as 1732–1733 Euler believed that John Pell had developed a method to solve Pell's equation, even though Euler knew that Wallis had developed a method to solve it (although William Brouncker had actually done most of the work):
    • Euler . Leonhard . Leonhard Euler . De solutione problematum Diophantaeorum per numeros integros . la . Commentarii Academiae Scientiarum Imperialis Petropolitanae (Memoirs of the Imperial Academy of Sciences at St. Petersburg) . 1732–1733 . 6 . 175–188 . On the solution of Diophantine problems by integers. From p. 182: "At si a huiusmodi fuerit numerus, qui nullo modo ad illas formulas potest reduci, peculiaris ad invenienda p et q adhibenda est methodus, qua olim iam usi sunt Pellius et Fermatius." (But if such an a be a number that can be reduced in no way to these formulas, the specific method for finding p and q is applied which Pell and Fermat have used for some time now.) From p. 183: "§. 19. Methodus haec extat descripta in operibus Wallisii, et hanc ob rem eam hic fusius non-expono." (§ 19. This method exists described in the works of Wallis, and for this reason I do not present it here in more detail.)
    • Lettre IX. Euler à Goldbach, dated 10 August 1750 in: Book: Fuss . P. H. . Correspondance Mathématique et Physique de Quelques Célèbres Géomètres du XVIIIeme Siècle ... . Mathematical and physical correspondence of some famous geometers of the 18th century ... . 1843 . St. Petersburg, Russia . 37 . fr, la, de. From page 37: Latin: "Pro hujusmodi quaestionibus solvendis excogitavit D. Pell Anglus peculiarem methodum in Wallisii operibus expositam." (For solving such questions, the Englishman Dr. Pell devised a singular method [which is] shown in Wallis' works.)
    • Book: Euler . Leonhard . Vollständige Anleitung zur Algebra, II. Theil . Complete Introduction to Algebra, Part 2 . 1771 . St. Petersburg, Russia . Kayserlichen Akademie der Wissenschaften (Imperial Academy of Sciences) . 227 . de. From p. 227: German: "§98. Hierzu hat vormals ein gelehrter Engländer, Namens Pell, eine ganz sinnreiche Methode erfunden, welche wir hier erklären wollen." (§ 98 Concerning this, a learned Englishman by the name of Pell has previously found a quite ingenious method, which we will explain here.)
    • English translation: Book: Euler . Leonhard . Elements of Algebra ... . 1810 . J. Johnson . London, England . 78 . 2nd . 2 .
    • Book: Heath . Thomas L. . Diophantus of Alexandria : A Study in the History of Greek Algebra . 1910 . Cambridge University Press . Cambridge, England . 286 . See especially footnote 4.
  4. In Euler's German: Vollständige Anleitung zur Algebra (pp. 227ff), he presents a solution to Pell's equation which was taken from John Wallis' Latin: Commercium epistolicum, specifically, Letter 17 (Latin: Epistola&nbsp;XVII) and Letter 19 (Latin: Epistola XIX) of:
    • Book: Wallis . John . Commercium epistolicum, de Quaestionibus quibusdam Mathematicis nuper habitum. . Correspondence, about some mathematical inquiries recently undertaken . 1658 . A. Lichfield . Oxford, England . en, la, fr. The letters are in Latin. Letter 17 appears on pp. 56–72. Letter 19 appears on pp. 81–91.
    • French translations of Wallis' letters: Book: Fermat . Pierre de . Tannery . Paul . Henry . Charles . Oeuvres de Fermat . 1896 . Gauthier-Villars et fils . Paris, France . 3 . fr, la. Letter 17 appears on pp. 457–480. Letter 19 appears on pp. 490–503.

    Wallis' letters showing a solution to the Pell's equation also appear in volume 2 of Wallis' Latin: Opera mathematica (1693), which includes articles by John Pell:

    • Book: Wallis . John . Opera mathematica: de Algebra Tractatus; Historicus & Practicus . Mathematical works: Treatise on Algebra; historical and as presently practiced . 2 . 1693 . Oxford, England . la, en, fr. Letter 17 is on pp. 789–798; letter 19 is on pp. 802–806. See also Pell's articles, where Wallis mentions (pp. 235, 236, 244) that Pell's methods are applicable to the solution of Diophantine equations:
    • Latin: De Algebra D. Johannis Pellii; & speciatim de Problematis imperfecte determinatis (On Algebra by Dr. John Pell and especially on an incompletely determined problem), pp. 234–236.
    • Latin: Methodi Pellianae Specimen (Example of Pell's method), pp. 238–244.
    • Latin: Specimen aliud Methodi Pellianae (Another example of Pell's method), pp. 244–246.

    See also:

  5. .
  6. 10.2307/2589706 . Vardi . I. . Archimedes' Cattle Problem . . 1998 . 105 . 305–319 . 4 . Mathematical Association of America . 2589706 . 10.1.1.33.4288 .
  7. Book: Fraser, Peter M. . Ptolemaic Alexandria . Peter Fraser (classicist) . Oxford University Press . 1972.
  8. Book: Weil, André . Number Theory, an Approach Through History . André Weil . Birkhäuser . 1972.
  9. Izadi . Farzali . 2015 . Congruent numbers via the Pell equation and its analogous counterpart . Notes on Number Theory and Discrete Mathematics . 21 . 70–78.
  10. .
  11. In February 1657, Pierre de Fermat wrote two letters about Pell's equation. One letter (in French) was addressed to Bernard Frénicle de Bessy, and the other (in Latin) was addressed to Kenelm Digby, whom it reached via Thomas White and then William Brouncker.
    • Book: Fermat . Pierre de . Tannery . Paul . Henry . Charles . Oeuvres de Fermat . 1894 . Gauthier-Villars et fils . Paris, France . 333–335 . 2nd vol. . fr, la. The letter to Frénicle appears on pp. 333–334; the letter to Digby, on pp. 334–335.

    The letter in Latin to Digby is translated into French in:

    • Book: Fermat . Pierre de . Tannery . Paul . Henry . Charles . Oeuvres de Fermat . 1896 . Gauthier-Villars et fils . Paris, France . 312–313 . 3rd vol. . fr, la.

    Both letters are translated (in part) into English in:

  12. In January 1658, at the end of Latin: Epistola&nbsp;XIX (letter 19), Wallis effusively congratulated Brouncker for his victory in a battle of wits against Fermat regarding the solution of Pell's equation. From p. 807 of (Wallis, 1693): "Et quidem cum Vir Nobilissimus, utut hac sibi suisque tam peculiaria putaverit, & altis impervia, (quippe non omnis fert omnia tellus) ut ab Anglis haud speraverit solutionem; profiteatur tamen qu'il sera pourtant ravi d'estre destrompé par cet ingenieux & scavant Signieur; erit cur & ipse tibi gratuletur. Me quod attinet, humillimas est quod rependam gratias, quod in Victoriae tuae partem advocare dignatus es, ..." (And indeed, Most Noble Sir [i.e., Viscount Brouncker], he [i.e., Fermat] might have thought [to have] all to himself such an esoteric [subject, i.e., Pell's equation] with its impenetrable profundities (for all land does not bear all things [i.e., not every nation can excel in everything]), so that he might hardly have expected a solution from the English; nevertheless, he avows that he will, however, be thrilled to be disabused by this ingenious and learned Lord [i.e., Brouncker]; it will be for that reason that he [i.e., Fermat] himself would congratulate you. Regarding myself, I requite with humble thanks your having deigned to call upon me to take part in your Victory, ...) Note: The date at the end of Wallis' letter is "Jan. 20, 1657"; however, that date was according to the old Julian calendar that Britain finally discarded in 1752: most of the rest of Europe would have regarded that date as January 31, 1658. See Old Style and New Style dates#Transposition of historical event dates and possible date conflicts.
  13. .
  14. Teutsch is an obsolete form of Deutsch, meaning "German". Free E-book: Teutsche Algebra at Google Books.
  15. Book: Tattersall, James . Elementary Number Theory in Nine Chapters . https://web.archive.org/web/20200215183051/https://pdfs.semanticscholar.org/6881/a5169f76c5b4de2b206346815313f343af52.pdf . dead . 2020-02-15 . Cambridge . 2000 . 274 . 10.1017/CBO9780511756344 . 9780521850148 . 118948378.
  16. "Solution d'un Problème d'Arithmétique", in Joseph Alfred Serret (ed.), Œuvres de Lagrange, vol. 1, pp. 671–731, 1867.
  17. .
  18. .
  19. .
  20. Web site: Prime Curios!: 313.
  21. Clark . Pete . The Pell Equation . University of Georgia.
  22. Web site: Conrad . Keith . Dirichlet's Unit Theorem . 14 July 2020.
  23. .
  24. .
  25. Størmer . Carl . Carl Størmer . Quelques théorèmes sur l'équation de Pell

    x2-Dy2=\pm1

    et leurs applications . fr . Skrifter Videnskabs-selskabet (Christiania), Mat.-Naturv. Kl. . I . 2 . 1897.
  26. Lehmer . D. H. . D. H. Lehmer . 1964 . On a Problem of Størmer . Illinois Journal of Mathematics . 8 . 1 . 57–79 . 0158849 . 10.1215/ijm/1256067456 . free.
  27. This is because the Pell equation implies that −1 is a quadratic residue modulo n.
  28. Wang . Jiaqi . Cai . Lide . December 2013 . The solvability of negative Pell equation . Tsinghua College . 5–6.
  29. .
  30. Web site: 2022-08-10 . Ancient Equations Offer New Look at Number Groups . 2022-08-18 . Quanta Magazine . en.
  31. Koymans . Peter . Pagano . Carlo . 2022-01-31 . On Stevenhagen's conjecture . math.NT . 2201.13424 .
  32. Book: Peker, Bilge . 2021 . Current Studies in Basic Sciences, Engineering and Technology 2021 . ISRES Publishing . 136 . 2024-02-25.
  33. Tamang . Bal Bahadur . August 2022 . Solvability of Generalized Pell's Equation and Its Applications in Real Life . Tribhuvan University . 2024-02-25.
  34. Book: Andreescu . Titu . Quadratic Diophantine Equations . Andrica . Dorin . Springer . 2015 . 978-0-387-35156-8 . New York.
  35. Book: Lagrange, Joseph-Louis . Oeuvres de Lagrange. T. 2 / publiées par les soins de M. J.-A. Serret [et G. Darboux]
    [précédé d'une notice sur la vie et les ouvrages de J.-L. Lagrange, par M. Delambre] ]
    . 1867–1892 . fr.
  36. Web site: Matthews . Keith . The Diophantine Equation x2Dy2 = N, D > 0 . https://web.archive.org/web/20150318090657/http://www.numbertheory.org/pdfs/patz5.pdf . 2015-03-18 . live . 20 July 2020.
  37. Web site: Conrad . Keith . PELL'S EQUATION, II . 14 October 2021.
  38. Bernstein . Leon . 1975-10-01 . Truncated units in infinitely many algebraic number fields of degreen ≧4 . Mathematische Annalen . en . 213 . 3 . 275–279 . 10.1007/BF01350876 . 121165073 . 1432-1807.
  39. Bernstein . Leon . 1 March 1974 . On the Diophantine Equation x(x + d)(x + 2d) + y(y + d)(y + 2d) = z(z + d)(z + 2d) . Canadian Mathematical Bulletin . en . 17 . 1 . 27–34 . 10.4153/CMB-1974-005-5 . 125002637 . 0008-4395. free .
  40. Appleby . Marcus . Flammia . Steven . McConnell . Gary . Yard . Jon . August 2017 . SICs and Algebraic Number Theory . . en . 47 . 8 . 1042–1059 . 1701.05200 . 2017FoPh...47.1042A . 10.1007/s10701-017-0090-7 . 119334103 . 0015-9018.

Further reading

External links