Rademacher’s three-term reciprocity law

The ordinary Dedekind reciprocity law already has two apparently different explanations. One is geometric: a rational line cuts a lattice rectangle into two complementary regions, and the staircases along their common boundary cancel except at the endpoints. The other is analytic: the same staircase information is encoded by cotangent poles, and the residue theorem says that all nontrivial pole contributions combine into one elementary correction at the origin. These are not competing proofs. The finite Fourier transform of the sawtooth function turns the first language into the second: a lattice staircase becomes a cotangent sum, and a boundary correction becomes a Laurent coefficient.

Rademacher’s three-term relation is the cyclic version of this picture. Instead of two reciprocal boundary contributions, there are three. Each gives a Dedekind sum. In the residue proof, they arise from three separate families of poles. The elementary rational expression on the right side comes from the single point where all three cotangent factors are singular, namely the common pole at z=0 . The formula is therefore best understood as a statement that all nonlocal arithmetic contributions are accounted for by three boundary families, while the remaining correction is purely local.

Let a,b,c be pairwise coprime positive integers. Write

\displaystyle ((x)):=\begin{cases}\{x\}-\frac12,&x\notin\mathbb Z,\\ 0,&x\in\mathbb Z.\end{cases}

For the three homogeneous variables, define

\displaystyle s(a,b;c):=\sum_{r=1}^{c-1}\Big(\Big(\frac{ar}{c}\Big)\Big)\Big(\Big(\frac{br}{c}\Big)\Big).

This notation is symmetric in a and b . It is also just the ordinary Dedekind sum in disguise. If \bar b is an inverse of b modulo c , then multiplication by b permutes the nonzero residue classes modulo c , so

\displaystyle s(a,b;c)=s(a\bar b,c).

Here the expression on the right is the usual two-variable Dedekind sum. Rademacher’s relation is

\displaystyle s(a,b;c)+s(b,c;a)+s(c,a;b)=-\frac14+\frac1{12}\Big(\frac{a}{bc}+\frac{b}{ca}+\frac{c}{ab}\Big).

The formula is striking because the left side is arithmetically oscillatory: each summand depends on fractional parts modulo a different denominator. The right side is a completely elementary symmetric rational expression. The residue proof explains this collapse.

The first step is to express the sawtooth function through its finite Fourier transform. Fix c\ge2 , and let n be nonzero modulo c . Put \zeta:=\exp\left(\frac{2\pi i n}{c}\right) . Since \zeta^c=1 and \zeta\ne1 , we have

\displaystyle \sum_{r=1}^{c-1}\zeta^r=-1,\quad \sum_{r=1}^{c-1}r\zeta^r=\frac{c}{\zeta-1}.

Therefore

\displaystyle \begin{aligned} \sum_{r=1}^{c-1} \Big(\Big(\frac rc\Big)\Big)\zeta^r &=\sum_{r=1}^{c-1}\Big(\frac {r}{c}-\frac12\Big)\zeta^r \\ &=\frac1{\zeta-1}+\frac12\ &=\frac{\zeta+1}{2(\zeta-1)} \\ &=-\frac{i}{2}\cot\Big(\frac{\pi n}{c}\Big). \end{aligned}

Thus the finite Fourier transform of the sawtooth values is a cotangent. Applying finite Parseval to the functions r\mapsto((ar/c)) and r\mapsto((br/c)) , and then reindexing by the units a and b modulo c , gives

\displaystyle s(a,b;c)=\frac1{4c}\sum_{r=1}^{c-1}\cot\Big(\frac{\pi ar}{c}\Big)\cot\Big(\frac{\pi br}{c}\Big).

This identity is the bridge between the arithmetic sum and the residue calculation. The two sawtooth factors in the Dedekind sum become two cotangent factors evaluated along a finite rational grid.

Consider the 1 -periodic meromorphic function

\displaystyle F(z):=\cot(\pi az)\cot(\pi bz)\cot(\pi cz).

Take the rectangle with vertical sides \text{Re}(z)=-\varepsilon and \text{Re}(z)=1-\varepsilon , where 0<\varepsilon<1 is chosen small, and horizontal sides \text{Im}(z)=\pm T .

