Universal Quaternary Sum
- Universal quaternary sum is a four-term representation problem uniting diverse arithmetic settings such as quadratic forms, polygonal numbers, and quaternion rings.
- Techniques like escalator trees, quadratic reductions, and Ramanujan theta series analyses provide finite test criteria for establishing universality.
- The theory bridges classical results like Lagrange’s four-square theorem with modern studies in quaternion rings and polynomial optimization, highlighting wide-ranging applications.
A universal quaternary sum is a four-term or four-variable expression that represents every element of a specified arithmetic domain. The phrase is not uniform across the literature: in classical quadratic-form theory it refers to positive-definite quaternary forms representing all positive integers; in the theory of polygonal numbers it denotes four-variable sums of representing all nonnegative integers; in quaternion rings it means that every element of the subgroup generated by squares is a sum of four quaternion squares; and over other rings, such as or rings of integers in real quadratic fields, it refers to universality relative to Gaussian integers or totally positive algebraic integers (Yang, 2023, Ju et al., 2017, Sidokhine, 2013, Cooke et al., 2016, Thompson, 2016).
1. Terminological scope
The common structural feature is a representation problem with four summands. In the polygonal-number setting, a quaternary sum means a function
and universality means that represents every positive integer or every nonnegative integer, depending on the convention of the paper (Yang, 2023, Ju et al., 2018, Ju et al., 2017). In quaternionic Waring-type problems, the relevant condition is , where is the minimal number of quaternion squares needed to represent every element of
the additive subgroup generated by squares in (Cooke et al., 2016).
| Context | Quaternary object | Universality target |
|---|---|---|
| Mixed polygonal sums | A 4-variable sum of -terms | Every positive or nonnegative integer (Yang, 2023, Ju et al., 2018) |
| Quaternion rings | Four quaternion squares | Every element of (Cooke et al., 2016) |
| Other rings and fields | A quaternary quadratic form | Every Gaussian integer or every totally positive element (Sidokhine, 2013, Thompson, 2016) |
This multiplicity of meanings explains why the term is best read relative to its ambient category. A universal quaternary sum is therefore not a single object class, but a family of representation phenomena linked by the number four and by full representability.
2. Classical universality and finite test sets
The archetype is Lagrange’s four-square theorem, which asserts that every positive integer is a sum of four integer squares. Several of the cited works explicitly frame later developments as analogues or extensions of this quaternary universality paradigm (Cooke et al., 2016, Thompson, 2016). In the theory of integral quadratic forms, this is complemented by the Conway–Schneeberger Fifteen Theorem and the Bhargava–Hanke 290-Theorem, both of which are invoked as models for finite universality criteria (Yang, 2023, Ju et al., 2018, Ju et al., 2017).
For sums of triangular numbers and squares, universality admits an exact finite characterization. A sum in the class 0, equivalently a sum of triangular numbers and squares, is universal if and only if it represents
1
and each of these 22 integers is critical; consequently 2 (Yang, 2023). In this setting, quaternary sums are the depth-3 nodes of the escalator tree, and the paper shows that all depth-4 nodes are universal except an explicit finite list (Yang, 2023).
A related but broader asymptotic statement appears for sums of generalized 5-gonal numbers. If 6 is the largest truant appearing in the escalator tree, then representing every integer up to 7 suffices for universality, and for every 8,
9
The same work records exact values 0, 1, 2, 3, and 4 (Kane et al., 2018). This suggests that quaternary universality sits inside a wider finite-check framework, even when a full classification is unavailable.
3. Mixed polygonal-number realizations
The polygonal-number literature contains the largest explicit catalogues of universal quaternary sums. For generalized 5- and 6-gonal numbers, a mixed sum
7
is universal if it represents every nonnegative integer, and a quaternary sum means 8 (Ju et al., 2018). In this framework there are exactly 9 proper quaternary universal mixed sums, and across all ranks there are exactly 0 proper universal mixed sums of generalized 1- and 2-gonal numbers (Ju et al., 2018). The same paper proves the “61-theorem”: such a mixed sum is universal if and only if it represents
3
For generalized octagonal numbers, the quaternary sum
4
is universal if 5 has an integer solution for every positive integer 6 (Ju et al., 2017). One paper completes Sun’s list of unresolved quaternary octagonal cases by proving universality for 7, and then establishes the “octagonal theorem of sixty”: an arbitrary sum of generalized octagonal numbers is universal if and only if it represents 8 (Ju et al., 2017).
Recent work extends this to genuinely mixed quaternary sums involving generalized 9-, 0-, 1-, and 2-gonal numbers. A 2025 paper determines the universality of many quaternary sums
3
using products of Ramanujan’s theta functions (Bulkhali et al., 18 Jul 2025). The concrete lists in that paper include universal families of the forms 4, 5, 6, 7, and 8, among others (Bulkhali et al., 18 Jul 2025). A plausible implication is that theta-function factorizations are becoming a unifying technique for quaternary mixed polygonal sums that were previously treated by ad hoc ternary-form arguments.
4. Quaternion rings and universality beyond 9
A distinct use of the term appears in quaternion rings
0
where every square has even pure coefficients and the additive subgroup generated by squares is
1
The quantity 2 is the minimal number of squares needed to represent every element of 3, and the paper states explicitly that if 4, this is a universal quaternary sum in 5 (Cooke et al., 2016). The central theorem is
6
and each of 7 occurs for infinitely many pairs 8 (Cooke et al., 2016). Thus four squares are universal in some quaternion rings but not uniformly: for example, 9 for all 0, whereas 1 for all 2 (Cooke et al., 2016). This directly contradicts any naive expectation that the integer four-square phenomenon should persist unchanged in noncommutative settings.
Over Gaussian integers, universality can also be quaternary but no longer integer-valued. The form
3
is universal over 4, meaning that for every 5 there exist Gaussian integers 6 with
7
(Sidokhine, 2013). The proof combines a classification of Gaussian primes by norm modulo 8, a Gaussian version of Fermat’s little theorem in 9, the Mordell–Niven theorem, and a generalized Euler identity showing multiplicative closure of the value set (Sidokhine, 2013).
For real quadratic number fields, the analogue behaves much more rigidly. The quaternary form
0
over 1 is universal only for 2; for every other real quadratic field the sum of four squares is not universal (Thompson, 2016). Over 3 the associated Hilbert theta series has zero cusp part at level 4, yielding an explicit Jacobi-type formula for the representation numbers 5 (Thompson, 2016). This suggests that quaternary universality over number fields depends as much on the ambient field and its modular forms as on the formal appearance of the sum.
5. Primitive universality and sharper quaternary classifications
Universality does not imply primitive universality. For a positive definite integral quaternary quadratic form 6, primitive universality means that every positive integer is represented by some vector 7 with 8 (Ju et al., 2022). One paper determines this refinement completely within the Conway–Schneeberger universe of quaternary forms: there are exactly 9 equivalence classes of universal quaternary quadratic forms, exactly 0 equivalence classes of primitively almost universal quaternary quadratic forms, and exactly 1 equivalence classes of primitively universal quaternary quadratic forms (Ju et al., 2022). For the remaining 2 primitively almost universal but not primitively universal classes, the set of positive integers not primitively represented is determined explicitly (Ju et al., 2022).
This result changes the interpretation of universal quaternary sums in the classical quadratic-form setting. A universal quaternary form may represent every positive integer, yet fail to do so primitively for finitely many integers. The paper’s analysis is lattice-theoretic: it uses 3-adic primitive universality, the 4-transformation, ternary core sublattices, class number 5 arguments, and precise congruence control on representations by cores such as 6, 7, and 8 (Ju et al., 2022). A common misconception is therefore that quaternary universality is a single invariant. The primitive classification shows that there are at least three relevant layers: universality, primitive almost universality, and primitive universality.
An adjacent refinement appears for sums of generalized pentagonal numbers. A ternary sum
9
can be almost universal without being universal, and the obstruction is described in terms of primitive spinor exceptions of an associated ternary lattice 0 (Wu et al., 2020). This is not itself a quaternary theory, but it clarifies a mechanism that often disappears or weakens in quaternary settings: after rank 1, local-global regularity becomes substantially stronger.
6. Methods, modularity, and adjacent meanings
Three proof architectures recur across the literature. The first is the escalator tree, inherited from Bhargava’s method and used heavily for mixed polygonal sums: nodes are partial sums, the truant is the least missing integer, and new variables are added until universality is reached (Yang, 2023, Ju et al., 2018, Kane et al., 2018). The second is the reduction of polygonal-number sums to quadratic forms with congruence conditions, followed by genus theory, class-number-2 arguments, or regular ternary-form analysis (Yang, 2023, Ju et al., 2017, Wu et al., 2017). The third is analytic: theta-series decompositions
3
local densities, Eisenstein lower bounds, cusp-form estimates, and Ramanujan theta identities all function as representation-theoretic engines (Thompson, 2016, Yang, 2023, Bulkhali et al., 2024, Bulkhali et al., 18 Jul 2025).
Ramanujan’s theta functions are especially prominent in the most recent quaternary polygonal literature. The specializations
4
encode squares, triangular numbers, generalized pentagonal numbers, and generalized octagonal numbers, respectively, and product identities between them transfer universality from one quaternary sum to another (Bulkhali et al., 2024, Bulkhali et al., 18 Jul 2025). This suggests a shift from isolated classifications toward a transformation theory of universality.
A distinct but mathematically adjacent usage of quaternary universality appears in polynomial optimization. For any non-negative 4-ary quartic form 5, there exist non-negative quadrics 6 and 7 such that 8 is a sum of squares of quartics (Pasechnik, 2015). This is not a universal quaternary sum in the additive-number-theoretic sense, but it preserves the same four-variable geometry and the same emphasis on universal representation by structured quadratic data. It therefore marks a boundary of the term rather than a central instance of it.
Across these settings, the number four is neither merely historical nor merely notational. In some domains it is the exact universal threshold, as in classical four squares and certain polygonal or Gaussian examples (Sidokhine, 2013, Ju et al., 2017). In others it is only one value among several possibilities, as in quaternion rings where the minimal number can be 9, 00, or 01 (Cooke et al., 2016). The modern theory of universal quaternary sums is accordingly best understood not as a single theorem, but as a network of representation problems in which four summands interact with local arithmetic, modular forms, and the structure of the ambient ring.