Ch2.0.7 — Of a Particular Method, by which the Formula becomes a Square in Integers

Summary: Presents Pell’s iterative method for finding the minimal integer solution of for any positive non-square ; proves the method always terminates; gives closed-form solutions when is near a perfect square; and tabulates results for to .

Sources: chapter-2.0.7

Last updated: 2026-05-08


The Problem (§96–97)

The integer-solution method of ch2.0.6-integer-solutions-quadratic-squares requires solving

in integers. Fractional solutions are trivial (set and solve for ), but integer solutions require a different approach entirely.

The equation is impossible if:

  • is negative (left side would exceed right for large ).
  • is a perfect square (then is a square, and no square increases by 1 to give another square in integers).

For every positive non-square , at least one integer solution exists. Euler attributes the method to John Pell, an English mathematician. (source: chapter-2.0.7, §97)


Pell’s Method (§98–104)

The idea is to reduce the problem by a sequence of substitutions, each yielding a simpler formula of the same type, until a formula appears whose trivial solution is available. Back-substituting recovers the value of .

Step 1: Estimate to bound . Write (or ) and square to get a relation between and .

Step 2: Solve for . The expression involves . Bound in terms of to pick the next substitution .

Step 3: Repeat until a term (same coefficient as the original) appears. Then set and trace back.

Examples

(§98): gives . Setting : , so , .

(§99): gives ; then , leading to . Set : , , .

(§100): (since root ); two substitutions yield . Set : , , .

(§101): ; one further substitution yields . Set : , , .

(§102): Three substitutions yield . Set : back-substituting gives , .

(§103): (since ); one substitution gives , which is already in the base form. Set : , .

Guarantee (§104): For any positive non-square , the process always terminates. At each stage the “active variable” decreases, so the chain of substitutions must reach a term and terminate. No formula exists to predict in advance how many steps are needed.


Hard Case: (§105)

Requires nine substitution steps. The chain is:

Back-substituting:

VariableValue

Thus the minimal solution is , , and . (source: chapter-2.0.7, §105)


Special Closed-Form Cases (§107–111)

When is near a perfect square, the first substitution already terminates:

Form of Minimal Verification

Examples: gives , ; gives , ; gives , ; gives , .


Table of Minimal Solutions (§106)

A selection from Euler’s table ( to , perfect squares omitted):

22313180649
3122918209801
549413202049
62546358824335
73858257419603
813612261539801766319049
10619732670002281249
113108530996285769
1227942210642143295
1783397637735262809633

Notable: requires an enormous . This is one of the most famous examples in number theory. (source: chapter-2.0.7, §106)