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

Number of solutions to n2=x2+y2+2z2n^ 2 = x^2 + y^2 + 2z^2n2=x2+y2+2z2

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

I was intrigued by this result in Journal of Number Theory from 2013. Let n=2λ2∏pλpn = 2^{\lambda_2}\prod p^{\lambda_p}n=2λ2​∏pλp​.

Theorem The number of (x,y,z)∈Z3(x,y,z) \in \mathbb{Z}^3(x,y,z)∈Z3 such that n2=x2+y2+2z2n^ 2 = x^2 + y^2 + 2z^2n2=x2+y2+2z2 is given by b(λ2)∏p[pλp+1−1p−1−(−2p)pλp−1p−1] b(\lambda_2) \prod_p \left[ \frac{p^{\lambda_p+1}-1}{p-1} - \left( \frac{-2}{p}\right)\frac{p^{\lambda_p}-1}{p-1} \right]b(λ2​)∏p​[p−1pλp​+1−1​−(p−2​)p−1pλp​−1​] the symbol bbb is a variant of the Legendre symbol are given by

3 & \lambda_2 \geq 1\end{array} \right.$$ and the necessary values of the classical Legendre symbol are given by $$ \left( \frac{-2}{p}\right) = \left\{ \begin{array}{cl} 1 &p \equiv 1,3 \pmod 8 \\ -1&p \equiv 5,7 \pmod 8 \end{array} \right.$$ I think this problem is slightly difficult because you have to sieve out the squares, but otherwise, shouldn't this result fall out of Hasse principle or a theta function of some kind? I could solve this equation possibly over each prime (as well as $p=2$) and then multiply the result. $$ p^2 = x^2 + y^2 + 2z^2 $$ There's no guarantee even of one solution here, but for this enumerative result we're simply stating that we could multiply the result from all places. Was it new to count solutions over all primes? Does the number of solutions $r_{(1,1,2)}(p^2)$ for all primes not sufficient to determine $r_{(1,1,2)}$ in general? I remember reading that the class number was either 1 or 2 (but I don't even know what that means). There is an approach using half-integer weight forms that solved a few cases in 2014. And possibly a resolution of all cases where the genus has only 1 or 2 elements in 2017.

Statement and context adapted from MathOverflow · john mangual

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

A few useful definitions

Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : nt.number-theory

Authors listed by the source : john mangual

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : November 27, 2017

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