Logo
Overview
[MIT] Putnam Study Group

[MIT] Putnam Study Group

Mard Mard
October 22, 2025
10 min read
index

30 days Spent on Solving MIT problem

This is one of the hardest problems from MIT Putnam practice group. And It really is.

Here’s some opinion that i had after solving this problem

Would i be able to solve it in Putnam Exam??

Heck no, I spent 5 days solving this, with help of Internet. I think i wont be even be able to get into the exam room because i would end up just sleeping the whole day and rott in bed too lol.

Well with this idea in mind, lets try to get into this problem.

[5] Let (n7)\left(\frac{n}{7}\right) denote the Legendre symbol. Specifically,

(n7)={0,n0(mod7)1,n1,2,4(mod7)1,n3,5,6(mod7).\left(\frac{n}{7}\right) = \begin{cases} 0, & n \equiv 0 \pmod 7 \\ 1, & n \equiv 1, 2, 4 \pmod 7 \\ -1, & n \equiv 3, 5, 6 \pmod 7. \end{cases}

Show that

2477π/3π/2logtant+7tant7dt=n1(n7)1n2.\frac{24}{7\sqrt{7}} \int_{\pi/3}^{\pi/2} \log\left|\frac{\tan t + \sqrt{7}}{\tan t - \sqrt{7}}\right| dt = \sum_{n\ge1} \left(\frac{n}{7}\right) \frac{1}{n^2}.

The main point of this exercise is to give an example of an explicit identity that can be computed to any degree of accuracy but which is only conjecturally true.

Problems are marked by the following difficulty ratings.

[1] Easy. most students should be able to sovle it.
[2] Somewhat difficult or tricky. Many students should be able to sovle it.
[3] Difficult. only a few students should be able to solve it, but those who like a challenge
might want to give it a try.
[4] Horrendously difficult. We don't really expect anoyone to solve it, but those who like a
challenge might want to give it a try.
[5] Unsolved.

we can change the tan into sin yes yes yes and then we can do gaussian sum. Clausian derivative???? We can use Clausen-dilog identity

These were the initial thought, but let’s dive deeper!

Fourier Series LHS

We will takle the LHS first.

For LHS we can clean up the log using

β=arctan(7)    tanβ=7\beta = \arctan(\sqrt{7}) \implies \tan\beta = \sqrt{7}

and then we can expand with

log(2sinx)=cos(2nx)n\log \left(2 \sin x \right) = - \sum \frac{\cos(2nx)}{n}

integrate term-by-term over [π/3,π/2][\pi / 3, \pi / 2] to get a series

sin(2nβ)[(1)ncos(2πn/3)]/n2\sum \sin(2n \beta) \cdot [(-1)^n - \cos(2 \pi n/3)] / n^2

Set β=arctan7\beta = arctan \sqrt{7}

tant+7tant7=sin(t+β)sin(tβ)\frac{\tan t + \sqrt{7}}{\tan t - \sqrt{7}} = \frac{\sin(t + \beta)}{sin(t - \beta)}

Using

log2sinx=n1cos(2nx)n\log \left| 2 \sin x \right| = - \sum_{n \ge 1} \frac{\cos(2nx)}{n}

We can see that β(π/3,π/2)\beta \in (\pi / 3, \pi / 2) so integrand has a logarithmic singularity at t=βt = \beta but this is integrable.

βπ/2logsin(t+β)sin(tβ)dt+βπ/2logsin(t+β)sin(tβ)dt\int_{\beta}^{\pi/2} \log \left|{\frac{\sin(t+\beta)}{\sin(t-\beta)}} \right|dt + \int_{\beta}^{\pi/2} \log \left| \frac{\sin(t+\beta)}{\sin(t-\beta)}\right|dt

Each subinterval [π/3,βε][\pi/3, \beta - \varepsilon] and [β+ε,π/2][\beta + \varepsilon, \pi / 2] both t+βt + \beta and tβ\left| t - \beta \right| lies on a compact subset of (0,π)(0, \pi) which is the region where the Fourier series for log(2sinx)\log(2 \sin x) is convergent uniformly.

Fourier Expansion

like we mentioned above, subintervals lies on a compact subset which is also the region where Fourier series is uniformly convergent. So we can use log(2sinx)\log (2 \sin x) to integrate term by term.

For 0<x<π0 \lt x \lt \pi we have this famous expansion

log2sinx=n1cos(2nx)n\log \left| 2 \sin x \right|= - \sum_{n \ge 1} \frac{\cos(2nx)}{n}

So,

logsin(t+β)sin(tβ)=log(2sin(t+β))log(2sin(tβ))\log \left|{\frac{\sin(t+\beta)}{\sin(t-\beta)}} \right| = \log(2 \sin(t + \beta)) - log(2 \left| sin (t - \beta) \right|) n11n(cos(2n(t+β))cos(2n(tβ))-\sum_{n \ge 1} \frac{1}{n} \left(\cos(2n(t + \beta)) - \cos(2n(t - \beta) \right)

the log2\log 2 cancels out and then we use this identity

cos(A)cos(B)=2sin(A+B2)sin(AB2)\cos(A) - \cos(B) = -2 \sin \left(\frac{A + B}{2} \right) \sin\left(\frac{A - B}{2} \right)

To our case which A is 2n(t+β)2n(t + \beta) and B is 2n(tβ)2n(t - \beta) to get

cos(2n(t+β))cos(2n(tβ))=2sin(2nt)sin(2nβ)\cos(2n(t + \beta)) - \cos(2n(t - \beta)) = -2 \sin(2nt) \sin(2n\beta)

And

logsin(t+β)sin(tβ)=2n1sin(2nβ)nsin(2nt)\log \left| \frac{\sin(t + \beta)}{\sin (t - \beta)} \right| = 2 \sum_{n \ge 1} \frac{\sin (2n \beta)}{n} \sin(2nt)

![[Pasted image 20251223040308.png]]

We can and then integrate over [π/3,π/2][ \pi / 3, \pi / 2] and term by term we can justify using the uniform convergence on the split intervals and letting ε0\varepsilon \rightarrow 0, this dominated convergence works because the partial sums are bounded and also because original integrand was integrable.

I=2n1sin(2nβ)nπ/2π/3sin(2nt)dtI = 2 \sum_{n \ge 1} \frac{\sin ( 2n \beta)}{n} \int_{\pi/2}^{\pi/3} \sin (2nt) dt

Integrate!

π/2π/3sin(2nt)dt=[cos(2nt)2n]π/3π/2=cos(2πn3)cos(nπ)2n=cos(2πn3)(1)n2n\int_{\pi/2}^{\pi/3} \sin (2nt) dt = \left[ - \frac{\cos(2nt)}{2n} \right]^{\pi / 2}_{\pi / 3} = \frac{\cos(\frac{2\pi n}{3}) - \cos(n \pi)}{2n} = \frac{\cos(\frac{2 \pi n}{3}) - (-1)^n}{2n}

So you get this series for the integral

I=n1sin(2nβ)n2(cos2πn3(1)n)I = \sum_{n \ge 1} \frac{\sin(2n \beta)}{n^2} \left(\cos \frac{2 \pi n}{3} - (-1)^n\right)

This was where i got stuck… But this problem was in my dreams and took quite a while to get a hint from llm. But this was the place where we can change into Calusen perspective

Combination of Clausen functions, which can be defined by

Cl2(θ)=n1sin(nθ)n2Cl_2(\theta) = \sum_{n \le 1} \frac{\sin(n \theta)}{n^2}

We can use this product to sum formulas and package the integral we got above above.

I=12[Cl2(2β+2π3)+Cl2(2β2π3)Cl2(π+2β)Cl2(π2β)]I = \frac{1}{2} \left[ Cl_2 \left(2 \beta + \frac{2\pi}{3} \right) + Cl_2 \left( 2 \beta - \frac{2\pi}{3} \right) - Cl_2(\pi + 2\beta) - Cl_2 \left( \pi - 2\beta \right) \right]

Gauss Sums n Dilogarithms

So we will now tackle right hand side

S=n1X(n)n2=L(2,X)S = \sum_{n \ge 1} \frac{\mathcal{X}(n)}{n^2} = L(2, \mathcal{X})

This is a Dirichlet L value. To do this, we have to change this quite “bumpy” function X(n)\mathcal{X}(n) to smooth exponentials, and we can do this using Gauss sum.

Let ζ=e2πi/7\zeta = e^{2 \pi i / 7} We can define the Gauss sum

τ(X)=a=17X(a)ζa\tau (\mathcal{X}) = \sum^{7}_{a=1} \mathcal{X}(a) \zeta ^a

We need two specific facts from analytic number theory to finish off. so I will bring out the “Evaluation of the Quadratic Gauss Sum” by Murty & Pathak for these

Fact 1 Twist Identity

In Murty-Pathak, they define the quadratic Gauss sum G(2)=j=0n1e2πij2/2G(2) = \sum^{n-1}_{j=0} e^{2 \pi i j^2 /2}. They show that for a prime pp. this can be also rewritten as a sum involving Legendre symbols, which is equal to our τ(X)\tau(\mathcal{X}) The Lemma 4.1 shows this

a=0p1X(a)ζan=X(n)τ(X)(Lemma 4.1)\sum^{p-1}_{a=0} \mathcal{X}(a) \zeta^{an} = \mathcal{X}(n) \tau(\mathcal{X}) \tag{Lemma 4.1}

This makes us easier to allow to write X(n)\mathcal{X}(n) as Fourier coefficient

X(n)=1τ(X)a=16X(a)ζan\mathcal{X}(n) = \frac{1}{\tau(\mathcal{X})} \sum^6_{a=1} \mathcal{X}(a) \zeta^{an}

Fact 2 Evaluation of the Sum

We need to get the value of τ(X)\tau(\mathcal{X}). The Theorm 1.1 in Murty-Pathak states that for n=3(mod4)n = 3 (\mod 4) the quadratic Gauss sum is purely imaginary with magnitude of n\sqrt{n} so for n=7n=7

τ(X)=i7(Theorm 1.1)\tau(\mathcal{X}) = i\sqrt{7} \tag{Theorm 1.1}

Since we know these facts, we can finally attempt to turn this series into dilogarithms

We can substitute 33 into our sum SS

S=n11n2[1τ(X)a=16X(a)ζan]S = \sum_{n \ge 1} \frac{1}{n^2} \left[ \frac{1}{\tau\mathcal(X)} \sum^6_{a=1} \mathcal{X}(a)\zeta^{an} \right]

and then we swap the summation order to find our dilogarithm we can use our handy Spence function Li2(z)=zn/n2\operatorname{Li}_2(z) = \sum z^n/n^2 S=1τ(χ)a=16χ(a)n1(ζa)nn2=1i7a=16χ(a)Li2(ζa).S = \frac{1}{\tau(\chi)} \sum_{a=1}^{6} \chi(a) \sum_{n\ge1} \frac{(\zeta^a)^n}{n^2} = \frac{1}{i\sqrt{7}} \sum_{a=1}^{6} \chi(a) \operatorname{Li}_2(\zeta^a).

Dilog \to Clausen

To get back to real numbers, pair the terms aa and 7a7-a Note that we have χ(7a)=χ(a)=χ(a)\chi(7-a) = \chi(-a) = -\chi(a) and ζ7a=ζˉa\zeta^{7-a} = \bar{\zeta}^a

χ(a)Li2(ζa)+χ(7a)Li2(ζ7a)=χ(a)[Li2(ζa)Li2(ζˉa)]=χ(a)[2i(Li2(ζa))]=2iχ(a)Cl2(2πa7)\begin{aligned} \chi(a)\operatorname{Li}_2(\zeta^a) + \chi(7-a)\operatorname{Li}_2(\zeta^{7-a}) &= \chi(a) \left[ \operatorname{Li}_2(\zeta^a) - \operatorname{Li}_2(\bar{\zeta}^a) \right] \\ &= \chi(a) \left[ 2i \Im(\operatorname{Li}_2(\zeta^a)) \right] \\ &= 2i \chi(a) \mathrm{Cl}_2\left(\frac{2\pi a}{7}\right) \end{aligned}

Summing for a=1,2,3a=1, 2, 3 and substituting into our expression for SS

S=1i7a=132iχ(a)Cl2(2πa7)S = \frac{1}{i\sqrt{7}} \sum_{a=1}^{3} 2i \chi(a) \mathrm{Cl}_2\left(\frac{2\pi a}{7}\right)

The ii and 1/i1/i cancel perfectly so we get this hot answer

L(2,χ)=27(Cl2(2π7)+Cl2(4π7)Cl2(6π7))\boxed{ L(2, \chi) = \frac{2}{\sqrt{7}} \left( \mathrm{Cl}_2\left(\frac{2\pi}{7}\right) + \mathrm{Cl}_2\left(\frac{4\pi}{7}\right) - \mathrm{Cl}_2\left(\frac{6\pi}{7}\right) \right) }

Calculation in Python

Too lazy to do calculation by hand

import math 
 
def legendreballs(n): 
	r = n % 7 
	if r == 0: return 0 
	return 1 if r in (1,2,4) else -1
	
def RHS(N=200000):
	return sum(legendreballs(n)/(n*n) for n in range (1, N+1))
	
 
# numerical quadrature 
def LHS(M=200000): 
	a, b = math.pi/3, math.pi/2 
	h = (b-a)/M 
	s = 0.0 
	
	for k in range(M+1): 
		t = a + k*h
		if k == 0 or k == M: w = 0.5 
		else: w = 1.0 
		val = abs((math.tan(t) + math.sqrt(7.0))/(math.tan(t)-math.sqrt(7.0)))
		s += w*math.log(val) 
	integral = h*s 
	return (24.0/(7.0*math.sqrt(7.0)))*integral
 
print(LHS(), RHS()) 

uhh this will gives us

1.1519281128932546 1.151925470544491

hm can’t we use mpmath and split at cusp?

import mpmath as mp
mp.mp.dps = 50 
 
chi = {1:1, 2:1, 3:-1, 4:1, 5:-1, 6:-1} 
 
# Left hand side where we inveral at singular point 
a, b = mp.pi/3, mp.pi/2
beta = mp.atan(mp.sqrt(7))
 
def integrand(t):
    return mp.log(abs((mp.tan(t) + mp.sqrt(7))/(mp.tan(t) - mp.sqrt(7))))
 
# Endpoint singularities are handled by mpmath 
# so uhhh we need to split 
I = mp.quad(integrand, [a, beta, b]) 
LHS = (24/(7*mp.sqrt(7))) * I 
 
# RHS using trigamma balls 
RHS = (1/49) * sum(chi[r] * mp.polygamma(1, mp.mpf(r)/7) for r in range(1,7))
 
print("LHS", LHS)
print("RHS", RHS)
print("abs diff", abs(LHS-RHS))

Much precise way on calculating

LHS 1.1519254705444910471016923973205499647978214046866
RHS 1.1519254705444909551811732061792532977684945907902
abs diff 9.19205191911412966670293268138964

Well, we can solve it numerical, but we are not able to use this in real exam environment which is pain in the ass, so if we want to solve this using proofs, we have to use arithmetic geometry. The reason why equality hold is that both sides of the equation (LHS and RHS) represents the invariance of the imaginary quadratic field K=Q(7)K = \mathbb{Q} (\sqrt{7})

So we have to consider the Dedekind Zeta function where for the field K=Q(7)K = \mathbb{Q} (\sqrt{7}) can be denoted as ζK(s)\zeta_K(s). For the imaginary field, this function factors into a standard Riemann zeta function and the Dirichlet L function where it is associated with

ζK(s)=ζ(s)L(s,X)\zeta_K(s) = \zeta(s) \cdot L(s, \mathcal{X})

and if we evaluate this with s=2s = 2 we can get

ζK(2)=ζ(2)L(2,X)=π26n=1X(n)n2\zeta_K(2) = \zeta(2) \cdot L(2, \mathcal{X}) = \frac{\pi^2}{6} \sum^{\infty}_{n=1} \frac{\mathcal{X}(n)}{n^2}

So doing this our RHS series are just basically ζK(2)\zeta_K(2) with a factor that can be up to π2/6\pi^2 / 6

To explain this better, we can actually use Borel’s Regulator theorm, which we will be using this book.

Borel’s Regulator Theorm, in algebraic number theory that relates the ranks of higher algebraic K-groups of the ring of integers of a number field to the orders of vanishing of the associated Dedekind zeta function at negative odd integers

Aaaaand especially for K3K_3, it states that for a number field KK, the value ζK(2)\zeta_K(2) is proportional to the Regulator R2(K)R_2(K) divided by the square root of the discriminant.

ζK(2)π2R2(K)ΔK\zeta_K(2) \sim \pi^2 \cdot \frac{R_2(K)}{\sqrt{|\Delta_K|}}

In the context of imaginary quadratic fields, the Regulator R2(K)R_2(K) is calculated by summing the Bloch-Wigner Dilogarithm evaluated at specific algebraic numbers within the field. The Bloch-Wigner function is essentially the “imaginary part” of the Dilogarithm which, as we saw at first part is exactly the Clausen function (Cl2\mathrm{Cl}_2)

  1. RHS Calculates ζK(2)\zeta_K(2) using the analytic definition
  2. LHS Integral calculates ζK(2)\zeta_K(2) using the geometric definition (the Regulator). The angle β=arctan(7)\beta = \arctan(\sqrt{7}) appears naturally because it relates to the argument of the fundamental algebraic integer in this field α=1+i72    tan(arg(α))=7\alpha = \frac{1 + i\sqrt{7}}{2} \implies \tan(\arg(\alpha)) = \sqrt{7}

This explains why geometry matches the arithmetic, finishing our proof.

We basically verified steep theorm of algebraic K-theory! Not bad for a day’s work, it was worth it.