Papers
Topics
Authors
Recent
Search
2000 character limit reached

Pell Equation: Theory & Applications

Updated 12 July 2026
  • Pell equation is a quadratic Diophantine equation defined as x² - D y² = 1, crucial for understanding units in real quadratic fields.
  • Its solutions emerge from periodic continued fractions and fundamental units, linking classical number theory with lattice reduction and arithmetic statistics.
  • Generalizations extend to polynomial and cubic forms, with applications in congruent numbers, K3-surface automorphisms, and the study of narrow class groups.

The Pell equation is the Diophantine equation

x2Dy2=1,x^2 - D y^2 = 1,

where DD is a fixed positive integer that is not a perfect square and (x,y)Z2(x,y)\in \mathbb{Z}^2. In a broader usage, one also considers generalized Pell equations

x2Dy2=Nx^2 - D y^2 = N

for fixed nonzero NN. The equation is a classical gateway to the arithmetic of real quadratic fields, periodic continued fractions, binary quadratic forms, and unit groups; in modern work it also appears in arithmetic statistics, polynomial and geometric generalizations, lattice algorithms, and applications ranging from congruent numbers to K3-surface automorphisms (Zapponi, 2015, Knight et al., 2019, Hashimoto et al., 2017).

1. Classical formulation and quadratic-field structure

For non-square D>0D>0, solving

x2Dy2=1x^2 - D y^2 = 1

is equivalent to finding units of norm $1$ in the real quadratic field Q(D)\mathbb{Q}(\sqrt{D}). Concretely, each solution corresponds to a unit x+yDx+y\sqrt{D} with

DD0

The unit group in a real quadratic field is infinite cyclic up to sign, so there is a fundamental unit DD1 such that every norm-DD2 unit is DD3; equivalently, once a fundamental solution DD4 is known, all solutions are generated by

DD5

for DD6 (Zapponi, 2015).

This structure extends to several standard variants. The negative Pell equation

DD7

asks for units of norm DD8, and the generalized cases DD9 are also treated by the same norm-form viewpoint in many explicit families (Knight et al., 2019, Keskin et al., 2013). A recurring theme is that (x,y)Z2(x,y)\in \mathbb{Z}^20 always has infinitely many integer solutions for non-square (x,y)Z2(x,y)\in \mathbb{Z}^21, whereas (x,y)Z2(x,y)\in \mathbb{Z}^22 is substantially subtler and may have no solution at all (Knight et al., 2019).

The same arithmetic appears in the language of binary quadratic forms. The Pell form (x,y)Z2(x,y)\in \mathbb{Z}^23 has discriminant (x,y)Z2(x,y)\in \mathbb{Z}^24, and its reduction theory, cycles, proper cycles, and proper automorphisms recover the same multiplicative structure encoded by powers of the fundamental unit (Raza et al., 2014).

2. Continued fractions, convergents, and explicit families

The classical analytic mechanism behind Pell’s equation is the periodic continued fraction expansion of (x,y)Z2(x,y)\in \mathbb{Z}^25: (x,y)Z2(x,y)\in \mathbb{Z}^26 Its convergents (x,y)Z2(x,y)\in \mathbb{Z}^27 produce solutions to (x,y)Z2(x,y)\in \mathbb{Z}^28, and the parity of the period controls the negative equation: if the period length is odd, then (x,y)Z2(x,y)\in \mathbb{Z}^29 is solvable; if it is even, it is not (Zapponi, 2015, Knight et al., 2019).

Several parametric families admit especially short and explicit continued fractions. For

x2Dy2=Nx^2 - D y^2 = N0

one has

x2Dy2=Nx^2 - D y^2 = N1

so the period length is x2Dy2=Nx^2 - D y^2 = N2. Consequently,

x2Dy2=Nx^2 - D y^2 = N3

has no positive integer solutions, while the fundamental solution of

x2Dy2=Nx^2 - D y^2 = N4

is x2Dy2=Nx^2 - D y^2 = N5 (Peker, 2013). The same paper gives explicit formulas for the x2Dy2=Nx^2 - D y^2 = N6-th solution in terms of generalized Fibonacci and Lucas sequences: x2Dy2=Nx^2 - D y^2 = N7 for x2Dy2=Nx^2 - D y^2 = N8, and

