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:
| Variable | Value |
|---|---|
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):
| 2 | 2 | 3 | 13 | 180 | 649 | |
| 3 | 1 | 2 | 29 | 1820 | 9801 | |
| 5 | 4 | 9 | 41 | 320 | 2049 | |
| 6 | 2 | 5 | 46 | 3588 | 24335 | |
| 7 | 3 | 8 | 58 | 2574 | 19603 | |
| 8 | 1 | 3 | 61 | 226153980 | 1766319049 | |
| 10 | 6 | 19 | 73 | 267000 | 2281249 | |
| 11 | 3 | 10 | 85 | 30996 | 285769 | |
| 12 | 2 | 7 | 94 | 221064 | 2143295 | |
| 17 | 8 | 33 | 97 | 6377352 | 62809633 |
Notable: requires an enormous . This is one of the most famous examples in number theory. (source: chapter-2.0.7, §106)