Number System

Pell Equation

Woodblock square tiles illustrate two arrangements with a difference of one.

Pell Equation definition

The classical Pell equation is x² − Dy² = 1 in integers, where D is a positive nonsquare integer.

In Spanish
ecuación de Pell
Topic
Integer equations and number theory

Pell Equation in a picture

Pell Equation diagramFor D = 2, the pair (3, 2) works because 3² − 2·2² = 1.Choose D = 2It is positive and nonsquareTry x = 3 and y = 2The squared terms give 9 and 8Subtract to get 1The pair solves the equation
For D = 2, the pair (3, 2) works because 3² − 2·2² = 1.

How it works

The equation has trivial solutions with y = 0 and nontrivial positive solutions. Starting from the least positive solution, powers of x + y√D generate the positive solutions. The equation with right side −1 is often called the negative Pell equation.

Worked examples

Does (2, 1) solve x² − 3y² = 1?

Yes. 4 − 3 = 1.

Does (1, 1) solve x² − 2y² = 1?

No. It gives −1, so it solves the negative version.

Square 3 + 2√2 to get another solution.

It gives 17 + 12√2, so (17, 12) is another pair.

Common mistake

Check the right-hand sign. A solution to the negative version need not solve the classical equation.

Quick check

Which pair solves x² − 2y² = 1?

Is D required to be a nonsquare?

Show answer

Yes, in the classical definition.

What kind of equation is it?

Show answer

A quadratic Diophantine equation.

Sources

Flashcard

Pell Equation

Reveal the definition

The classical Pell equation is x² − Dy² = 1 in integers, where D is a positive nonsquare integer.

Effortless Math. “Pell Equation.” Math Dictionary.