WOLFRAM|DEMONSTRATIONS PROJECT

Pell Equation

​
pick
n
61
solutions
8
2
1766319049
- 61 ×
2
226153980
= 1
2
6239765965720528801
- 61 ×
2
798920165762330040
= 1
2
22042834973108102061352541449
- 61 ×
2
2822295814832482312327709940
= 1
2
77869358613928486808166555366140995201
- 61 ×
2
9970149719303180503641083029374964080
= 1
2
275084262906388245923976756042747916825335226249
- 61 ×
2
35220930741174421456911021812718768924061809900
= 1
2
971773147303355325052564141449134520779147876502526039201
- 61 ×
2
124422801783292138491822391332416163557158135530198606120
= 1
2
3432922842777198984236777675765485291307413676465874562493158853449
- 61 ×
2
439540729839560148264883110329183900316105008371908256561946149860
= 1
2
12127274021889197256469969122861689328478633641880459955573266953557410060801
- 61 ×
2
1552738327853955607198631869282320229013084404210795896534331330489654760160
= 1
Why is the integer equation
2
x
-n×
2
y
=1
called the Pell equation?
In 220 BC,
2
1351
-3×
2
780
=1
was discovered by Archimedes with methods that have been lost to time.
In 628 AD,
2
1151
-92×
2
120
=1
was solved by Brahmagupta, who gave his method.
In 1150,
2
1766319049
-61×
2
226153980
=1
was solved by Bhāskara II with a general method.
In 1657,
2
32188120829134849
-313×
2
1819380158564160
=1
was given as a challenge problem by Fermat.
In 1659, Johann Rahn wrote a book that included the method. In 1668, John Pell translated Rahn's book.
Euler thought Pell solved the problem, so he named
2
x
-n
2
y
=1
the Pell equation. [1]
Ignore them. This Demonstration uses the method developed by Lagrange in 1766. His method uses the convergents of continued fractions. For
3
,
1
1
,
2
1
,
5
3
,
7
4
,
19
11
,
26
15
,
71
41
,
97
56
,
265
153
,
362
209
,
989
571
,
1351
780
are the first 12 convergents, each fraction leading to a closer approximation. Of these,
2
1
,
7
4
,
26
15
,
97
56
,
362
209
,
1351
780
give solutions, the last being
2
1351
-3×
2
780
=1
. Lagrange proved that the convergents would always eventually yield solutions. Lagrange also proved that the method by Bhāskara II always works.