x2Dy2=Nx^2 - D y^2 = N9

for NN0 (Peker, 2013).

Analogous closed descriptions exist for the families

NN1

For example,

NN2

and the resulting solution sets for NN3 are expressed uniformly through generalized Fibonacci and Lucas sequences NN4 and NN5 (Keskin et al., 2013). This makes explicit the standard principle that Pell solutions are second-order linear recurrences attached to a quadratic irrational.

3. Negative Pell equation and arithmetic statistics

The negative Pell equation

NN6

with NN7 square-free and positive, is equivalent to the existence of a unit of norm NN8 in NN9. Its solvability has direct consequences for the narrow class group: if such a unit exists, then the narrow and wide class groups coincide; if not, the narrow class group is a proper enlargement of the ordinary class group (Knight et al., 2019).

Classically, one has simple necessary conditions but not sufficiency. A necessary condition for solvability is that all odd prime factors of D>0D>00 are of the form D>0D>01, and that D>0D>02 is not divisible by D>0D>03; however, these conditions are not sufficient, as illustrated by

D>0D>04

which has no integer solutions (Izadi, 2010). From the continued-fraction viewpoint, solvability is equivalent to odd period length for D>0D>05 (Knight et al., 2019).

A modern development is the statistical study of solvability as D>0D>06 varies. For the set of square-free D>0D>07, the density of those for which the negative Pell equation is solvable was predicted by Stevenhagen’s heuristic model in terms of local conditions, class groups, and Artin symbols. The paper "The negative Pell equation" proves that the density of square-free D>0D>08 for which

D>0D>09

has a solution is as predicted by Stevenhagen’s model, using methods developed by A. Smith in work related to Goldfeld’s conjecture (Knight et al., 2019). This places the negative Pell equation within arithmetic statistics, alongside Selmer-group and class-group distribution problems.

4. Polynomial Pell equations and geometric reformulations

A polynomial analogue replaces integers by polynomials: x2Dy2=1x^2 - D y^2 = 10 When x2Dy2=1x^2 - D y^2 = 11, the structure is rigid: every nontrivial solution over x2Dy2=1x^2 - D y^2 = 12 is, up to scaling and affine change of variable, a Chebyshev solution. More precisely, the classification is governed by the identity

x2Dy2=1x^2 - D y^2 = 13

and every solution with quadratic x2Dy2=1x^2 - D y^2 = 14 arises from Chebyshev polynomials x2Dy2=1x^2 - D y^2 = 15 and x2Dy2=1x^2 - D y^2 = 16 after normalization (Zapponi, 2015).

The same paper studies specialization: given a fixed integer solution x2Dy2=1x^2 - D y^2 = 17 of

x2Dy2=1x^2 - D y^2 = 18

one can construct parametric solutions x2Dy2=1x^2 - D y^2 = 19 with $1$0 such that, for some integer $1$1,

$1$2

The allowable degrees of such parametric solutions are controlled by the norm-$1$3 unit group of $1$4, and for square-free $1$5 there is a universal bound $1$6 (Zapponi, 2015).

A more geometric reformulation studies the affine surface

$1$7

in $1$8. These Pell surfaces encode polynomial solutions $1$9 as affine curves on Q(D)\mathbb{Q}(\sqrt{D})0. For even Q(D)\mathbb{Q}(\sqrt{D})1, every affine line on Q(D)\mathbb{Q}(\sqrt{D})2 is either vertical or a section of the projection to the Q(D)\mathbb{Q}(\sqrt{D})3-line, and every curve with only one place at infinity on Q(D)\mathbb{Q}(\sqrt{D})4 is an affine line (Kollár, 2019). In a parallel Jacobian formulation, the Pell–Abel equation

Q(D)\mathbb{Q}(\sqrt{D})5

