How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Pell Equations and Generalized Pell Orbits
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Foundations of the Real Numbers for Analysis
- Regular Continued Fractions and Diophantine Approximation
- Relations, Functions, and Quotients
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
Pell's equation is where the continued-fraction machinery of stops being a theory of approximation and becomes a machine for producing integer solutions. This page follows the explicit-order route of the design: it works inside , proves the coordinate multiplication and norm laws there directly, and uses the specialized recurrence for to read period parity off the continued fraction.
Once the fundamental solution is in hand, the positive norm-one solutions are exactly its powers. The same unit then organizes every nonzero generalized Pell equation into finitely many orbits, with explicit representative bounds and an immediate finite-search decidability corollary.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Pell's equation
Definition
Fix a positive integer that is not a square. The Diophantine equation is Pell's equation for .
An integral solution of Pell's equation is a pair satisfying the displayed equation. A positive nontrivial solution is an integral solution with The adjective "nontrivial" excludes the obvious solutions .
Generalized and negative Pell equations
Definition
Keep the same positive nonsquare integer as in Pell's equation, and let with . The equation is the generalized Pell equation for .
The special case is the negative Pell equation for .
The restriction is part of the present convention: the page studies the nonzero norm classes whose solutions move by multiplication with norm-one Pell solutions.
The norm on the explicit order
Definition
Fix a positive integer that is not a square. Write viewed only as the explicit rank-two order of such expressions. Its coordinate operations are
and
The conjugate of is The Pell norm of is
Because is not a square, is irrational, so equal expressions have equal coefficients and .
The Pell norm is multiplicative
Statement
Let Then and the Pell norm is multiplicative:
Facts & Assumptions
Given: Two elements and of .
Proof
Fact [F1] gives the coordinate product formula immediately:
Applying the norm formula from [F1] to step 1.1 and expanding gives
Integral Pell solutions form an abelian group
Statement
Fix a positive nonsquare integer , and identify an integral solution of Pell's equation with the element . Then the set is an abelian group under multiplication in .
Facts & Assumptions
Given: The set .
For , the equality is exactly the equation , so is the set of integral Pell solutions written as elements of (Pell's equation, The norm on the explicit order ).
The Pell norm is multiplicative: for all (The Pell norm is multiplicative).
Proof
The element satisfies , so it lies in . If , then [F2] gives so .
If , then [F1] gives , hence Therefore , since by [F1].
Associativity is inherited from multiplication of real numbers, and [F3] is symmetric in and , so multiplication on is commutative. Together with steps 1.1 and 1.2, this proves that is an abelian group.
The complete quotients of satisfy the recurrence
Statement
Let be a positive integer that is not a square, let and let be the continued-fraction digits and complete quotients of . Then there are unique integer pairs with such that for every , Moreover, if then
Facts & Assumptions
Given: A positive nonsquare integer , the real number , and its complete quotients .
For each complete quotient , the continued-fraction algorithm chooses the unique integer with , and if then (Complete quotients in the continued-fraction algorithm).
Proof
At one has so the claimed form holds with and , and certainly and .
Assume Let be the integer from [F1], and set Since , one has so . Also , hence and therefore . Thus is a positive integer. Rationalizing the denominator now gives
If also with , then cross-multiplication gives If , this would make rational, impossible because is a positive nonsquare integer. Hence , and then . So the normalized pair is unique at each stage. Steps 1.1 and 1.2 therefore prove the statement for all .
Convergents to satisfy the norm identity
Statement
Let be a positive nonsquare integer, let be the convergents of , and let be the complete-quotient state variables from The complete quotients of satisfy the recurrence. Then for every ,
Facts & Assumptions
Given: A positive nonsquare integer , the convergents of , and the state variables .
The complete-quotient tail formula gives for every (Complete-quotient tail formula).
Consecutive convergents satisfy (Determinant identity for consecutive convergents).
The next complete quotient has the form with (The complete quotients of satisfy the recurrence).
Proof
Substitute the expression from [F3] into [F1] and clear denominators. One gets Comparing the rational and irrational coefficients of and yields
Multiply the second identity of step 1.1 by , the first by , and subtract. Then by [F2].
The continued fraction of has symmetric period ending in
Statement
Let be a positive integer that is not a square, let and let be its regular continued fraction. Then there is an integer such that with For the state variables of The complete quotients of satisfy the recurrence, the first returned reduced state is
Facts & Assumptions
Given: A positive nonsquare integer , the continued-fraction digits of , and the state variables .
The complete quotients satisfy with , , each , and each (The complete quotients of satisfy the recurrence).
Proof
For every , [F1] and the floor inequality give Also for , so Since for , the recurrence in [F1] gives and therefore Hence So for the pair lies in the finite set of integer pairs with and .
Let be the finite set of integer pairs satisfying Step 1.1 shows that every with lies in , and [F1] defines a successor map . This map is bijective: given , put The interval has irrational endpoints and length , so it contains exactly one integer in the residue class . Then so . Since the orbit of stays in the finite set , there is a least with , that is, .
The recurrence at gives Apply the inverse construction of step 2.1 to . Then and the interval contains the unique integer . So the unique predecessor of in is . Since is the predecessor of along the cycle from step 2.1, one has The recurrence formula now gives
We prove by induction on that The case is step 3.1 together with . Assume it for some . Then [F1] gives Also and are both integers congruent to modulo , and both lie in the interval by step 1.1; by the uniqueness from step 2.1 they are equal. Thus completing the induction. Therefore, for ,
Steps 2.1, 3.1, and 4.1 show that the continued-fraction digits from onward repeat with period , that the last digit in one period is , and that the interior digits are palindromic. Hence with first returned reduced state .
Every Pell equation has a positive nontrivial integral solution
Statement
For every positive nonsquare integer , Pell's equation has a positive nontrivial integral solution.
Facts & Assumptions
Given: A positive nonsquare integer .
If , then for some , and the returned state satisfies (The continued fraction of has symmetric period ending in ).
The convergents of satisfy (Convergents to satisfy the norm identity).
The Pell norm is multiplicative on (The Pell norm is multiplicative).
Proof
Let be the period length from [F1]. Applying [F2] at and using gives
If is even, step 1.1 already gives a norm-one solution. Since for every convergent denominator and , one has and , so is a positive nontrivial solution.
If is odd, step 1.1 gives Put Then and as in step 2.1, and [F3] gives Explicitly, so gives a positive nontrivial integral solution of Pell's equation.
Either step 2.1 or step 3.1 supplies the required positive nontrivial solution.
Negative Pell is soluble exactly for odd period length
Statement
Let be the period length of the regular continued fraction of . Then the negative Pell equation has an integral solution if and only if is odd.
When is odd, the convergent gives the least positive solution of , and the least positive solution of is the convergent . When is even, the least positive norm-one solution is .
Facts & Assumptions
Given: A positive nonsquare integer , the period length of , and the convergents of .
The continued fraction of has period and the first returned reduced state satisfies (The continued fraction of has symmetric period ending in )
For each complete quotient, one has and if then (Complete quotients in the continued-fraction algorithm)
The complete quotients satisfy (The complete quotients of satisfy the recurrence)
The convergents satisfy (Convergents to satisfy the norm identity).
If a reduced rational number satisfies then is a convergent of (Legendre's criterion for convergents).
Proof
Applying [F4] at and using from [F1] gives Hence odd yields a negative-Pell solution at , while even yields a positive norm-one solution there.
Conversely, suppose satisfy . Then Because , one has , so , and therefore Hence Since follows from , fact [F5] shows that for some convergent.
By [F1] and [F3], the returned state at one full period is Since , fact [F2] gives Thus one full period returns the complete-quotient algorithm to ; because the digits from onward repeat with period , the same computation one period later gives , hence . Applying [F4] at yields Thus is a positive norm-one solution.
For that index , [F4] gives Since is a positive integer, it follows that Facts [F2] and [F3] then give So the digit block from onward repeats with period . Because is the period length, divides . Since is odd, must be odd.
Step 2.1 shows that every positive negative-Pell solution comes from a convergent index with even and , so the first such index is . Now let satisfy . Then Because , one has , so , and therefore Hence Since , [F5] shows that for some convergent. Applying [F4] gives so As in step 2.1, facts [F2] and [F3] then give , so divides . Therefore the first possible norm-one index is when is even and when is odd. Convergent denominators strictly increase, and for positive solutions of the value of is determined by , so the first convergent of each type gives the least positive solution. Therefore, when is odd, is the least positive negative-Pell solution and is the least positive norm-one solution, while when is even, is the least positive norm-one solution.
The fundamental Pell solution
Definition
By Every Pell equation has a positive nontrivial integral solution, the set of positive nontrivial solutions of Pell's equation is nonempty. The fundamental Pell solution is the positive solution
whose first coordinate is least among all positive solutions.
Write Since and , one has .
All positive Pell solutions are powers of the fundamental solution
Statement
Let be the fundamental Pell solution. Every positive integral solution of is equal to for a unique integer .
Facts & Assumptions
Given: The fundamental Pell solution and a positive Pell solution .
The element is a positive nontrivial norm-one element of , and its -coordinate is minimal among positive Pell solutions (The fundamental Pell solution).
The norm-one elements of form an abelian group under multiplication (Integral Pell solutions form an abelian group).
Proof
Because , the positive powers form a strictly decreasing sequence. By [F2], each term is again an integral norm-one element. If is any integral norm-one element with , then so Thus every term in the displayed sequence is again a positive Pell solution. Their -coordinates are positive integers and strictly decrease, because with implies hence the corresponding -coordinates satisfy . Therefore only finitely many indices satisfy . The set is nonempty because , so it has a greatest element . Then and maximality of gives Multiplying the last inequality by yields so
Put Step 1.1 and [F2] show that is an integral norm-one element with . If , then step 1.1 shows that is a positive Pell solution with -coordinate smaller than , contradicting [F1]. Hence , so Because , the exponent cannot be , so .
If also with , then multiplying by inside the group from [F2] gives impossible because . So the exponent of a positive solution is unique.
All integral Pell solutions are
Statement
Let be the fundamental Pell solution. Every integral solution of is represented uniquely in as
Facts & Assumptions
Given: An integral Pell solution .
The norm-one elements of form an abelian group (Integral Pell solutions form an abelian group).
Every positive Pell solution is a unique positive power of (All positive Pell solutions are powers of the fundamental solution).
Proof
The element is nonzero because . If or , then already Assume now that . If , then satisfies . Writing , one gets so is a positive Pell solution. Hence [F2] gives for a unique . If , then , so the previous argument shows that is a positive Pell solution; [F1] and [F2] therefore give for a unique , hence . If , apply the previous positive cases to , whose norm is still . Therefore for some integer .
The representation is unique. Indeed, if then the powers and are positive real numbers, so equality forces . After cancelling the common sign, suppose for contradiction that . Then [F1] gives Multiplying by yields Both sides are representations of the positive Pell solution , so [F2] forces , impossible because . The case is symmetric. Hence .
Pell-equivalence for generalized solutions
Definition
Fix a generalized Pell equation as in Generalized and negative Pell equations, and write for the fundamental Pell solution from The fundamental Pell solution.
Two integral solutions are Pell-equivalent if for some integer .
This stays inside the same generalized Pell equation because The Pell norm is multiplicative gives and Integral Pell solutions form an abelian group makes the powers a group.
Generalized Pell solutions fall into finitely many Pell orbits
Statement
Let be a positive nonsquare integer, let , and let be the fundamental Pell solution. Every integral solution is Pell-equivalent to a solution satisfying Consequently the generalized Pell equation has only finitely many Pell-equivalence classes.
Facts & Assumptions
Given: A nonzero integer , the fundamental Pell solution , and a solution of .
Two norm- solutions are Pell-equivalent exactly when one is obtained from the other by multiplication by a power of (Pell-equivalence for generalized solutions).
The Pell norm is multiplicative (The Pell norm is multiplicative).
The fundamental solution satisfies (The fundamental Pell solution).
Proof
Put Because , the half-open intervals partition : their endpoints are strictly ordered, they tend to as , and they tend to as . Hence there is a unique integer with Put By [F1] and [F2], is Pell-equivalent to and still satisfies
Let Step 1.1 gives Since one has and also . Therefore and similarly This is exactly the stated bound.
The bounds of step 2.1 leave only finitely many integer pairs . Every solution is Pell-equivalent to one of them by step 1.1, so only finitely many Pell-equivalence classes occur.
Generalized Pell solubility is decidable by bounded search
Statement
For fixed positive nonsquare and fixed nonzero , the generalized Pell equation is decidable by a finite search over the explicit representative bounds of Generalized Pell solutions fall into finitely many Pell orbits.
Facts & Assumptions
Given: A fixed pair with a positive nonsquare integer and .
Every solution of is Pell-equivalent to a solution in an explicit bounded rectangle, and there are only finitely many Pell-equivalence classes (Generalized Pell solutions fall into finitely many Pell orbits).
Proof
Step through all integer pairs in the finite rectangle supplied by [F1], keep the pairs satisfying , and retain one pair from each Pell-equivalence class among those finitely many solutions.
By [F1], the search succeeds exactly when the generalized Pell equation has an integral solution, and any retained list of representatives generates every solution by multiplying with powers of the fundamental Pell unit. So the finite search decides solubility.
One generalized Pell solution generates infinitely many more
Statement
If the generalized Pell equation has one integral solution, then it has infinitely many integral solutions.
Facts & Assumptions
Given: A nonzero solution of and the fundamental Pell solution .
The Pell norm is multiplicative (The Pell norm is multiplicative).
The fundamental Pell solution satisfies (The fundamental Pell solution).
Proof
For every integer , multiplicativity [F1] gives so each is again a solution of the same generalized Pell equation.
These solutions are all distinct: if , then [F2] gives Hence the first real embeddings have distinct absolute values, so the elements themselves are distinct. Therefore one solution generates infinitely many others.
5 · Examples, counterexamples and false statements
None yet.