(Translated by https://www.hiragana.jp/)
Pell's equation: Difference between revisions - Wikipedia Jump to content

Pell's equation: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎References: institution => publisher
Line 15: Line 15:
:<math> x^2 - 2y^2=1 </math>
:<math> x^2 - 2y^2=1 </math>
and from the closely related equation
and from the closely related equation
:<math> x^2 - 2y^2=-1 </math>
:<math> x^2 - 2y^2 = -1 </math>


because of the connection of these equations to the square root of two.<ref name="knorr76"/> Indeed, if ''x'' and ''y'' are positive integers satisfying this equation, then ''x''/''y'' is an approximation of √2. The numbers ''x'' and ''y'' appearing in these approximations, called [[Pell number|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.<ref name="knorr76"/> 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 two.
because of the connection of these equations to the square root of two.<ref name="knorr76"/> Indeed, if ''x'' and ''y'' are positive integers satisfying this equation, then ''x''/''y'' is an approximation of √2. The numbers ''x'' and ''y'' appearing in these approximations, called [[Pell number|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.<ref name="knorr76"/> 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 two.

Revision as of 17:28, 22 September 2013

Pell's equation for n = 2 and six of its integer solutions

Pell's equation is any Diophantine equation of the form

where n is a given nonsquare integer and integer solutions are sought for x and y. In Cartesian coordinates, the equation has the form of 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.

The name of Pell's equation arose from Leonhard Euler's mistakenly attributing its study to John Pell. Euler was aware of the work of Lord Brouncker, the first European mathematician to find a general solution of the equation, but apparently confused Brouncker with Pell. This equation was first studied extensively in ancient India, starting with Brahmagupta, who developed the chakravala method to solve Pell's equation and other quadratic indeterminate equations in his Brahma Sphuta Siddhanta in 628, about a thousand years before Pell's time. His Brahma Sphuta Siddhanta was translated into Arabic in 773 and was subsequently translated into Latin in 1126. 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. Solutions to specific examples of the Pell 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 to a similar date in India.

For a more detailed discussion of much of the material here, see Lenstra (2002) and Barbeau (2003).

History

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

and from the closely related equation

because of the connection of these equations to the square root of two.[1] Indeed, if x and y are positive integers satisfying this equation, then x/y is an approximation of √2. 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.[1] 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 two.

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.[1]

Around AD 250, Diophantus considered the equation

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 (a,c) equal to (1,1), (1,−1), (1,12), and (3,9). Al-Karaji, a 10th-century Persian mathematician, worked on similar problems to Diophantus.

In Indian mathematics, Brahmagupta discovered that

(see Brahmagupta's identity). Using this, he was able to "compose" triples and that were solutions of , to generate the new triple

and

Not only did this give a way to generate infinitely many solutions to starting with one solution, but also, by dividing such a composition by , integer or "nearly integer" solutions could often be obtained. For instance, for , Brahmagupta composed the triple (since ) with itself to get the new triple . Dividing throughout by 64 gave the triple , which when composed with itself gave the desired integer solution . Brahmagupta solved many Pell equations with this method; in particular he showed how to obtain solutions starting from an integer solution of for k = ±1, ±2, or ±4.[2]

The first general method for solving the Pell equation (for all N) was given by Bhaskara II in 1150, extending the methods of Brahmagupta. Called the chakravala (cyclic) method, it starts by composing any triple (that is, one which satisfies ) with the trivial triple to get the triple , which can be scaled down to

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 (m²-N)/k, and repeats the process. This method always terminates with a solution (proved by Lagrange in 1768). Bhaskara used it to give the solution x=1766319049, y=226153980 to the notorious N=61 case.[2]

The general theory of Pell's equation, based on continued fractions and algebraic manipulations with numbers of the form was developed by Lagrange in 1766–1769.[3]

Solutions

Fundamental solution via continued fractions

Let denote the sequence of convergents to the continued fraction for . Then the pair (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. Thus, the fundamental solution may be found by performing the continued fraction expansion and testing each successive convergent until a solution to Pell's equation is found.

As Lenstra (2002) describes, 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 √n, far larger than a polynomial in the number of digits in the input value n (Lenstra 2002).

Additional solutions from the fundamental solution

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

Equivalently, we may calculate subsequent solutions via the recurrence relations

An alternative method to solving, once finding the first non-trivial solution, one could take the original equation and factor the left hand side as a difference of squares, yielding Once in this form, one can simply raise each side of the equation to the kth power, and recombining the factored form to a single difference statement. The solution will be of the form

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

using much smaller coefficients ai, bi, and ci.

For instance, Archimedes' cattle problem may be solved using a Pell equation, the fundamental solution of which has 206545 digits if written out explicitly. However, instead of writing the solution as a pair of numbers, it may be written using the formula

where

and and only have 45 and 41 decimal digits, respectively. Alternatively, one may write even more concisely

(Lenstra 2002).

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 √n, 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 does not take polynomial time. Under the assumption of the generalized Riemann hypothesis, it can be shown to take time

where N = log n is the input size, similarly to the quadratic sieve (Lenstra 2002).

Quantum algorithms

Hallgren (2007) showed that a quantum computer can find a product representation, as described above, for the solution to Pell's equation in polynomial time. 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 & Völlmer (2005).

Example

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

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

Therefore, the fundamental solution is formed by the pair (8, 3). Applying the recurrence formula to this solution generates the infinite sequence of solutions

(8, 3); (127, 48); (2024, 765); (32257, 12192); (514088, 194307); (8193151; 3096720); (130576328, 49353213); ...

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

is the norm for the ring and for the closely related quadratic field . Thus, a pair of integers solves Pell's equation if and only if is a unit with norm 1 in . Dirichlet's unit theorem, that all units of 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 equation can be generated from the fundamental solution. 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.

Chebyshev polynomials

Demeyer (2007) 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:

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

It may further be observed that, if (xi,yi) are the solutions to any integer Pell equation, then xi = Ti (x1) and yi = y1Ui − 1(x1) (Barbeau, chapter 3).

Continued fractions

A general development of solutions of Pell's equation in terms of continued fractions 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

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

has determinant (−1)k.

Størmer's theorem applies Pell equations to find pairs of consecutive smooth numbers. 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.

As Lenstra (2002) describes, Pell's equation can also be used to solve Archimedes' cattle problem.

The negative Pell equation

The negative Pell equation is given by

(eq.1)

It has also been extensively studied; it can be solved by the same method of using continued fractions and will have solutions when the period of the continued fraction has odd length. However we do not know which roots have odd period lengths so we do not know when the negative Pell equation is solvable. But we can eliminate certain n since a necessary but not sufficient condition for solvability is that n is not divisible by a prime of form 4m+3. Thus, for example, x2-3py2 = -1 is never solvable, but x2-5py2 = -1 may be, such as when p = 1 or 13, though not when p = 41.

Cremona & Odoni (1989) demonstrate that the proportion of square-free n divisible by k primes of the form 4m+1 for which the negative Pell equation is soluble is at least 40%. If it does have a solution, then it can be shown that its fundamental solution leads to the fundamental one for the positive case by squaring both sides of eq. 1,

to get,

Or, since ny2 = x2+1 from eq.1, then,

showing that fundamental solutions to the positive case are bigger than those for the negative case.

Transformations

I. The related equation,

(eq.2)

can be used to find solutions to the positive Pell equation for certain d. Legendre proved that all primes of form d = 4m + 3 solve one case of eq.2, with the form 8m + 3 solving the negative, and 8m + 7 for the positive. Their fundamental solution then leads to the one for x2dy2 = 1. This can be shown by squaring both sides of eq. 2,

to get,

Since from eq.2, then,

or simply,

showing that fundamental solutions to eq.2 are smaller than eq.1. For example, u2-3v2 = -2 is {u,v} = {1,1}, so x2 − 3y2 = 1 has {x,y} = {2,1}. On the other hand, u2 − 7v2 = 2 is {u,v} = {3,1}, so x2 − 7y2 = 1 has {x,y} = {8,3}.

II. Another related equation,

(eq.3)

can also be used to find solutions to Pell equations for certain d, this time for the positive and negative case. For the following transformations,[4] if fundamental {u,v} are both odd, then it leads to fundamental {x,y}.

1. If u2 − dv2 = −4, and {x,y} = {(u2 + 3)u/2, (u2 + 1)v/2}, then x2 − dy2 = −1.

Ex. Let d = 13, then {u,v} = {3, 1} and {x,y} = {18, 5}.

2. If u2 − dv2 = 4, and {x,y} = {(u2 − 3)u/2, (u2 − 1)v/2}, then x2 − dy2 = 1.

Ex. Let d = 13, then {u,v} = {11, 3} and {x,y} = {649, 180}.

3. If u2 − dv2 = −4, and {x,y} = {(u4 + 4u2 + 1)(u2 + 2)/2, (u2 + 3)(u2 + 1)uv/2}, then x2 − dy2 = 1.

Ex. Let d = 61, then {u,v} = {39, 5} and {x,y} = {1766319049, 226153980}.

Especially for the last transformation, it can be seen how solutions to {u,v} are much smaller than {x,y}, since the latter are sextic and quintic polynomials in terms of u.

Notes

  1. ^ a b c Knorr, Wilbur R. (1976), "Archimedes and the measurement of the circle: a new interpretation", Archive for History of Exact Sciences, 15 (2): 115–140, MR 0497462.
  2. ^ a b John Stillwell (2002), Mathematics and its history (2nd ed.), Springer, pp. 72–76, ISBN 978-0-387-95336-6
  3. ^ "Solution d'un Problème d'Arithmétique", in J.-A. Serret (Ed.), Oeuvres de Lagrange, vol. 1, pp. 671–731, 1867.
  4. ^ A Collection of Algebraic Identities: Pell Equations.

References

Further reading

  • Williams, H. C. (2002). "Solving the Pell equation". In Bennett, M. A.; Berndt, B.C.; Boston, N.; Diamond, H.G.; Hildebrand, A.J.; Philipp, W. (eds.). Surveys in number theory: Papers from the millennial conference on number theory. Natick, MA: A K Peters. pp. 325–363. ISBN 1-56881-162-4. Zbl 1043.11027.

External links