Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Research of average number of equivalence classes of solutions to generalised Pell's equation

Number theory

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Statement of the problem

Firstly, consider the infamous Pell's equation: x2−dy2=1x^{2}-dy^{2}=1x2−dy2=1. Here xxx and yyy are integers and ddd is a nonsquare integer. It is known ([3]) that all solutions of this equation can be obtained from the solution with least positive xxx called the fundamental solution. By the way, it is convenient to write solutions in the form a+dba+\sqrt{d}ba+d​b. This way if we denote the fundamental solution by x1+dy1x_{1}+\sqrt{d}y_{1}x1​+d​y1​ then the kkk-th solution will be xk+dyk=(x1+dy1)k,k≥1x_{k}+\sqrt{d}y_{k} = (x_{1}+\sqrt{d}y_{1})^{k},k\geq 1xk​+d​yk​=(x1​+d​y1​)k,k≥1. And I need to note here that this equation is always solvable because we can obtain the fundamental solution from the continued fraction expansion of d\sqrt{d}d​.

Now, let's look at the generalised Pell's equation: x2−dy2=Nx^{2}-dy^{2}=Nx2−dy2=N. Here xxx,yyy and NNN are integers and ddd is a nonsquare integer. It turns out ([1],[2]) that the solutions (if it's solvable, cause it may not have a solution) all have quite a simple structure: ηmϵ0k,1≤m≤h,k≥0.\eta_{m}\epsilon_{0}^{k}, 1\leq m\leq h,k \geq 0.ηm​ϵ0k​,1≤m≤h,k≥0. Where ηm\eta_{m}ηm​ is the fundamental (with least positive xxx component) solution of mmm-th equivalence class and ϵ0\epsilon_{0}ϵ0​ is the fundamental solution of standard Pell's equation x2−dy2=1x^{2}-dy^{2}=1x2−dy2=1.

I'm talking about equivalence classes so here is the definition of equivalence: two solutions f1=a1+db1,f2=a2+db2f_{1} = a_{1}+\sqrt{d}b_{1},f_{2} = a_{2}+\sqrt{d}b_{2}f1​=a1​+d​b1​,f2​=a2​+d​b2​ of the generalised Pell's equation are equivalent if their ratio is a solution of the standard Pell's equation. Note that it doesn't matter if we take f1f2\frac{f_{1}}{f_{2}}f2​f1​​ or f2f1\frac{f_{2}}{f_{1}}f1​f2​​. Because solving the Pell's equation is essentially finding numbers of required norm in the ring Z+dZ\mathbb{Z}+\sqrt{d}\mathbb{Z}Z+d​Z.

Finally, let's denote by f(N,d)f(N,d)f(N,d) that number hhh of equivalence classes of solutions to the generalised Pell's equation. This is what I want to research. Experimental results are as follows (changing NNN,ddd is fixed): it behaves quite randomly, but the average seems to tend to a constant. This motivates me to consider the function:

F(M,d)=∑N=1Mf(N,d)F(M,d) = \sum_{N = 1}^{M} f(N,d)F(M,d)=N=1∑M​f(N,d)

My aim here is to get a good approximate formula for this function and then take a limit lim⁡M→+∞F(M,d)M\lim_{M \rightarrow +\infty} \frac{F(M,d)}{M}limM→+∞​MF(M,d)​ to see if it really tends to a constant.

My current approach

If we could somehow get the Dirichlet series g(s)=∑N=1+∞f(N,d)Nsg(s) = \sum_{N=1}^{+\infty} \frac{f(N,d)}{N^{s}}g(s)=∑N=1+∞​Nsf(N,d)​ then we'd just use Perron's inversion formula to recover the sum. The hardest thing for me is that f(N,d)f(N,d)f(N,d) doesn't seem to have any simple properties that I could use to get some functional equations, etc. It feels like pure randomness and I'm stuck looking from this angle. For instance, trying ∑x,y>01(x2−dy2)s(x+dy)s−1\sum_{x,y >0} \frac{1}{(x^{2}-d y^{2})^{s}(x+\sqrt{d}y)^{s-1}}∑x,y>0​(x2−dy2)s(x+d​y)s−11​ yields something that, roughly speaking, behaves like a simplified version of that Dirichlet series near s=1s = 1s=1 but summing it is problematic for me. Because we have a double sum and this means the error terms should be quite small to be able to sum it properly.

My questions

  • How difficult is this problem?

  • Are there any tools known (maybe from analytic number theory) to work with such problems?

Some literature

  • Matthews K.R.: The diophantine equation x2−Dy2=N,D>0.x^2-Dy^2=N, D>0.x2−Dy2=N,D>0. Expositiones Mathematicae, 18, 323-331 (2000)

  • Mollin R.A.: Simple Continued Fraction Solutions for Diophantine Equations. Expositiones Mathematicae, 19, 55-73 (2001)

  • Clark, Pete. Number Theory: A Contemporary Introduction. University of Georgia. 93-102

Statement and context adapted from MathOverflow · Paul Woolfer

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : nt.number-theory · analytic-number-theory

Authors listed by the source : Paul Woolfer

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : January 22, 2023

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni