Alphabeta Math
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.

✓ 12 results · all verified · 4 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 8 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Pell Equations and Generalized Pell Orbits

1 · Prerequisites

2 · Summary

Pell's equation is where the continued-fraction machinery of D 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 Z[D], proves the coordinate multiplication and norm laws there directly, and uses the specialized Pn,Qn recurrence for D 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

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

Pell's equation

Definition

Fix a positive integer D that is not a square. The Diophantine equation x2−Dy2=1,x,y∈Z, is Pell's equation for D.

An integral solution of Pell's equation is a pair (x,y)∈Z2 satisfying the displayed equation. A positive nontrivial solution is an integral solution with x>0,y>0. The adjective "nontrivial" excludes the obvious solutions (±1,0).

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

Generalized and negative Pell equations

Definition

Keep the same positive nonsquare integer D as in Pell's equation, and let N∈Z with N≠0. The equation x2−Dy2=N,x,y∈Z, is the generalized Pell equation for (D,N).

The special case x2−Dy2=−1 is the negative Pell equation for D.

The restriction N≠0 is part of the present convention: the page studies the nonzero norm classes whose solutions move by multiplication with norm-one Pell solutions.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

The norm on the explicit order Z[D]

Definition

Fix a positive integer D that is not a square. Write Z[D]:={x+yD:x,y∈Z}, viewed only as the explicit rank-two order of such expressions. Its coordinate operations are (x+yD)+(u+vD)=(x+u)+(y+v)D and (x+yD)(u+vD)=(xu+Dyv)+(xv+yu)D.

The conjugate of α=x+yD∈Z[D] is α‾:=x−yD. The Pell norm of α is ND(α):=αα‾=x2−Dy2.

Because D is not a square, D is irrational, so equal expressions x+yD=u+vD have equal coefficients x=u and y=v.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

The Pell norm is multiplicative

Statement

Let α=x+yD,β=u+vD∈Z[D]. Then αβ=(xu+Dyv)+(xv+yu)D, and the Pell norm is multiplicative: ND(αβ)=ND(α)ND(β).

Facts & Assumptions

Given: Two elements α=x+yD and β=u+vD of Z[D].

[F1]

In Z[D], one has (x+yD)(u+vD)=(xu+Dyv)+(xv+yu)D and ND(x+yD)=x2−Dy2. (The norm on the explicit order Z[D]).

Proof

technique · direct
1.1F1

Fact [F1] gives the coordinate product formula immediately: αβ=(xu+Dyv)+(xv+yu)D.

2.1F1step 1.1algebra∎

Applying the norm formula from [F1] to step 1.1 and expanding gives ND(αβ)=(xu+Dyv)2−D(xv+yu)2=(x2−Dy2)(u2−Dv2)=ND(α)ND(β).

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

Integral Pell solutions form an abelian group

Statement

Fix a positive nonsquare integer D, and identify an integral solution (x,y) of Pell's equation with the element x+yD∈Z[D]. Then the set GD:={α∈Z[D]:ND(α)=1} is an abelian group under multiplication in Z[D].

Facts & Assumptions

Given: The set GD={α∈Z[D]:ND(α)=1}.

[F1]

