---
title: 'Sylvester Sums: Theory and Applications'
url: https://www.emergentmind.com/topics/sylvester-sums
type: topic
---

# Sylvester Sums: Theory and Applications

Sylvester sums are a family of constructions named after J. J. Sylvester that occur in several adjacent literatures. In numerical semigroup theory and the Frobenius problem, they are the power sums of the nonrepresentable positive integers; in elimination theory they are the root-symmetric single and double sums that encode resultants and subresultants; and in partition theory the related language of Sylvester waves refers to quasiperiodic components of restricted partition functions. The dominant modern usage concerns the Frobenius set \(\operatorname{NR}(a_1,\dots,a_k)\), where the basic Sylvester sum is \(s(a_1,\dots,a_k)=\sum_{n\in\operatorname{NR}} n\), but contemporary work also studies higher powers, weighted variants, structured multi-generator families, and the classical double-sum formulas attached to two polynomials [2210.17019; 1503.00607; 2512.20398].

## 1. Numerical semigroups, gaps, and the basic Sylvester invariants

Let \(a_1,\dots,a_k\) be positive integers with \(\gcd(a_1,\dots,a_k)=1\). The numerical semigroup they generate is
\[
\langle a_1,\dots,a_k\rangle=\Big\{\sum_{i=1}^k x_i a_i : x_i\in\mathbb{Z}_{\ge 0}\Big\}.
\]
The set of positive integers that are not representable in this form is
\[
\operatorname{NR}(a_1,\dots,a_k)=\{n\in\mathbb{Z}_{>0}:n\notin\langle a_1,\dots,a_k\rangle\}.
\]
Within this framework, the Frobenius number is the largest gap,
\[
g(a_1,\dots,a_k)=\max \operatorname{NR}(a_1,\dots,a_k),
\]
the Sylvester number is the cardinality
\[
n(a_1,\dots,a_k)=\#\operatorname{NR}(a_1,\dots,a_k),
\]
and the Sylvester sum is
\[
s(a_1,\dots,a_k)=\sum_{n\in \operatorname{NR}(a_1,\dots,a_k)} n.
\]
In numerical semigroup theory, the Sylvester number is also the genus [2210.17019].

For two generators, the classical theory is explicit. If \(\gcd(a,b)=1\), then
\[
g(a,b)=(a-1)(b-1)-1,\qquad
n(a,b)=\frac{(a-1)(b-1)}{2},
\]
and Brown–Shiue’s formula gives
\[
s(a,b)=\frac{(a-1)(b-1)(2ab-a-b-1)}{12}.
\]
The higher-power sums
\[
\sum_{n\in\operatorname{NR}(a,b)} n^m,\qquad m=0,1,2,\dots,
\]
are also called Sylvester sums in the two-generator literature. In particular,
\[
\sum_{n\in\operatorname{NR}(a,b)} n^2
=\frac{(a-1)(b-1)\,ab\,(ab-a-b)}{12}
\]
is one of the classical explicit formulas recalled in the recent weighted-sum literature [2105.08274].

## 2. Two-generator theory: power sums, weights, and recursion

For coprime \(a,b\), one standard notation is
\[
S_m(a,b)=\sum_{n\in\operatorname{NR}(a,b)} n^m,
\]
so that \(S_0(a,b)=n(a,b)\) and \(S_1(a,b)=s(a,b)\). Recent work has enlarged this to weighted Sylvester sums
\[
S_m(a,b;\lambda)=\sum_{n\in\operatorname{NR}(a,b)} \lambda^{n-1} n^m,
\]
with \(\lambda\in\mathbb{C}\). The cases \(\lambda=1\) and \(\lambda=-1\) recover, respectively, the classical Sylvester sums and the alternating Sylvester sums \(T_m(a,b)=\sum_{n\in\operatorname{NR}(a,b)}(-1)^n n^m=-S_m(a,b;-1)\) [2105.08274].