Inside this strip lie the common pole at z=0 and the nonintegral poles

\displaystyle \frac{r}{a},\quad \frac{s}{b},\quad \frac{t}{c},

with 1\le r\le a-1 , 1\le s\le b-1 , and 1\le t\le c-1 . Pairwise coprimality ensures that no two nonzero pole families meet. For example, if r/a=s/b , then br=as . Since (a,b)=1 , this would force a\mid r , contrary to 1\le r<a . Hence every nonzero pole is simple.

The vertical integrals cancel because F(z+1)=F(z) . On the top edge, each cotangent tends to -i as T\to\infty , so F(z)\to(-i)^3=i . The top edge is traversed from right to left, and hence its contribution tends to -i . On the lower edge, each cotangent tends to i , so F(z)\to i^3=-i ; this edge is traversed from left to right, so its contribution also tends to -i . Thus

\displaystyle \lim_{T\to\infty}\int_{\partial R_T}F(z)dz=-2i.

By the residue theorem, the sum of all residues in one period strip is therefore

\displaystyle \sum_{\text{poles in one period strip}}\text{Res} F=-\frac1\pi.

This constant -1/\pi is the analytic source of the eventual -1/4 in Rademacher’s formula. At z=r/a , only the factor \cot(\pi az) is singular, and

\displaystyle \text{Res}_{z=r/a}\cot(\pi az)=\frac1{\pi a}.

Hence

\displaystyle \text{Res}_{z=r/a}F(z)=\frac1{\pi a}\cot\Big(\frac{\pi br}{a}\Big)\cot\Big(\frac{\pi cr}{a}\Big).

Summing over r=1,\dots,a-1 and using the cotangent formula gives

\displaystyle \sum_{r=1}^{a-1}\text{Res}_{z=r/a}F(z)=\frac4\pi s(b,c;a).

By cyclic symmetry,

\displaystyle \sum_{s=1}^{b-1}\text{Res}_{z=s/b}F(z)=\frac4\pi s(c,a;b),\quad \sum_{t=1}^{c-1}\text{Res}_{z=t/c}F(z)=\frac4\pi s(a,b;c).

This is the key analytic dictionary. The three Dedekind sums are not inserted artificially into the proof. They are exactly the residues coming from the three nonzero arithmetic pole families.

All three cotangent factors are singular at z=0 . Their Laurent expansions are

\displaystyle \cot(\pi mz)=\frac1{\pi mz}-\frac{\pi mz}{3}+O(z^3).

To obtain the coefficient of z^{-1} in the product, we choose the linear term from one cotangent factor and the principal terms from the other two. For example, taking the linear term from \cot(\pi az) gives

\displaystyle -\frac{\pi az}{3}\cdot\frac1{\pi bz}\cdot\frac1{\pi cz}=-\frac{a}{3\pi bc}\frac1z.

Adding the three possible choices gives

\displaystyle \text{Res}_{z=0}F(z)=-\frac1{3\pi}\left(\frac{a}{bc}+\frac{b}{ca}+\frac{c}{ab}\right).

This is the conceptual heart of the proof. The rational correction in the reciprocity law comes from one local computation at the common triple pole. Every term a/(bc) , b/(ca) , and c/(ab) records the choice of one cotangent factor from which the linear Laurent coefficient is taken.

Add the three nonzero residue families and the residue at 0 . The period-strip residue identity gives

\displaystyle \frac4\pi\Big(s(a,b;c)+s(b,c;a)+s(c,a;b)\Big)-\frac1{3\pi}\Big(\frac{a}{bc}+\frac{b}{ca}+\frac{c}{ab}\Big)=-\frac1\pi.

Multiplying by \pi/4 and rearranging gives

\displaystyle s(a,b;c)+s(b,c;a)+s(c,a;b)=-\frac14+\frac1{12}\Big(\frac{a}{bc}+\frac{b}{ca}+\frac{c}{ab}\Big).

This proves Rademacher’s three-term reciprocity law.

The classical two-term Dedekind reciprocity law is already contained in the three-term formula. Set a=h , b=k , and c=1 . The sum s(h,k;1) is empty and hence vanishes. The remaining two homogeneous sums become the ordinary sums s(h,k) and s(k,h) . Thus

