Additions Chapter III — Integer Solutions of First-Degree Equations
Summary: Lagrange’s third Addition gives a clean, continued-fraction-based algorithm for solving in integers: from one solution all others are , and the seed solution comes from the second-to-last convergent of . Lagrange acknowledges Bachet de Méziriac (1612/1624) as the first to solve this problem.
Sources: additions-3
Last updated: 2026-05-10
Position in the Additions (Appendix to Chapter I)
This chapter occupies Articles 42–45 (pp. 463–466). It is announced as an Appendix to Chapter I of the Additions — not the main text — because it builds directly on the continued-fraction theory of Add. I and the existence proof of in Add. II Art. 23.
The result is a constructive solution method to the problem already treated by Euler in ch2.0.1-indeterminate-equations-first-degree (the “Euclidean-table” method). Lagrange’s method is more direct and connects the linear Diophantine problem to the CF apparatus of the previous two Additions.
Structure of the Solution Set (Art. 42)
Setup: Solve with (any signs) for integers .
Theorem: If is one integer solution, then all integer solutions are
where is arbitrary and is the reduction to lowest terms (so ).
Proof: Subtracting from gives , i.e. . Since and the differences are integers, and for some . ∎
Bound for the seed: Among the integer solutions, exactly one has , and exactly one has . So a brute-force search needs only to scan values of (or values of ).
CF-Based Direct Method (Art. 43)
Reducibility test: If , then is necessary; otherwise no integer solution exists. Divide through by to reduce to the coprime case with .
Reduction to : If solves , then , solves . Existence of is guaranteed by Add. II, Art. 23.
CF construction of :
- Reduce to a continued fraction by the Euclidean algorithm (Add. I, Art. 4).
- Compute the principal convergents by the Add. I, Art. 10 recurrences.
- The last convergent equals exactly; the second-to-last is the desired .
- By the cross-product identity (Add. I, Art. 12), :
- Upper sign () if the rank of in the convergent list is even.
- Lower sign () if odd.
General solution: , .
Sign convention: may always be taken positive; flip the sign of if , of if .
Worked Example (Art. 44) —
This is the same equation Euler treated in the main text Article 14 by his iterative-reduction method. Lagrange treats it via CFs.
, so , , .
Continued fraction of by Euclidean algorithm:
| step | division | quotient |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
Quotients: .
Convergents (by the recurrence):
| rank | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 3 | 10 | 23 | 56 | |
| 1 | 2 | 7 | 16 | 39 |
The last convergent is ; the second-to-last is , so , .
Sign: rank of is (even) → upper sign, .
Seed solution: , . (Verification: . ✓)
General solution: , for .
To obtain the smallest positive solution, take : , . Check: . ✓
Bachet de Méziriac’s Method (Art. 45 Scholium)
Lagrange credits Bachet de Méziriac, who gave the first complete solution in the 1624 second edition of Problèmes plaisants et délectables (the 1612 first edition only announced the result).
Bachet’s recipe (essentially equivalent to the CF method, but phrased in terms of the back-substituted Euclidean remainders):
Let denote the successive remainders of the Euclidean algorithm on , with being the last (when ). For an even number of remainders:
The final are the least values of in . For an odd number of remainders, the recipe begins instead.
Lagrange remarks: “It is easy to see that this method is fundamentally the same as that of Chapter I; but it is less convenient because it requires divisions” (whereas the convergent recurrences only need multiplications and additions).
He also expresses regret that later mathematicians who solved the same problem ignored Bachet’s contribution — a historical aside that motivates the careful citation throughout the Additions.
Connection to the Main Text
Compare:
- ch2.0.1-indeterminate-equations-first-degree: Euler’s iterative reduction method (substitute , isolate the integer part, descend).
- ch1.3.7-greatest-common-divisor: the Euclidean algorithm itself.
Both methods produce the same convergents in the end, but with different layouts:
- Euler’s table: tracks remainders and unknowns side by side, builds from the bottom up by back-substitution.
- Lagrange’s CF method: separates the CF expansion (Euclidean algorithm) from the convergent recurrence, then reads off as the last-but-one convergent.
The CF approach is cleaner pedagogically because it factors the problem: the Euclidean step gives the partial quotients, and the convergent recurrence gives the seed solution mechanically.
Related pages
- add1-continued-fractions — CF reduction (Art. 4) and convergent recurrences (Art. 10)
- add2-arithmetic-problems — existence of (Art. 23)
- continued-fractions — CF formalism
- convergents — recurrence laws and the cross-product identity
- ch2.0.1-indeterminate-equations-first-degree — Euler’s main-text method on the same problem
- linear-diophantine-equations — concept page on
- ch1.3.7-greatest-common-divisor — the Euclidean algorithm underlying CFs