Wallis–Brouncker Method

Summary: The historical method for solving Pell’s equation in integers, due to Brouncker (in response to a challenge by Fermat), published by Wallis in his Algebra (1685). Equivalent to expanding as a continued fraction and reading off principal convergents — but Wallis claimed any choice of approximation direction works, which Lagrange disproves in add8-pell-method-critique.

Sources: additions-8 (Articles 85–87).

Last updated: 2026-05-10.


Origin

  • Pierre de Fermat (mid-17th c.) proposed solving as a challenge to English mathematicians, recorded in Wallis’s Commercium Epistolicum.
  • Lord Brouncker (William Brouncker, 1620–1684) found the iterative algorithm in response.
  • John Wallis published it in his Algebra (1685, Chapter 98).
  • Jacques Ozanam later mistakenly credited Fermat.
  • Leonhard Euler rediscovered and refined it (Chapter VII of Part II of Elements of Algebra; see ch2.0.7-pell-equation-method) and noticed its broader relevance to .

The misnomer “Pell’s equation” is itself a Eulerian misattribution; John Pell had little to do with it.

The algorithm

Starting from , observe that for large , . Write the continued fraction expansion of , and substitute iteratively , , , etc. Each substitution transforms the original equation into a new equation in two variables, with smaller coefficients in the same family. When a transformed equation reaches the form with leading coefficient unity, set the second indeterminate to and the first to ; unwind the substitutions to obtain .

This is precisely Lagrange’s lagrange-reduction-algorithm specialised to the constant right side .

What’s correct, what’s not

Correct (Lagrange, Art. 86): every solution of corresponds to a principal convergent of the continued fraction of , with all partial quotients positive (i.e., approximations always taken less than the true value).

Wrongly claimed by Wallis and Euler (Art. 87 critique): that one may freely take approximations either “in plus” (ceiling) or “in minus” (floor) at each step, since the remainders decrease either way. Lagrange shows this can prevent the algorithm from terminating: for , taking the first step in minus and all subsequent steps in plus produces a sequence of forms whose leading coefficient never reaches .

Wallis’s “proof” of solvability

Wallis (Ch. 99) attempted to prove that is always solvable for non-square. Lagrange dismisses this as “a mere petitio principii” — i.e., it assumes what it sets out to prove. The first rigorous proof of solvability is Lagrange’s own, in Mélanges de Turin vol. IV, with a more direct version in Article 37 of the Additions.

Relation to modern continued-fraction theory

The Wallis-Brouncker substitution chain is exactly the recurrence for continued-fraction convergents — but historically presented as an algebraic-substitution method without the unifying notion of . The connection is made explicit in add1-continued-fractions (definition) and add2-arithmetic-problems (Pell solvability theorem, Art. 37).