Dedekind Sum: Theory and Applications
- 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 , 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 -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 and , the sawtooth function is
and the classical Dedekind sum is
It is standard to use the normalized sum
with called the modulus and the argument (Girstmair, 2021).
Equivalent formulations use the first Bernoulli function , or the fractional-part function 0. In particular, the classical theory repeatedly exploits the periodicity 1, so the argument may be treated modulo 2, and the symmetry 3 (Girstmair, 2013). Some authors also record the conventions 4 and 5, which make reciprocity formulas cleaner (Girstmair, 2016).
The normalization by 6 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 7, then translates back to 8 only at the end.
2. Reciprocity and modular origin
The classical reciprocity law states that for coprime positive integers 9 and 0,
1
Equivalently,
2
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 3-function
4
For 5, one has
6
where
7
Comparison of the imaginary part as 8 varies recovers the reciprocity law (Burrin, 2018).
This modular interpretation is reinforced by Kronecker’s first limit formula, which links logarithms of 9-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 0, and equality modulo a larger lattice such as 1 or 2. For the normalized sums, Girstmair proved the sharp criterion
3
for integers 4 coprime to 5 (Girstmair, 2013). The same congruence is the criterion for equal fractional parts: 6 and the number of such 7 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 8 is equivalent to deciding whether a single larger Dedekind sum takes a specific value. If 9 is the unique integer with 0 and 1, then
2
The same paper constructs infinite sequences of pairwise equal Dedekind sums and studies the multiplicity
3
When 4 is square-free, it is known that 5, and the paper shows that every power of two up to 6 actually occurs; in particular, if the primes 7, then one obtains examples with 8 for any 9 (Girstmair, 2021).
Congruence refinements sharpen this picture further. Tsukerman gave a necessary and sufficient condition for
0
and Girstmair showed that when 1, the same condition is equivalent to
2
The restriction 3 cannot be dropped in a straightforward way, and the same work derives companion congruences for the alternating sum 4 of the partial quotients in the continued fraction of 5 (Girstmair, 2016).
A combinatorial reformulation uses inversion numbers. If 6 is the permutation of 7 induced by multiplication by 8, then
9
Hence equal Dedekind sums are equivalent to equal inversion numbers, and the inversion polynomial
0
packages the multiplicity structure for fixed modulus 1 (Chen et al., 2014).
4. Extremal values and continued-fraction asymptotics
The extremal theory asks which arguments 2 make 3 largest for a fixed modulus 4. For a fixed positive integer 5, Girstmair proved that for all sufficiently large 6 with 7, there is an explicitly described set of residue classes
8
such that
9
These exceptional classes are precisely those that can be written
0
For 1 outside this set, one has 2 once 3 is sufficiently large (Girstmair, 2016).
The proof combines reciprocity with Farey approximation. Reciprocity gives
4
A Farey-approximation lemma yields, for general 5,
6
where 7 is a small denominator and 8. Large values therefore occur only when the product 9 is small. This explains the linear growth of extreme values in 0, in contrast with the statement that the average size of 1 grows like 2 (Girstmair, 2016).
Continued fractions govern a second asymptotic regime, namely Dedekind sums evaluated along convergents to a fixed real quadratic irrational 3. If 4 are the regular convergents and 5 the negative-regular convergents, then the normalized sums 6 and 7 fall into three cases determined by explicit period data. Writing 8 and 9 for the corresponding period sums, one has: 0
1
2
In the bounded case there are finitely many cluster points 3 and 4, all pairwise distinct within their respective families, and coincidences between the two families occur exactly at positions with 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 6, then there exists an infinite sequence of coprime pairs 7 with 8 such that
9
The construction passes from the continued fraction of 00 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 01 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 02, Girstmair studied the numerators 03 for which 04 occurs as a value of 05. The details state that if
06
then for every integer 07 there exists 08 with
09
Thus, once one numerator occurs, the entire residue class modulo 10 occurs as well, reducing the classification problem to finitely many residue classes for each 11 (Girstmair, 2016).
Computations reported there for 12 identify congruence restrictions on admissible numerators. The details state, for example, that if 13 then 14, and that for odd 15 there are further congruence conditions modulo 16 or 17 depending on 18 and whether 19 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 20, whose symmetry
21
reflects the relation 22 (Chen et al., 2014).
6. Generalizations: lattices, characters, and higher weight
One major direction replaces 23 by a non-cocompact lattice 24. In this setting Dedekind symbols are defined on double cosets 25 using a cocycle extracted from a Kronecker-limit-type function, and they recover the classical Dedekind sum when 26 (Burrin, 2015). These symbols become equidistributed modulo 27 as the lower-left entry 28 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
29
represents the Euler class, and a splitting 30 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 31, attached to primitive Dirichlet characters 32 and newform Eisenstein series. Corbett and Young show that these sums are rarely substantially larger than 33: if
34
then
35
At the same time, explicit arithmetic progressions produce values of linear size in 36, 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 37, the newform sum restricts to a genuine group homomorphism
38
where 39 is the number field generated by the character values, and its image is a full-rank lattice 40 (Knight et al., 12 Mar 2025). The paper proves
41
and, in the quadratic case with odd conductors 42, obtains stronger integral containment results. It also records the “Two-Conjecture” that for quadratic characters one should have
43
A generalized version predicts 44 whenever 45 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 46 admit a finite-sum formula involving periodic Bernoulli polynomials 47, satisfy a Fricke reciprocity law, and define quantum modular forms of weight 48 on 49 (Tranbarger, 19 Dec 2025). The same work reports strong divisibility patterns for normalized values 50, 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
51
and derives asymptotic formulas in terms of the partial quotients of 52 (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-53, level-54 prototype of a broad reciprocity framework in arithmetic and automorphic theory.