Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dedekind Sum: Theory and Applications

Updated 6 July 2026
  • Dedekind sum is an arithmetic function defined using the sawtooth (first periodic Bernoulli) function, central to modular forms and reciprocity laws.
  • It exhibits symmetric and congruence properties, with applications in computing extreme values, continued fraction asymptotics, and distribution analysis.
  • Generalizations extend to non-cocompact lattices, character-twisted sums, and higher weight analogues, forming a broad reciprocity framework in automorphic theory.

A Dedekind sum is a classical arithmetic sum attached to a pair of coprime integers and defined from the sawtooth, or first periodic Bernoulli, function. In normalized form S(a,b)=12s(a,b)S(a,b)=12\,s(a,b), Dedekind sums occupy a central place in the theory of modular forms and the arithmetic of cyclotomic fields, arise from the transformation law of the logarithm of the Dedekind η\eta-function, and extend naturally to Dedekind symbols for non-cocompact lattices and to character-twisted sums attached to Eisenstein series on congruence subgroups (Burrin, 2018, Corbett et al., 2024). Modern work studies their reciprocity laws, equality and congruence phenomena, extremal growth, continued-fraction asymptotics, distribution, and higher-weight generalizations (Girstmair, 2016).

1. Classical definition and normalization

For coprime integers aZa\in \mathbb Z and bNb\in \mathbb N, the sawtooth function is

((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}

and the classical Dedekind sum is

s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).

It is standard to use the normalized sum

S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),

with bb called the modulus and aa the argument (Girstmair, 2021).

Equivalent formulations use the first Bernoulli function B1(x)B_1(x), or the fractional-part function η\eta0. In particular, the classical theory repeatedly exploits the periodicity η\eta1, so the argument may be treated modulo η\eta2, and the symmetry η\eta3 (Girstmair, 2013). Some authors also record the conventions η\eta4 and η\eta5, which make reciprocity formulas cleaner (Girstmair, 2016).

The normalization by η\eta6 is not cosmetic. It is the scale at which reciprocity, congruence, denominator, and equal-value questions take their simplest arithmetic form. Much of the later literature formulates structural problems directly for η\eta7, then translates back to η\eta8 only at the end.

2. Reciprocity and modular origin

The classical reciprocity law states that for coprime positive integers η\eta9 and aZa\in \mathbb Z0,

aZa\in \mathbb Z1

Equivalently,

aZa\in \mathbb Z2

This identity is one of the defining structural facts of the subject and, together with periodicity, allows computation of Dedekind sums by the Euclidean algorithm (Burrin, 2016).

The modular origin of the reciprocity law is the transformation behavior of the Dedekind aZa\in \mathbb Z3-function

aZa\in \mathbb Z4

For aZa\in \mathbb Z5, one has

aZa\in \mathbb Z6

where

aZa\in \mathbb Z7

Comparison of the imaginary part as aZa\in \mathbb Z8 varies recovers the reciprocity law (Burrin, 2018).

This modular interpretation is reinforced by Kronecker’s first limit formula, which links logarithms of aZa\in \mathbb Z9-values to constant terms of Eisenstein-series expansions. In the classical setting, Dedekind sums therefore measure the defect between modular transformation and simple algebraic scaling. A recurring theme in later work is that generalized Dedekind sums arise whenever a comparable transformation law or cocycle is extracted from an Eisenstein series or modular-symbol construction.

3. Equality, congruences, and arithmetic classification

A basic distinction in the literature is between exact equality of Dedekind sums, equality modulo bNb\in \mathbb N0, and equality modulo a larger lattice such as bNb\in \mathbb N1 or bNb\in \mathbb N2. For the normalized sums, Girstmair proved the sharp criterion

bNb\in \mathbb N3

for integers bNb\in \mathbb N4 coprime to bNb\in \mathbb N5 (Girstmair, 2013). The same congruence is the criterion for equal fractional parts: bNb\in \mathbb N6 and the number of such bNb\in \mathbb N7 can be counted exactly by reducing to prime powers and applying the Chinese remainder theorem (Girstmair, 2013).

Exact equality is subtler. Girstmair showed that deciding whether bNb\in \mathbb N8 is equivalent to deciding whether a single larger Dedekind sum takes a specific value. If bNb\in \mathbb N9 is the unique integer with ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}0 and ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}1, then