For α=x+yD∈Z[D], the equality ND(α)=1 is exactly the equation x2−Dy2=1, so GD is the set of integral Pell solutions written as elements of Z[D] (Pell's equation, The norm on the explicit order Z[D]).

[F2]

The Pell norm is multiplicative: ND(αβ)=ND(α)ND(β) for all α,β∈Z[D] (The Pell norm is multiplicative).

[F3]

In Z[D], the product is (x+yD)(u+vD)=(xu+Dyv)+(xv+yu)D. (The norm on the explicit order Z[D]).

Proof

technique · direct
1.1F1F2givenalgebra

The element 1=1+0D satisfies ND(1)=1, so it lies in GD. If α,β∈GD, then [F2] gives ND(αβ)=ND(α)ND(β)=1, so αβ∈GD.

1.2F1givenalgebra

If α=x+yD∈GD, then [F1] gives x2−Dy2=1, hence α(x−yD)=x2−Dy2=1. Therefore α−1=x−yD∈GD, since ND(x−yD)=1 by [F1].

2.1F3step 1.1step 1.2algebra∎

Associativity is inherited from multiplication of real numbers, and [F3] is symmetric in (x,y) and (u,v), so multiplication on GD is commutative. Together with steps 1.1 and 1.2, this proves that GD is an abelian group.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

The complete quotients of D satisfy the Pn,Qn recurrence

Statement

Let D be a positive integer that is not a square, let α0:=D, and let an,αn be the continued-fraction digits and complete quotients of D. Then there are unique integer pairs (Pn,Qn) with P0=0,Q0=1, such that for every n≥0, αn=D+PnQn,Qn>0,Qn∣D−Pn2. Moreover, if an=⌊αn⌋, then Pn+1=anQn−Pn,Qn+1=D−Pn+12Qn,αn+1=D+Pn+1Qn+1.

Facts & Assumptions

Given: A positive nonsquare integer D, the real number α0=D, and its complete quotients αn.

[F1]

For each complete quotient αn, the continued-fraction algorithm chooses the unique integer an with an≤αn<an+1, and if αn≠an then αn+1=1/(αn−an) (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1givenbasealgebra

At n=0 one has α0=D=D+01, so the claimed form holds with P0=0 and Q0=1, and certainly Q0>0 and Q0∣D−P02=D.

1.2F1ihalgebra

Assume αn=D+PnQn,Qn>0,Qn∣D−Pn2. Let an be the integer from [F1], and set Pn+1:=anQn−Pn. Since αn−an>0, one has D−Pn+1=D+Pn−anQn>0, so D−Pn+12>0. Also Pn+1≡−Pn(modQn), hence Pn+12≡Pn2(modQn) and therefore Qn∣D−Pn+12. Thus Qn+1:=D−Pn+12Qn is a positive integer. Rationalizing the denominator now gives αn+1=1αn−an=QnD−Pn+1=D+Pn+1Qn+1.

2.1step 1.1step 1.2discharge-inductionalgebra∎

If also D+PQ=D+P′Q′ with Q,Q′>0, then cross-multiplication gives (Q′−Q)D=QP′−Q′P. If Q′≠Q, this would make D rational, impossible because D is a positive nonsquare integer. Hence Q′=Q, and then P′=P. So the normalized pair (Pn,Qn) is unique at each stage. Steps 1.1 and 1.2 therefore prove the statement for all n≥0.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

Convergents to D satisfy the norm identity

Statement

Let D be a positive nonsquare integer, let pn/qn be the convergents of D, and let Pn,Qn be the complete-quotient state variables from The complete quotients of D satisfy the Pn,Qn recurrence. Then for every n≥0, pn2−Dqn2=(−1)n+1Qn+1.

Facts & Assumptions

Given: A positive nonsquare integer D, the convergents pn/qn of D, and the state variables Pn,Qn.

[F1]

The complete-quotient tail formula gives D=αn+1pn+pn−1αn+1qn+qn−1 for every n≥0 (Complete-quotient tail formula).

[F2]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1. (Determinant identity for consecutive convergents).

[F3]

The next complete quotient has the form αn+1=D+Pn+1Qn+1 with Qn+1>0 (The complete quotients of D satisfy the Pn,Qn recurrence).

Proof

technique · direct
1.1F1F3algebra

Substitute the expression from [F3] into [F1] and clear denominators. One gets D((D+Pn+1)qn+Qn+1qn−1)=(D+Pn+1)pn+Qn+1pn−1. Comparing the rational and irrational coefficients of 1 and D yields Dqn=Pn+1pn+Qn+1pn−1,pn=Pn+1qn+Qn+1qn−1.

2.1F2step 1.1algebra∎

Multiply the second identity of step 1.1 by pn, the first by qn, and subtract. Then pn2−Dqn2=Qn+1(pnqn−1−pn−1qn)=(−1)n+1Qn+1 by [F2].

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

The continued fraction of D has symmetric period ending in 2a0

Statement

Let D be a positive integer that is not a square, let a0:=⌊D⌋, and let D=[a0;a1,a2,…] be its regular continued fraction. Then there is an integer ℓ≥1 such that D=[a0;a1,…,aℓ−1,2a0‾], with aj=aℓ−j(1≤j<ℓ). For the state variables of The complete quotients of D satisfy the Pn,Qn recurrence, the first returned reduced state is Pℓ=a0,Qℓ=1.

Facts & Assumptions

Given: A positive nonsquare integer D, the continued-fraction digits an of D, and the state variables Pn,Qn.

[F1]

The complete quotients satisfy αn=D+PnQn,Pn+1=anQn−Pn,Qn+1=D−Pn+12Qn, with P0=0, Q0=1, each Qn>0, and each Qn∣D−Pn2 (The complete quotients of D satisfy the Pn,Qn recurrence).

Proof

technique · induction
1.1F1algebra

For every n≥0, [F1] and the floor inequality an≤αn<an+1 give Pn+1=anQn−Pn<D. Also αn>1 for n≥1, so Qn<D+Pn<2D. Since Pn<D for n≥1, the recurrence in [F1] gives Qn≤Pn+1+Pn<D+Pn+1, and therefore Qn+1=(D−Pn+1)(D+Pn+1)Qn>D−Pn+1. Hence Pn<D<Pn+Qn(n≥1). So for n≥1 the pair (Pn,Qn) lies in the finite set of integer pairs with −D<P<D and 0<Q<2D.

2.1F1step 1.1constructalgebra

Let S be the finite set of integer pairs (P,Q) satisfying Q>0,Q∣D−P2,P<D<P+Q. Step 1.1 shows that every (Pn,Qn) with n≥1 lies in S, and [F1] defines a successor map T:S→S. This map is bijective: given (P′,Q′)∈S, put Q:=D−(P′)2Q′. The interval (D−Q,D) has irrational endpoints and length Q, so it contains exactly one integer P in the residue class −P′(modQ). Then a:=P+P′Q∈Z,P′=aQ−P,Q′=D−(P′)2Q, so T(P,Q)=(P′,Q′). Since the orbit of (P1,Q1) stays in the finite set S, there is a least ℓ≥1 with Tℓ(P1,Q1)=(P1,Q1), that is, (Pℓ+1,Qℓ+1)=(P1,Q1).

3.1F1step 2.1algebra

The recurrence at n=0 gives P1=a0,Q1=D−a02. Apply the inverse construction of step 2.1 to (P1,Q1). Then Q=D−a02Q1=1, and the interval (D−1,D) contains the unique integer a0. So the unique predecessor of (P1,Q1) in S is (a0,1). Since (Pℓ,Qℓ) is the predecessor of (P1,Q1) along the cycle from step 2.1, one has Pℓ=a0,Qℓ=1. The recurrence formula Pℓ+1=aℓQℓ−Pℓ now gives aℓ=Pℓ+Pℓ+1=a0+a0=2a0.

4.1F1step 1.1step 2.1step 3.1discharge-inductionalgebra

We prove by induction on j that Pj=Pℓ−j+1(1≤j≤ℓ),Qj−1=Qℓ−j+1(1≤j≤ℓ). The case j=1 is step 3.1 together with Q0=Qℓ=1. Assume it for some j<ℓ. Then [F1] gives Qj=D−Pj2Qj−1=D−Pℓ−j+12Qℓ−j+1=Qℓ−j. Also Pj+1 and Pℓ−j are both integers congruent to −Pj modulo Qj, and both lie in the interval (D−Qj,D) by step 1.1; by the uniqueness from step 2.1 they are equal. Thus Pj+1=Pℓ−j,Qj=Qℓ−j, completing the induction. Therefore, for 1≤j<ℓ, aj=Pj+Pj+1Qj=Pℓ−j+1+Pℓ−jQℓ−j=aℓ−j.

5.1step 2.1step 3.1step 4.1∎

Steps 2.1, 3.1, and 4.1 show that the continued-fraction digits from a1 onward repeat with period ℓ, that the last digit in one period is 2a0, and that the interior digits are palindromic. Hence D=[a0;a1,…,aℓ−1,2a0‾],aj=aℓ−j (1≤j<ℓ), with first returned reduced state (Pℓ,Qℓ)=(a0,1).

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

Every Pell equation has a positive nontrivial integral solution

Statement

For every positive nonsquare integer D, Pell's equation x2−Dy2=1 has a positive nontrivial integral solution.

Facts & Assumptions

Given: A positive nonsquare integer D.

[F1]

If a0=⌊D⌋, then D=[a0;a1,…,aℓ−1,2a0‾] for some ℓ≥1, and the returned state satisfies Qℓ=1 (The continued fraction of D has symmetric period ending in 2a0).

[F2]

The convergents of D satisfy pn2−Dqn2=(−1)n+1Qn+1. (Convergents to D satisfy the norm identity).

[F3]

The Pell norm is multiplicative on Z[D] (The Pell norm is multiplicative).

Proof

technique · direct
1.1F1F2givenalgebra

Let ℓ be the period length from [F1]. Applying [F2] at n=ℓ−1 and using Qℓ=1 gives pℓ−12−Dqℓ−12=(−1)ℓ.

2.1step 1.1algebra

If ℓ is even, step 1.1 already gives a norm-one solution. Since qℓ−1>0 for every convergent denominator and pℓ−12=Dqℓ−12+1, one has pℓ−1>0 and qℓ−1>0, so (pℓ−1,qℓ−1) is a positive nontrivial solution.

3.1F3step 1.1algebra

If ℓ is odd, step 1.1 gives pℓ−12−Dqℓ−12=−1. Put α:=pℓ−1+qℓ−1D. Then pℓ−1>0 and qℓ−1>0 as in step 2.1, and [F3] gives ND(α2)=ND(α)2=(−1)2=1. Explicitly, α2=(pℓ−12+Dqℓ−12)+2pℓ−1qℓ−1D, so α2 gives a positive nontrivial integral solution of Pell's equation.

4.1step 2.1step 3.1∎

Either step 2.1 or step 3.1 supplies the required positive nontrivial solution.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

Negative Pell is soluble exactly for odd period length

Statement

Let ℓ be the period length of the regular continued fraction of D. Then the negative Pell equation x2−Dy2=−1 has an integral solution if and only if ℓ is odd.

When ℓ is odd, the convergent pℓ−1/qℓ−1 gives the least positive solution of x2−Dy2=−1, and the least positive solution of x2−Dy2=1 is the convergent p2ℓ−1/q2ℓ−1. When ℓ is even, the least positive norm-one solution is pℓ−1/qℓ−1.

Facts & Assumptions

Given: A positive nonsquare integer D, the period length ℓ of D, and the convergents pn/qn of D.

[F1]

The continued fraction of D has period [a0;a1,…,aℓ−1,2a0‾], and the first returned reduced state satisfies Pℓ=a0,Qℓ=1. (The continued fraction of D has symmetric period ending in 2a0)

[F2]

For each complete quotient, one has an=⌊αn⌋, and if αn≠an then αn+1=1αn−an. (Complete quotients in the continued-fraction algorithm)

[F3]

The complete quotients satisfy αn=D+PnQn,Qn>0. (The complete quotients of D satisfy the Pn,Qn recurrence)

[F4]

The convergents satisfy pn2−Dqn2=(−1)n+1Qn+1. (Convergents to D satisfy the norm identity).

[F5]

If a reduced rational number r/s satisfies ∣D−rs∣<12s2, then r/s is a convergent of D (Legendre's criterion for convergents).

Proof

technique · direct
1.1F1F4algebra

Applying [F4] at n=ℓ−1 and using Qℓ=1 from [F1] gives pℓ−12−Dqℓ−12=(−1)ℓ. Hence ℓ odd yields a negative-Pell solution at pℓ−1/qℓ−1, while ℓ even yields a positive norm-one solution there.

1.2F5givenalgebra

Conversely, suppose x,y>0 satisfy x2−Dy2=−1. Then 0<D−xy=1y(x+yD). Because D≥2, one has x2=Dy2−1≥y2, so x≥y, and therefore x+yD>2y. Hence ∣D−xy∣<12y2. Since gcd⁡(x,y)=1 follows from x2−Dy2=−1, fact [F5] shows that x/y=pn/qn for some convergent.

1.3F1F2F3F4algebra

By [F1] and [F3], the returned state at one full period is αℓ=D+PℓQℓ=D+a0. Since ⌊αℓ⌋=2a0, fact [F2] gives αℓ+1=1αℓ−⌊αℓ⌋=1D−a0=α1. Thus one full period returns the complete-quotient algorithm to α1; because the digits from a1 onward repeat with period ℓ, the same computation one period later gives α2ℓ=D+a0, hence Q2ℓ=1. Applying [F4] at n=2ℓ−1 yields p2ℓ−12−Dq2ℓ−12=(−1)2ℓQ2ℓ=1. Thus p2ℓ−1/q2ℓ−1 is a positive norm-one solution.

2.1F2F3F4step 1.2algebra

For that index n, [F4] gives −1=x2−Dy2=pn2−Dqn2=(−1)n+1Qn+1. Since Qn+1 is a positive integer, it follows that Qn+1=1andn is even. Facts [F2] and [F3] then give αn+1=D+Pn+1,αn+2=1αn+1−⌊αn+1⌋=1D−a0=α1. So the digit block from a1 onward repeats with period n+1. Because ℓ is the period length, ℓ divides n+1. Since n+1 is odd, ℓ must be odd.

3.1F2F3F4F5step 1.3step 2.1algebra∎

Step 2.1 shows that every positive negative-Pell solution comes from a convergent index n with n even and ℓ∣(n+1), so the first such index is ℓ−1. Now let u,v>0 satisfy u2−Dv2=1. Then 0<uv−D=1v(u+vD). Because D≥2, one has u2=Dv2+1>v2, so u>v, and therefore u+vD>2v. Hence ∣D−uv∣<12v2. Since gcd⁡(u,v)=1, [F5] shows that u/v=pn/qn for some convergent. Applying [F4] gives 1=u2−Dv2=pn2−Dqn2=(−1)n+1Qn+1, so Qn+1=1andn is odd. As in step 2.1, facts [F2] and [F3] then give αn+2=α1, so ℓ divides n+1. Therefore the first possible norm-one index is ℓ−1 when ℓ is even and 2ℓ−1 when ℓ is odd. Convergent denominators strictly increase, and for positive solutions of x2−Dy2=±1 the value of x is determined by x2=Dy2±1, so the first convergent of each type gives the least positive solution. Therefore, when ℓ is odd, pℓ−1/qℓ−1 is the least positive negative-Pell solution and p2ℓ−1/q2ℓ−1 is the least positive norm-one solution, while when ℓ is even, pℓ−1/qℓ−1 is the least positive norm-one solution.

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-28Open item page →

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 (x1,y1)∈Z>02,x12−Dy12=1, whose first coordinate x1 is least among all positive solutions.

Write εD:=x1+y1D∈Z[D]. Since x1>0 and y1>0, one has εD>1.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

All positive Pell solutions are powers of the fundamental solution

Statement

Let εD=x1+y1D be the fundamental Pell solution. Every positive integral solution of x2−Dy2=1 is equal to εDk for a unique integer k≥1.

Facts & Assumptions

Given: The fundamental Pell solution εD=x1+y1D and a positive Pell solution α=x+yD.

[F1]

The element εD is a positive nontrivial norm-one element of Z[D], and its x-coordinate is minimal among positive Pell solutions (The fundamental Pell solution).

[F2]

The norm-one elements of Z[D] form an abelian group under multiplication (Integral Pell solutions form an abelian group).

Proof

technique · direct
1.1F1F2givenalgebra

Because εD>1, the positive powers α, αεD−1, αεD−2,… form a strictly decreasing sequence. By [F2], each term is again an integral norm-one element. If β=u+vD is any integral norm-one element with β>1, then 0<β−1=u−vD<1, so u=β+β−12,v=β−β−12D>0. Thus every term >1 in the displayed sequence is again a positive Pell solution. Their x-coordinates are positive integers and strictly decrease, because 1<γ<δ with ND(γ)=ND(δ)=1 implies γ−1>δ−1>0,γ+γ−1<δ+δ−1, hence the corresponding x-coordinates satisfy x(γ)<x(δ). Therefore only finitely many indices j≥0 satisfy αεD−j>1. The set K:={j∈Z≥0:αεD−j≥1} is nonempty because 0∈K, so it has a greatest element k. Then 1≤αεD−k, and maximality of k gives αεD−(k+1)<1. Multiplying the last inequality by εD yields αεD−k<εD, so 1≤αεD−k<εD.

2.1F1F2step 1.1algebra

Put β:=αεD−k. Step 1.1 and [F2] show that β is an integral norm-one element with 1≤β<εD. If β>1, then step 1.1 shows that β is a positive Pell solution with x-coordinate smaller than x1, contradicting [F1]. Hence β=1, so α=εDk. Because α>1, the exponent cannot be 0, so k≥1.

3.1F1F2step 2.1algebra∎

If also α=εDm=εDn with m<n, then multiplying by εD−m inside the group from [F2] gives 1=εDn−m, impossible because εD>1. So the exponent of a positive solution is unique.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

All integral Pell solutions are ±εDk

Statement

Let εD be the fundamental Pell solution. Every integral solution of x2−Dy2=1 is represented uniquely in Z[D] as ±εDk,k∈Z.

Facts & Assumptions

Given: An integral Pell solution α∈Z[D].

[F1]

The norm-one elements of Z[D] form an abelian group (Integral Pell solutions form an abelian group).

[F2]

Every positive Pell solution is a unique positive power of εD (All positive Pell solutions are powers of the fundamental solution).

Proof

technique · direct
1.1F1F2givenalgebra

The element α is nonzero because ND(α)=1. If α=1 or α=−1, then already α=±εD0. Assume now that α≠±1. If α>1, then α−1=1/α satisfies 0<α−1<1. Writing α=x+yD, one gets x=α+α−12>0,y=α−α−12D>0, so α is a positive Pell solution. Hence [F2] gives α=εDk for a unique k≥1. If 0<α<1, then α−1>1, so the previous argument shows that α−1 is a positive Pell solution; [F1] and [F2] therefore give α−1=εDk for a unique k≥1, hence α=εD−k. If α<0, apply the previous positive cases to −α, whose norm is still 1. Therefore α=±εDm for some integer m.

2.1F1F2step 1.1algebra∎

The representation is unique. Indeed, if σεDm=τεDn,σ,τ∈{±1}, then the powers εDm and εDn are positive real numbers, so equality forces σ=τ. After cancelling the common sign, suppose for contradiction that m<n. Then [F1] gives 1=εDn−m. Multiplying by εD yields εD=εDn−m+1. Both sides are representations of the positive Pell solution εD, so [F2] forces n−m+1=1, impossible because m<n. The case n<m is symmetric. Hence m=n.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-28Open item page →

Pell-equivalence for generalized solutions

Definition

Fix a generalized Pell equation x2−Dy2=N,N≠0, as in Generalized and negative Pell equations, and write εD:=x1+y1D for the fundamental Pell solution from The fundamental Pell solution.

Two integral solutions α,β∈Z[D],ND(α)=ND(β)=N, are Pell-equivalent if β=αεDk for some integer k.

This stays inside the same generalized Pell equation because The Pell norm is multiplicative gives ND(αεDk)=ND(α)ND(εD)k=N, and Integral Pell solutions form an abelian group makes the powers εDk a group.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

Generalized Pell solutions fall into finitely many Pell orbits

Statement

Let D be a positive nonsquare integer, let N∈Z∖{0}, and let εD>1 be the fundamental Pell solution. Every integral solution x2−Dy2=N is Pell-equivalent to a solution x0+y0D satisfying ∣x0∣≤∣N∣2(εD+εD−1/2),∣y0∣≤∣N∣2D(εD+εD−1/2). Consequently the generalized Pell equation has only finitely many Pell-equivalence classes.

Facts & Assumptions

Given: A nonzero integer N, the fundamental Pell solution εD>1, and a solution α=x+yD of ND(α)=N.

[F1]

Two norm-N solutions are Pell-equivalent exactly when one is obtained from the other by multiplication by a power of εD (Pell-equivalence for generalized solutions).

[F2]

The Pell norm is multiplicative (The Pell norm is multiplicative).

[F3]

The fundamental solution satisfies εD>1 (The fundamental Pell solution).

Proof

technique · direct
1.1F1F2F3givenalgebra

Put t:=∣α∣∣N∣>0. Because εD>1, the half-open intervals (εDm−1/2,εDm+1/2](m∈Z) partition (0,∞): their endpoints are strictly ordered, they tend to 0 as m→−∞, and they tend to +∞ as m→+∞. Hence there is a unique integer k with εD−1/2<tεD−k≤εD1/2. Put α0:=αεD−k=x0+y0D. By [F1] and [F2], α0 is Pell-equivalent to α and still satisfies ND(α0)=N.

2.1F2step 1.1algebra

Let β:=∣α0∣. Step 1.1 gives ∣N∣ εD−1/2<β≤∣N∣ εD1/2. Since α0‾=x0−y0D=Nα0, one has ∣α0‾∣=∣N∣β≤∣N∣ εD1/2 and also ∣α0‾∣>∣N∣ εD−1/2. Therefore 2∣x0∣=∣α0+α0‾∣≤β+∣α0‾∣≤∣N∣(εD+εD−1/2), and similarly 2D ∣y0∣=∣α0−α0‾∣≤β+∣α0‾∣≤∣N∣(εD+εD−1/2). This is exactly the stated bound.

3.1step 1.1step 2.1∎

The bounds of step 2.1 leave only finitely many integer pairs (x0,y0). Every solution is Pell-equivalent to one of them by step 1.1, so only finitely many Pell-equivalence classes occur.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

Generalized Pell solubility is decidable by bounded search

Statement

For fixed positive nonsquare D and fixed nonzero N∈Z, the generalized Pell equation x2−Dy2=N 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 (D,N) with D a positive nonsquare integer and N≠0.

[F1]

Every solution of x2−Dy2=N 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

technique · direct
1.1F1given

Step through all integer pairs (x,y) in the finite rectangle supplied by [F1], keep the pairs satisfying x2−Dy2=N, and retain one pair from each Pell-equivalence class among those finitely many solutions.

2.1F1step 1.1∎

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.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28Open item page →

One generalized Pell solution generates infinitely many more

Statement

If the generalized Pell equation x2−Dy2=N,N≠0, has one integral solution, then it has infinitely many integral solutions.

Facts & Assumptions

Given: A nonzero solution α=x+yD of ND(α)=N and the fundamental Pell solution εD>1.

[F1]

The Pell norm is multiplicative (The Pell norm is multiplicative).

[F2]

The fundamental Pell solution satisfies εD>1 (The fundamental Pell solution).

Proof

technique · direct
1.1F1givenalgebra

For every integer k, multiplicativity [F1] gives ND(αεDk)=ND(α)ND(εD)k=N, so each αεDk is again a solution of the same generalized Pell equation.

2.1F2step 1.1algebra∎

These solutions are all distinct: if k<ℓ, then [F2] gives ∣αεDℓ∣=∣αεDk∣ εDℓ−k>∣αεDk∣. 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.

Sources