for squarefree Q(D)\mathbb{Q}(\sqrt{D})6 is equivalent to the torsion of the divisor class Q(D)\mathbb{Q}(\sqrt{D})7 on the Jacobian of the hyperelliptic curve Q(D)\mathbb{Q}(\sqrt{D})8; in that family, the associated Betti map is submersive on a dense open set, and the Pellian locus is dense in the parameter space of monic degree-Q(D)\mathbb{Q}(\sqrt{D})9 squarefree polynomials (Barroero et al., 2021).

5. Algorithms, recurrences, and quantitative counting

The standard algorithmic route to Pell’s equation is via continued fractions, while the Chakravala method realizes the equation through Brahmagupta composition. A recent generalization introduces variants of the continued fraction and Chakravala algorithms using the LLL algorithm for rank x+yDx+y\sqrt{D}0 lattices, thereby interpreting Pell solving as a lattice-reduction problem (Liberati, 2023). This suggests that Pell computation can be organized through short-vector searches rather than only through classical quotient recursions.

Another algebraic approach uses Rédei rational functions. The paper "Solving the Pell equation via Rédei rational functions" defines a group law on the Pell hyperbola and shows that Rédei functions x+yDx+y\sqrt{D}1 are precisely the x+yDx+y\sqrt{D}2-th powers in a transported group structure on x+yDx+y\sqrt{D}3. This yields an alternative mechanism for generating Pell solutions and clarifies the relation between rational parametrization, group law on the conic, and powers of quadratic units (Barbero et al., 2011).

Quantitative questions for fixed x+yDx+y\sqrt{D}4 can also be made explicit. For a non-square x+yDx+y\sqrt{D}5, if x+yDx+y\sqrt{D}6 is the fundamental solution of

x+yDx+y\sqrt{D}7

then every solution is obtained from

x+yDx+y\sqrt{D}8

Recent work gives an explicit enumeration of all integer solutions inside the region

x+yDx+y\sqrt{D}9

for any DD00, and extends the method to shifted Pell equations

DD01

for integers DD02 and DD03, with exact counts for sufficiently large DD04 (Ong et al., 22 Sep 2025). A plausible implication is that, for fixed DD05, the sparse exponential growth of the sequence of Pell solutions can be converted into precise counting formulas in bounded regions.

6. Generalizations and applications

Pell equations appear in several arithmetic constructions. One elementary mechanism is the identity

DD06

which turns any integer DD07 into a Pythagorean triple. Combined with a Pell relation DD08, this yields congruent numbers such as DD09 or DD10, and in suitable cases DD11 or DD12 themselves (Izadi, 2010). Pell-type equations also govern sums of consecutive squares: for non-square DD13, the condition that a sum of DD14 consecutive squares is itself a square is transformed into a generalized Pell equation DD15, and the resulting infinite branches of solutions are written via Chebyshev polynomials evaluated at the fundamental solution of the associated simple Pell equation (Pletser, 2014).

There are also arithmetic restrictions on special coordinates of Pell solutions. For square-free DD16, there is at most one Pell DD17-coordinate participating in

DD18

that is a product of two Lucas numbers, with a finite list of explicitly characterized exceptional values of DD19; a parallel statement is cited for products of two Pell numbers (Ddamulira, 2019). Such results place Pell sequences among intersections of linear recurrences and norm-form equations.

Geometric applications can be unexpectedly direct. For a projective K3 surface with Picard number DD20, orientation-preserving isometries of the Néron–Severi lattice are parametrized by solutions of

DD21

where DD22 is determined by the lattice discriminant. Solving this Pell-type equation yields the traces and hence the Salem polynomials of symplectic and anti-symplectic automorphisms (Hashimoto et al., 2017). Beyond the quadratic setting, a cubic analogue replaces DD23 by the norm-one equation

DD24

over finite fields, this cubic Pell equation admits a method for counting solutions in all cases determined by DD25, together with a method for generating all solutions (Dutto et al., 2022).

Taken together, these developments show that the Pell equation is not merely a single quadratic Diophantine problem. It is a central norm equation whose classical theory of units and continued fractions extends to arithmetic statistics, polynomial and geometric incarnations, explicit algorithmics, and a wide range of applications across modern number theory (Knight et al., 2019, Zapponi, 2015).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Pell Equation.