((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}2

The same paper constructs infinite sequences of pairwise equal Dedekind sums and studies the multiplicity

((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}3

When ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}4 is square-free, it is known that ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}5, and the paper shows that every power of two up to ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}6 actually occurs; in particular, if the primes ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}7, then one obtains examples with ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}8 for any ((x))={xx12,xZ, 0,xZ,((x))= \begin{cases} x-\lfloor x\rfloor-\tfrac12,&x\notin\mathbb Z,\ 0,&x\in\mathbb Z, \end{cases}9 (Girstmair, 2021).

Congruence refinements sharpen this picture further. Tsukerman gave a necessary and sufficient condition for

s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).0

and Girstmair showed that when s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).1, the same condition is equivalent to

s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).2

The restriction s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).3 cannot be dropped in a straightforward way, and the same work derives companion congruences for the alternating sum s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).4 of the partial quotients in the continued fraction of s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).5 (Girstmair, 2016).

A combinatorial reformulation uses inversion numbers. If s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).6 is the permutation of s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).7 induced by multiplication by s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).8, then

s(a,b)=k=1b1( ⁣(kb) ⁣)( ⁣(akb) ⁣).s(a,b)=\sum_{k=1}^{b-1}\Bigl(\!\bigl(\tfrac{k}{b}\bigr)\!\Bigr)\, \Bigl(\!\bigl(\tfrac{ak}{b}\bigr)\!\Bigr).9

Hence equal Dedekind sums are equivalent to equal inversion numbers, and the inversion polynomial

S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),0

packages the multiplicity structure for fixed modulus S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),1 (Chen et al., 2014).

4. Extremal values and continued-fraction asymptotics

The extremal theory asks which arguments S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),2 make S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),3 largest for a fixed modulus S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),4. For a fixed positive integer S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),5, Girstmair proved that for all sufficiently large S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),6 with S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),7, there is an explicitly described set of residue classes

S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),8

such that

S(a,b)=12s(a,b),S(a,b)=12\,s(a,b),9

These exceptional classes are precisely those that can be written

bb0

For bb1 outside this set, one has bb2 once bb3 is sufficiently large (Girstmair, 2016).

The proof combines reciprocity with Farey approximation. Reciprocity gives

bb4

A Farey-approximation lemma yields, for general bb5,

bb6

where bb7 is a small denominator and bb8. Large values therefore occur only when the product bb9 is small. This explains the linear growth of extreme values in aa0, in contrast with the statement that the average size of aa1 grows like aa2 (Girstmair, 2016).

Continued fractions govern a second asymptotic regime, namely Dedekind sums evaluated along convergents to a fixed real quadratic irrational aa3. If aa4 are the regular convergents and aa5 the negative-regular convergents, then the normalized sums aa6 and aa7 fall into three cases determined by explicit period data. Writing aa8 and aa9 for the corresponding period sums, one has: B1(x)B_1(x)0

B1(x)B_1(x)1

B1(x)B_1(x)2

In the bounded case there are finitely many cluster points B1(x)B_1(x)3 and B1(x)B_1(x)4, all pairwise distinct within their respective families, and coincidences between the two families occur exactly at positions with B1(x)B_1(x)5 (Girstmair, 2014).

These results place Dedekind sums within the fine periodic combinatorics of continued fractions. The large-value theorem describes extremality for fixed modulus, while the quadratic-irrational theory describes asymptotic patterns along infinite continued-fraction trajectories.

5. Recurrence of values and distribution

A striking multiplicity theorem states that every rational value taken by a normalized Dedekind sum recurs infinitely often with unbounded denominators. If B1(x)B_1(x)6, then there exists an infinite sequence of coprime pairs B1(x)B_1(x)7 with B1(x)B_1(x)8 such that

B1(x)B_1(x)9

The construction passes from the continued fraction of η\eta00 to a purely periodic quadratic irrational and then uses a lemma asserting that Dedekind sums of certain convergents are constant along an arithmetic progression of indices (Girstmair, 2017).

This theorem does not imply density of denominators. The same source notes that the denominators η\eta01 produced by the construction grow exponentially in the index, so the achieved denominators are “thin”; in special situations one can do better, but the general density question remains open (Girstmair, 2017). The result nevertheless shows that no rational value of a normalized Dedekind sum can occur only finitely often.

For fixed denominator η\eta02, Girstmair studied the numerators η\eta03 for which η\eta04 occurs as a value of η\eta05. The details state that if

η\eta06

then for every integer η\eta07 there exists η\eta08 with

η\eta09