The generating-function treatment of these weighted sums factors a polynomial
\[
f(x)=\sum_{n=0}^{ab-a-b}(1-r(n))x^n
\]
as \(f(x)=g(x)h(x)\), where \(r(n)\) is the number of representations of \(n\) as \(sa+tb\) with \(s,t\ge 0\). Differentiation then identifies \(f'(\lambda)\) with \(S_1(a,b;\lambda)\), and higher derivatives yield \(S_m(a,b;\lambda)\). For general \(m\), the resulting formulas are expressed in terms of Apostol–Bernoulli numbers; the singular case \(\lambda^a=1\) is treated separately and leads back to classical Bernoulli numbers [2105.08274].

A second modern approach is recursive and combinatorial. Every \(n\) with \(0\le n\le ab-1\) can be written uniquely as
\[
n=aa_1+bb_1-ab\,\chi_{a_1,b_1},
\]
with \(0\le a_1\le b-1\), \(0\le b_1\le a-1\), where \(\chi_{a_1,b_1}=1\) in the nonrepresentable case and \(0\) in the representable case. Summing powers of \(0,1,\dots,ab-1\) in two ways yields a recursive formula for the Sylvester sums \(S_m(a,b)\), and the same framework gives a criterion for deciding whether a given integer is representable as \(ax+by\) [2507.06692].

These two lines of work are complementary. The generating-function/Apostol–Bernoulli approach produces explicit weighted formulas uniform in \(m\), while the recursive approach derives the unweighted \(S_m(a,b)\) from a direct combinatorial decomposition of the interval \([0,ab-1]\). This suggests a durable bifurcation in the modern theory between analytic and combinatorial normal forms.

## 3. Multi-generator generalizations and Apéry-set formulas

When \(k\ge 3\), closed formulas are rare and typically exist only for special structured families. The general computational framework is the Apéry set with respect to the least generator \(a_1=\min\{a_1,\dots,a_k\}\):
\[
\operatorname{Ape}(A)=\{m_0,\dots,m_{a_1-1}\},
\]
where \(m_i\) is the least nonnegative representable integer congruent to \(i\pmod{a_1}\), with \(m_0=0\). Standard formulas express the Frobenius number, Sylvester number, and Sylvester sum as
\[
g(A)=\max_{0\le i<a_1} m_i-a_1,
\]
\[
n(A)=\frac{1}{a_1}\sum_{i=0}^{a_1-1} m_i-\frac{a_1-1}{2},
\]
\[
s(A)=\frac{1}{2a_1}\sum_{i=0}^{a_1-1} m_i^2-\frac{1}{2}\sum_{i=0}^{a_1-1} m_i+\frac{a_1^2-1}{12}.
\]
For structured families, the main task is therefore to determine \(\operatorname{Ape}(A)\) explicitly and then compute \(\sum m_i\) and \(\sum m_i^2\) [2210.17019].

Weighted sums in more variables admit a parallel Apéry-set description. If
\[
S_\mu^{(\lambda)}(A)=\sum_{n\in \mathrm{NR}(A)} \lambda^n n^\mu,
\]
then the decomposition of \(\mathrm{NR}(A)\) into arithmetic progressions inside each congruence class modulo \(a_1\) reduces the problem to finite exponential–polynomial sums. In this setting the coefficients are expressed with Eulerian numbers when \(\lambda\neq 1\), while Bernoulli numbers govern the unweighted power sums \(\sum_{n\in\mathrm{NR}(A)} n^\mu\) [2101.04298].

Another important structured class is given by compound sequence semigroups. If \(G(A,B)=(g_0,\dots,g_k)\) is a compound sequence arising from a suitable pair \((A,B)\), then the complement \(NR(A,B)\) satisfies a generalized Tuenter identity, and the semigroup is symmetric. In particular,
\[
S_0(A,B)=\frac{F(R(A,B))+1}{2},
\]
and explicit formulas are given for \(S_1(A,B)\), \(S_2(A,B)\), and \(S_3(A,B)\), together with a Bernoulli-number formula for general \(S_m(A,B)\) [1612.04766].

## 4. Explicit formulas for structured families

Arithmetic progressions and almost arithmetic sequences form the most developed class of closed-form examples. For generators
\[
A=\{a,a+d,\dots,a+(k-1)d\},\qquad \gcd(a,d)=1,
\]
explicit formulas are known for the simple Sylvester sum \(s(A)\) and for the weighted sum
\[
s^{(\lambda)}(A)=\sum_{n\in\operatorname{NR}(A)} \lambda^n.
\]
The same methods extend to almost arithmetic sequences \(a,ha+d,\dots,ha+(k-1)d\), to arithmetic sequences with an additional term \(a+Kd\), and to a geometric-like sequence \(a,a+1,a+2,a+2^2,\dots,a+2^k\) [2203.12238].

A particularly rich extension is the family with an initial block of missing terms,
\[
A=\{a,\; a+(K+1)d,\; a+(K+2)d,\dots,a+kd\},
\]
where \(a+d,\dots,a+Kd\) are omitted. Writing
\[
a+K=qk+r,\qquad 0\le r<k,
\]
the formulas for the Apéry set, Frobenius number, Sylvester number, and Sylvester sum split according to the size of \(K\). In the small-gap regime \(1<K\le (k-1)/2\), one has
\[
g(A)=\frac{a(a+K-r)}{k}+(a+K)d-a,
\]
while in the bigger-gap regime \((k-1)/2<K\le (2k-2)/3\) the Frobenius number acquires additional case distinctions in \(r\) and an extra \((K+1)d\)-type shift [2210.17019].

Several special four-generator families collapse to compact floor formulas. For
\[
A=\{a,a+2,a+3,a+4\},
\]
\[
g(a,a+2,a+3,a+4)=\left\lfloor\frac{a+1}{2}\right\rfloor\left\lfloor\frac{a+1}{4}\right\rfloor,
\]
and for
\[
A=\{a,a+3,a+4,a+5\},
\]
\[
g(a,a+3,a+4,a+5)=\left\lfloor\frac{a+1}{2}\right\rfloor\left\lfloor\frac{a+2}{5}\right\rfloor.
\]
The corresponding Sylvester sums and Sylvester numbers are given by explicit piecewise polynomials in \(a\) modulo \(4\) or \(5\); analogous but more involved formulas exist for \(\{a,a+4,a+5,a+6\}\) and \(\{a,a+5,a+6,a+7\}\) [2210.17019].

These families show that the obstruction to closed formulas is not the absence of algebraic structure but the combinatorial complexity of the Apéry set. A plausible implication is that the central difficulty lies in residue-class geometry rather than in the definitions of \(g\), \(n\), and \(s\) themselves.

## 5. Sylvester double sums and elimination theory

A second major meaning of Sylvester sums belongs to elimination theory. Let
\[
f(x)=\prod_{i=1}^m (x-\alpha_i),\qquad
g(x)=\prod_{j=1}^n (x-\beta_j),
\]
and for finite sets \(Y,Z\) write
\[
R(Y,Z)=\prod_{y\in Y}\prod_{z\in Z}(y-z).
\]
Sylvester’s double sums are the root-symmetric polynomials indexed by \(0\le p\le m\), \(0\le q\le n\), built from subsets \(A'\subseteq A\), \(B'\subseteq B\) and the products \(R(A',B')\), \(R(A\setminus A',B\setminus B')\), \(R(A',A\setminus A')\), and \(R(B',B\setminus B')\). Their degree in \(x\) is at most \(d=p+q\), and they satisfy the symmetry
\[
\mathrm{Syl}_{p,q}(A,B)=(-1)^{pq+(m-p)(n-q)}\,\mathrm{Syl}_{q,p}(B,A)
\]
in the simple-root setting [1503.00607].

The fundamental structural fact is that these double sums are equivalent to subresultants and Bézout coefficients. If \(0\le d\le \min\{m,n-1\}\), then
\[
\mathrm{Syl}_{p,q}(A,B)=(-1)^{p(m-d)}\binom{d}{p}\,\mathrm{Sres}_d(f,g).
\]
For larger \(d\), the remaining cases are either zero or linear combinations of a subresultant and a Bézout coefficient times \(f\) or \(g\). Symmetric multivariate Lagrange interpolation and the Exchange Lemma provide a short conceptual route to these identities [1503.00607].

With multiple roots, the original quotient-of-differences formula no longer makes sense because denominators vanish. A generalized definition uses antisymmetrization, generalized Vandermonde determinants, and symmetric multivariate Hermite interpolation. In that setting, double sums still depend, up to an explicit constant, only on \(k+\ell\), and they coincide with subresultants up to an explicit scalar factor [1805.10609].

This elimination-theoretic meaning of Sylvester sums is operational in rational interpolation. In the Cauchy interpolation problem, subresultants and their Bézout coefficients give the interpolant \(A/B\), and Sylvester single-sum formulas yield explicit root-symmetric expressions for the numerator and denominator. In the osculatory case, where multiplicities intervene, determinantal formulas replace the unavailable general root formulas [1211.6895].

## 6. Related notions, applications, and adjacent uses

The term Sylvester also appears in the theory of denumerants and restricted partitions. For a tuple \(A=(a_1,\dots,a_r)\), the Sylvester denumerant
\[
d(t;A)=\#\{(x_1,\dots,x_r)\in\mathbb{Z}_{\ge0}^r:\sum_{j=1}^r a_jx_j=t\}
\]
is a quasi-polynomial in \(t\), and Sylvester decomposed it into waves \(W_j(t;A)\), one for each relevant root-of-unity frequency. Recent work derives explicit formulas for these waves by \(q\)-partial fractions, reciprocal degenerate Bernoulli numbers, and generalized Fourier–Dedekind sums [2104.10989].

A parallel line studies the restricted partition function
\[
W(s,\mathbf{d}^m),
\]
which Sylvester decomposed as
\[
W(s,\mathbf{d}^m)=\sum_j W_j(s,\mathbf{d}^m).
\]
Here \(W_1\) is the polynomial part and the remaining \(W_j\) are quasiperiodic components called Sylvester waves. Explicit expressions are now available as finite sums over Bernoulli polynomials of higher order with periodic coefficients, and also as weighted sums of polynomial terms with shifted arguments [2512.20398].

In algebraic geometry, Sylvester sums of compound sequence semigroup complements determine the genus of certain towers of superelliptic curves and the \(q\)-Weierstrass weight of the unique point at infinity. In particular, if \(P_\infty^k\) is that point, then
\[
w^{(q)}(P_\infty^k)=
\begin{cases}
\dfrac{S_0(A^2,B^2)}{12}-S_0(A,B), & q=1,\\[1ex]
\dfrac{S_0(A^2,B^2)}{12}, & q\ge 2,
\end{cases}
\]
so a Frobenius-set invariant controls higher-order Weierstrass data [1612.04766].

There are also categorical and topological reinterpretations. In the foam-based representation-theoretic setting of iterated wreath products, overlapping foams are used to interpret functors and natural transformations, and the same framework explores a relation between overlapping foams and Sylvester double sums [2107.07845]. This suggests that the term now names not a single invariant but a network of closely related constructions: gap sums in numerical semigroups, subset-symmetric elimination formulas, and quasiperiodic components of partition enumerators.

Source: https://www.emergentmind.com/topics/sylvester-sums