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

Legendre's three-square theorem and squared norm of integer matrices

Number theoryCombinatorics

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

Let N\mathbb{N}N be the set of non-negative integers. Let EnE_nEn​ be the set of integers which are the sum of nnn squares. Let FnF_nFn​ be the set of integers of the form ∥A∥2\Vert A \Vert^2∥A∥2 with A∈Mn(N)A \in M_n(\mathbb{N})A∈Mn​(N) and ∥A∥\Vert A \Vert∥A∥ the operator norm. Recall that ∥A∥2\Vert A \Vert^2∥A∥2 is the largest eigenvalue of A∗AA^*AA∗A.

If A=uv∗A = uv^*A=uv∗ with u,v∈Nnu,v \in \mathbb{N}^nu,v∈Nn then A∗A=vu∗uv∗A^*A = v u^*uv^*A∗A=vu∗uv∗, so that ∥A∥2=∥u∥2∥v∥2\Vert A \Vert^2 = \Vert u \Vert^2\Vert v \Vert^2∥A∥2=∥u∥2∥v∥2 and EnEn⊆FnE_nE_n \subseteq F_nEn​En​⊆Fn​.

This answer and Lagrange's four square theorem imply that En=FnE_n = F_nEn​=Fn​ ∀n≠3\forall n \neq 3∀n=3, whereas E3⊊F3E_3 \subsetneq F_3E3​⊊F3​ because, by Legendre's three-square theorem, E3=N∖{4a(8b+7) ∣ a,b∈N}⊊E3E3E_3 = \mathbb{N} \setminus \{ 4^a(8b+7) \ | \ a,b \in \mathbb{N} \} \subsetneq E_3E_3E3​=N∖{4a(8b+7) ∣ a,b∈N}⊊E3​E3​.

The investigation below shows that F3F_3F3​ contains every non-negative integer less than 3⋅1063 \cdot 10^63⋅106.

Question: Does the form ∥A∥2\Vert A \Vert^2∥A∥2 cover every non-negative integer for A∈M3(N)A \in M_3(\mathbb{N})A∈M3​(N)?

Remark: It is proved here for A∈M3(Z)A \in M_3(\mathbb{Z})A∈M3​(Z).

Investigation

Observe that L:=N∖E3E3L:= \mathbb{N} \setminus E_3E_3L:=N∖E3​E3​ is the set of positive integers 8a−18a-18a−1 whose prime factors are of the form 8b±18b \pm 18b±1. The first elements of LLL are 7,23,31,47,71,79,103,119,127,151,167,…7, 23, 31, 47, 71, 79, 103, 119, 127, 151, 167, \dots7,23,31,47,71,79,103,119,127,151,167,…

Take A=(u1,u2,u3)A=(u_1,u_2,u_3)A=(u1​,u2​,u3​) with ui∈N3u_i \in \mathbb{N}^3ui​∈N3. Then the characteristic polynomial of A∗AA^*AA∗A is P(x)=x3−(∑i=13∥ui∥2)x2+(∑i<j∥ui×uj∥2)x−(u1⋅(u2×u3))2P(x) = x^3-\left(\sum_{i=1}^3 \Vert u_i \Vert^2 \right)x^2 + \left( \sum_{i<j} \Vert u_i \times u_j \Vert^2 \right)x - \left( u_1 \cdot (u_2 \times u_3) \right)^2 P(x)=x3−(∑i=13​∥ui​∥2)x2+(∑i<j​∥ui​×uj​∥2)x−(u1​⋅(u2​×u3​))2 with u×vu \times vu×v the cross product and u⋅vu \cdot vu⋅v the dot product.

Assume that the vectors u1,u2,u3u_1, u_2, u_3u1​,u2​,u3​ are linearly dependent. Then

+ \sqrt{\left( \sum_{i=1}^3 \Vert u_i \Vert^2 \right)^2 -4 \sum_{i<j} \Vert u_i \times u_j \Vert^2} \right)$$ Assume moreover that $u_3=0$, and then observe that $$\Vert A \Vert^2 = \frac{1}{2} \left( \Vert u_1 \Vert^2 + \Vert u_2 \Vert^2 + \sqrt{\left( \Vert u_1 \Vert^2 - \Vert u_2 \Vert^2 \right)^2 + 4 (u_1 \cdot u_2)^2} \right).$$ If moreover $\Vert u_1 \Vert = \Vert u_2 \Vert$ then $\Vert A \Vert^2 = \Vert u_1 \Vert^2 + (u_1 \cdot u_2) = \frac{1}{2} \Vert u_1+u_2 \Vert^2 $, and we know by [this post](https://mathoverflow.net/q/313675/34538) that this form covers every odd less than $90000$, except those in $\{ 5, 23, 29, 65, 167 \}$, but its intersection with $L$ is just $\{23,167\}$ whereas $$ 23 = \left\| \pmatrix{0&2&0\\ 1&4&0 \\ 2&1&0} \right\|^2 \ \text{ and } \ 167 = \left\| \pmatrix{0&7&0\\ 2&5&0 \\ 8&7&0} \right\|^2.$$ It follows that every non-negative integer less than $90000$ is covered. If $u_1=(a,b,c)$, $u_2 = (b,c,a)$ and $u_3=0$, then $2\Vert A \Vert^2 = (a+b)^2+(b+c)^2+(c+a)^2$. Observe (after [this comment](https://math.stackexchange.com/questions/2975032/odd-of-the-form-a2b2c2abacbc#comment6140448_2975032)) that we are reduced to show that $\forall n > 90000$, if $n \in L$ then $2n$ is of the form $x^2+y^2+z^2$ (which is true by Legendre's three-square theorem) with the stronger assumption that $x,y,z$ are the integer sides of a triangle (i.e. $x \le y \le z \le x+y $). It is checked below for $2543<n<3 \cdot 10^6$. Then every non-negative integer less than $3 \cdot 10^6$ is covered. Remark: This stronger version of Legendre's three-square theorem is suspected to be true for every $2n$ with $n$ odd greater than $5969$ (see [this post](https://math.stackexchange.com/q/2975032/84284)), and in general every large element of $E_3$. Computation ```text sage: ModelOutEE(1,3000000) [23, 167, 239, 479, 623, 1031, 1439, 1751, 2543] ``` Code ```text cpdef StrongLegendre(int i): cdef int n,a,b,c,j n=isqrt(i) for a in range(n+1): for b in range(a+1): j=i-a**2-b**2 if j>=0: c=isqrt(j) if c**2==j: if c<=a and a<=b+c: return True if c>a and c<=a+b: return True return False cpdef is_EE(int i): cdef int a,l cdef list f cdef tuple j if not Integer(i).mod(8)==7: return True b=0 f=list(factor(i)) for j in f: a=j[0] if not Integer(a).mod(8) in [1,7]: return True return False cpdef ModelOutEE(int r1, int r2): cdef int i cdef list L L=[] for i in range(r1,r2): if not is_EE(i): if not StrongLegendre(2*i): L.append(i) return L ```

Statement and context adapted from MathOverflow · Sebastien Palcoux

CC BY-SA 4.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 · co.combinatorics · matrices · additive-combinatorics · sums-of-squares

Authors listed by the source : Sebastien Palcoux

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : November 6, 2018

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