Thus, once one numerator occurs, the entire residue class modulo η\eta10 occurs as well, reducing the classification problem to finitely many residue classes for each η\eta11 (Girstmair, 2016).

Computations reported there for η\eta12 identify congruence restrictions on admissible numerators. The details state, for example, that if η\eta13 then η\eta14, and that for odd η\eta15 there are further congruence conditions modulo η\eta16 or η\eta17 depending on η\eta18 and whether η\eta19 is an odd square (Girstmair, 2016). The same paper formulates a conjectural complete classification based on these patterns.

At the level of distribution, Dedekind sums are described as arithmetic sums with values uniformly distributed on the unit interval, and Vardi’s equidistribution theorem is recovered and extended in the setting of Dedekind symbols for lattices (Burrin, 2015). A combinatorial encoding of fixed-modulus multiplicities is given by the inversion polynomial η\eta20, whose symmetry

η\eta21

reflects the relation η\eta22 (Chen et al., 2014).

6. Generalizations: lattices, characters, and higher weight

One major direction replaces η\eta23 by a non-cocompact lattice η\eta24. In this setting Dedekind symbols are defined on double cosets η\eta25 using a cocycle extracted from a Kronecker-limit-type function, and they recover the classical Dedekind sum when η\eta26 (Burrin, 2015). These symbols become equidistributed modulo η\eta27 as the lower-left entry η\eta28 grows, and the proof proceeds by relating exponential sums of Dedekind symbols to Selberg–Kloosterman sums and then applying bounds of Goldfeld–Sarnak (Burrin, 2015).

A cohomological formulation interprets generalized Dedekind sums through the Euler class. Petersson’s cocycle

η\eta29

represents the Euler class, and a splitting η\eta30 of the corresponding central extension yields reciprocity laws for Dedekind symbols attached to arbitrary cofinite Fuchsian groups (Burrin, 2016). In the case of Hecke triangle groups, this machinery produces an explicit continued-fraction formula analogous to Hickerson’s formula in the classical case (Burrin, 2016). Survey work emphasizes that such Dedekind symbols also occur for non-arithmetic groups and connect reciprocity to cocycle rigidity and rationality phenomena (Burrin, 2018).

A second major direction is the newform Dedekind sum η\eta31, attached to primitive Dirichlet characters η\eta32 and newform Eisenstein series. Corbett and Young show that these sums are rarely substantially larger than η\eta33: if

η\eta34

then

η\eta35

At the same time, explicit arithmetic progressions produce values of linear size in η\eta36, so the theory displays a sharp contrast between rare extremal behavior and typical polylogarithmic size (Corbett et al., 2024).

The image of the generalized Dedekind sum also has an arithmetic structure. For primitive characters η\eta37, the newform sum restricts to a genuine group homomorphism

η\eta38

where η\eta39 is the number field generated by the character values, and its image is a full-rank lattice η\eta40 (Knight et al., 12 Mar 2025). The paper proves

η\eta41

and, in the quadratic case with odd conductors η\eta42, obtains stronger integral containment results. It also records the “Two-Conjecture” that for quadratic characters one should have

η\eta43

A generalized version predicts η\eta44 whenever η\eta45 is quadratic (Knight et al., 12 Mar 2025).

Higher-weight analogues arise from period integrals of holomorphic Eisenstein series attached to character pairs. The resulting sums η\eta46 admit a finite-sum formula involving periodic Bernoulli polynomials η\eta47, satisfy a Fricke reciprocity law, and define quantum modular forms of weight η\eta48 on η\eta49 (Tranbarger, 19 Dec 2025). The same work reports strong divisibility patterns for normalized values η\eta50, with computational evidence in small conductor and weight.

Other generalizations replace the first Bernoulli function by higher Bernoulli, Euler, or poly-Bernoulli data. Borda studies inhomogeneous generalized Dedekind sums

η\eta51

and derives asymptotic formulas in terms of the partial quotients of η\eta52 (Borda, 2016). Apostol-type poly-Dedekind sums, as well as poly-Dedekind type DC sums built from poly-Euler functions, retain reciprocity relations of the same general form as the classical theory (Kim et al., 2020, Ma et al., 2020).

Across these variants, the recurring structural features are reciprocity, cocycle or modular-symbol interpretations, strong arithmetic constraints on images or values, and continued-fraction control of size. This suggests that the classical Dedekind sum is best understood not as an isolated special function, but as the weight-η\eta53, level-η\eta54 prototype of a broad reciprocity framework in arithmetic and automorphic theory.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Dedekind Sum.