\displaystyle s(h,k)+s(k,h)=-\frac14+\frac1{12}\Big(\frac{h}{k}+\frac{k}{h}+\frac1{hk}\Big).

The cotangent proof is therefore not based on a product of only two cotangents. The correct kernel is the specialization \cot(\pi hz)\cot(\pi kz)\cot(\pi z). The third factor has no nonzero pole family inside the period strip, but it is essential at the origin. It contributes the 1/(hk) term and makes the origin a triple pole. A product of only two cotangents has no corresponding simple residue at the origin, so it cannot by itself produce the full rational correction in Dedekind reciprocity.

The passage from two terms to three terms is now transparent. Adding a third cotangent factor creates one additional nonzero family of poles, hence one additional Dedekind sum. At the same time, the local Laurent computation at the origin gains one more cyclic contribution. The architecture of the proof does not change.

The residue proof is the Fourier-analytic form of the same cancellation seen in the Carlitz lattice-path proof. For the ordinary two-term law, consider the rational line of slope h/k from (0,0) to (k,h) . The lower staircase has heights \left\lfloor\frac{hr}{k}\right\rfloor , and it may be recorded by C_{k,h}(u,v):=\sum_{r=1}^{k-1}u^{r-1}v^{\lfloor hr/k\rfloor}. The transposed staircase is recorded by C_{h,k}(v,u) . Their oriented horizontal and vertical edges telescope:

\displaystyle (u-1)C_{k,h}(u,v)+(v-1)C_{h,k}(v,u)=u^{k-1}v^{h-1}-1.

Every interior lattice vertex appears once with positive sign and once with negative sign. Only the two endpoint contributions remain. After one shears the variables so that one coordinate measures horizontal position and the other measures vertical error relative to the rational line, the centered mixed quadratic coefficient in the Taylor expansion becomes the Dedekind sum. The endpoint expression on the right produces the rational correction in the reciprocity law. The cotangent calculation packages exactly the same information differently. The finite Fourier transform changes the sawtooth function into a cotangent. Thus the cotangent poles are the harmonic-analytic avatars of the periodic staircase data. The nonzero pole families correspond to the nontrivial boundary arithmetic, while the Laurent expansion at z=0 is the analytic counterpart of the endpoint term in the Carlitz identity. In both languages, reciprocity is what remains after all interior contributions cancel.

For the three-term relation, the corresponding geometry is a cyclic cone or fan decomposition. Instead of two rational regions sharing one staircase boundary, there are three rational sectors meeting at a common vertex. Each sector carries a two-dimensional lattice-boundary correction, and the associated homogeneous Dedekind sum is one of s(a,b;c) , s(b,c;a) , or s(c,a;b) . The internal rays or faces cancel when the sectors are assembled. What remains is the common vertex and the three exterior edge contributions. Their local expansion gives the same elementary expression

\displaystyle -\frac14+\frac1{12}\Big (\frac{a}{bc}+\frac{b}{ca}+\frac{c}{ab}\Big).

Thus the three cotangent pole families are the analytic shadow of three cyclic lattice-boundary corrections, and the triple pole at the origin is the analytic shadow of their common rational vertex.

The shifted Dedekind–Rademacher identities fit the same pattern. Translating a rational line moves the starting point of its staircase off the lattice. The oriented-edge cancellation still takes place, but the endpoints are now fractional translates of lattice vertices. The corresponding shifted Carlitz generating function therefore has several boundary terms rather than the single endpoint difference in the unshifted identity. After a sheared exponential substitution, its mixed quadratic coefficient becomes a shifted Dedekind–Rademacher sum. The translated boundary terms expand in periodic Bernoulli polynomials: first-order pieces produce B_1 corner corrections, while second-order pieces produce the B_2 terms.

Rademacher’s three-term relation should be viewed as the unshifted cyclic version of this broader principle. Whether one uses cotangent residues, Carlitz polynomials, translated cones, or periodic Bernoulli functions, the same mechanism is at work: local lattice data live on rational boundaries, interior pieces cancel under a reciprocal decomposition, and the remaining common vertex produces the explicit rational term.

Leave a comment