Summer Math Camp · 2014 · Revisited in English, 2026
Before we start
Infinite sums, from the first convergence tests to Euler’s product over the primes:
Solutions appear one step at a time: try each exercise before moving on.
I wrote these notes in Italian for a summer math camp in 2014. The original is on letizia.tech/hobbies/math. This English version fixes two mistakes in it: the sum of the reciprocals of the Fibonacci numbers converges, and the maximum in the last olympiad problem is reached twice.
01
Given a sequence a_0,a_1,a_2,\dots, its series is the infinite sum
\sum_{n=0}^{\infty}a_n=a_0+a_1+a_2+\cdots
It converges to L when the partial sums S_m=\sum_{n=0}^{m}a_n tend to the finite limit L. Otherwise it diverges.
Some series to keep in mind: \ \displaystyle\sum\frac{\sin n}{n},\quad\sum\frac{1}{n^3},\quad\sum\frac{1}{\sqrt{n\,e^n}},\quad\sum\frac{1}{n^s}.
If \sum a_n converges, then a_n\to0.
Does \sum_{n\geq7}\sqrt n converge?
No: \sqrt n\to\infty, so the terms do not even tend to 0.
Show that the converse is false: find a divergent series whose terms tend to 0.
The harmonic series \sum\frac1n. Its terms tend to 0, but it diverges, as the next slide shows.
If f:[1,\infty)\to[0,\infty) is decreasing, then \displaystyle\int_1^\infty f(x)\,dx and \displaystyle\sum_{n\geq1}f(n) both converge or both diverge.
For which real s does \zeta(s)=\displaystyle\sum_{n\geq1}\frac{1}{n^s} converge?
For s\leq0 the terms do not tend to 0. For s>0, compare with \int_1^\infty x^{-s}\,dx, which is \frac{1}{s-1} for s>1 and infinite for s\leq1. So \zeta(s) converges exactly when s>1. In particular the harmonic series \sum\frac1n diverges, while \sum\frac{1}{n^{1.0001}} converges: the border is sharp.
Let 0\leq a_n\leq b_n from some point on. If \sum b_n converges, so does \sum a_n. If \sum a_n diverges, so does \sum b_n.
\displaystyle\sum_{n\geq7}\frac{\sqrt[n]{n}}{n^7}
\dfrac{\sqrt[n]n}{n^7}=\dfrac{1}{n^{7-1/n}}\leq\dfrac{1}{n^6}, and \sum\frac{1}{n^6} converges.
\displaystyle\sum_{n\geq1}\frac{n^2+2}{n^3+3}
\dfrac{n^2+2}{n^3+3}>\dfrac{n^2}{n^3+3n^3}=\dfrac{1}{4n}, and \sum\frac{1}{4n} diverges, so this series diverges too.
Leibniz. If a_n decreases to 0, then \sum(-1)^na_n converges.
1-\frac12+\frac13-\frac14+\cdots converges by Leibniz. To what? We will find out with Taylor series: \ln2.
Show that you cannot reorder the terms of a series at will.
Take the alternating harmonic series. Its positive terms 1,\frac13,\frac15,\dots add up to infinity, and so do its negative ones. Take positive terms until the partial sum passes 1, then negative ones until it drops below -1, then positive again, and so on. Every term is used exactly once, yet the partial sums keep swinging between 1 and -1: the reordered series does not converge at all, while the original converges to \ln2. (Riemann showed that a reordering can reach any value you like.)
If \sum|a_n| converges, then \sum a_n converges.
\displaystyle\sum_{n\geq1}\frac{\sin n+\cos n}{n^2}
The terms change sign, so comparison does not apply directly. But \left|\dfrac{\sin n+\cos n}{n^2}\right|\leq\dfrac{2}{n^2}, so the series converges absolutely, hence converges.
Let \ell=\limsup\sqrt[n]{|a_n|}, or \ell=\lim\left|\frac{a_{n+1}}{a_n}\right| when this limit exists. If \ell<1 the series converges absolutely; if \ell>1 it diverges; if \ell=1 the test says nothing.
\displaystyle\sum\frac{n}{3^n}\qquad\text{and}\qquad\sum\frac{n!}{n^n}
Root test: \sqrt[n]{n/3^n}\to\frac13<1, so the first converges (to what? See the geometric series). Ratio test: \dfrac{(n+1)!}{(n+1)^{n+1}}\cdot\dfrac{n^n}{n!}=\left(\dfrac{n}{n+1}\right)^n\to\dfrac1e<1, so the second converges too.
Does \displaystyle\sum_{n\geq1}\frac{1}{F_n}=\frac11+\frac11+\frac12+\frac13+\frac15+\frac18+\cdots converge?
Ratio test: \dfrac{1/F_{n+1}}{1/F_n}=\dfrac{F_n}{F_{n+1}}\to\dfrac1\varphi\approx0.618<1, so it converges, to about 3.3599.
The 2014 notes concluded that this series diverges: they used the ratio F_{n+1}/F_n\to\varphi of the Fibonacci numbers, not of the terms 1/F_n.
\displaystyle\sum_{n\geq2}\frac{1}{n\ln n},\qquad\sum_{n\geq2}\frac{1}{\ln n!},\qquad\sum_{n\geq1}\frac{\ln n!}{n^\alpha}
The first diverges by the integral test: \int\frac{dx}{x\ln x}=\ln\ln x. The second diverges by comparison with the first, since \ln n!<\ln n^n=n\ln n. For the third, \ln n! grows like n\ln n, so the series converges exactly when \alpha>2.
02
For q\neq1: \ \displaystyle1+q+q^2+\cdots+q^n=\frac{1-q^{n+1}}{1-q}.
Call the sum S. Then S-qS=1-q^{n+1}, because everything else cancels. Divide by 1-q.
If |q|<1, then q^{n+1}\to0 and \displaystyle\sum_{n\geq0}q^n=\frac{1}{1-q}.
For an integer |a|>1: \ \displaystyle\sum_{n\geq0}\frac{1}{a^n}=\frac{1}{1-\frac1a}=\frac{a}{a-1}. With a=2, the familiar 1+\frac12+\frac14+\cdots=2.
Compute \displaystyle\sum_{n\geq1}\frac{n}{3^n}.
The terms are not in geometric progression, but \frac{n}{3^n} is \frac{1}{3^n} taken n times. Stack the series:
\sum_{n\geq1}\frac{n}{3^n}=\sum_{n\geq1}\frac{1}{3^n}+\sum_{n\geq2}\frac{1}{3^n}+\sum_{n\geq3}\frac{1}{3^n}+\cdots
The k-th row is a geometric series starting at \frac{1}{3^k}, so it equals \frac{1}{3^k}\cdot\frac32. Adding the rows, another geometric series:
\frac32\sum_{k\geq1}\frac{1}{3^k}=\frac32\cdot\frac12=\frac34
Compute \displaystyle\sum_{n\geq1}\frac{1}{n\,2^n}.
For a>1 let f(a)=\sum_{n\geq1}\frac{1}{n\,a^n}. Differentiating term by term kills the awkward n:
f'(a)=-\sum_{n\geq1}\frac{1}{a^{n+1}}=-\frac{1}{a(a-1)}=\frac1a-\frac{1}{a-1}
Integrating, f(a)=\ln\frac{a}{a-1}+C, and C=0 because both sides tend to 0 as a\to\infty. So
\sum_{n\geq1}\frac{1}{n\,a^n}=\ln\frac{a}{a-1},\qquad\sum_{n\geq1}\frac{1}{n\,2^n}=\ln2
03
Around a point x_0, many functions equal their Taylor series:
f(x)=\sum_{n\geq0}\frac{f^{(n)}(x_0)}{n!}(x-x_0)^n
(called Maclaurin series when x_0=0). The ones to remember:
e^x=\sum_{n\geq0}\frac{x^n}{n!}\qquad\sin x=\sum_{n\geq0}\frac{(-1)^n x^{2n+1}}{(2n+1)!}\qquad\cos x=\sum_{n\geq0}\frac{(-1)^n x^{2n}}{(2n)!}
\ln(1+x)=\sum_{n\geq1}\frac{(-1)^{n+1}x^n}{n}\quad(-1<x\leq1)
For e^x: every derivative of e^x is e^x, which is 1 at 0. For \sin x: the derivatives at 0 cycle through 0,1,0,-1.
e^{i\pi}+1=0
Put ix into the series of e^x. Since i^2=-1, the even powers are real and the odd ones imaginary:
e^{ix}=\left(1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots\right)+i\left(x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots\right)=\cos x+i\sin x
At x=\pi: \ e^{i\pi}=\cos\pi+i\sin\pi=-1.
Show that \sqrt{1+x}\approx1+\frac x2-\frac{x^2}{8} for small x.
Stop the Taylor series at the second order: f(0)=1, f'(0)=\frac12, f''(0)=-\frac14, and \frac{-1/4}{2!}=-\frac18.
Compute 1-\frac13+\frac15-\frac17+\cdots.
For |x|<1, the geometric series gives \dfrac{1}{1+x^2}=1-x^2+x^4-x^6+\cdots. Integrating from 0 to x:
\arctan x=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+\cdots
At x=1 (allowed by Abel’s theorem, since the series converges there): the sum is \arctan1=\frac\pi4.
For the curious: \ \displaystyle\sum_{n\geq0}\frac{(-1)^n}{3n+1}\qquad\text{and}\qquad\sum_{n\geq0}\frac{(n+1)^2}{n!}
\dfrac{\pi\sqrt3+\ln8}{9}, with the same idea applied to \frac{1}{1+x^3}; and 5e, writing (n+1)^2=n(n-1)+3n+1.
04
A 2\pi-periodic function can be written as a combination of sines and cosines:
f(x)\sim\frac{a_0}{2}+\sum_{n\geq1}\big(a_n\cos nx+b_n\sin nx\big)
a_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\cos nx\,dx,\qquad b_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\sin nx\,dx
Parseval. For a square-integrable f: \ \displaystyle\frac{a_0^2}{2}+\sum_{n\geq1}\left(a_n^2+b_n^2\right)=\frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx.
Expand f(x)=x on (-\pi,\pi).
f is odd, so a_n=0, and b_n=\frac2\pi\int_0^\pi x\sin nx\,dx=\frac{2(-1)^{n+1}}{n}. At x=\frac\pi2 only odd n survive, and \frac\pi2=2\left(1-\frac13+\frac15-\cdots\right): Leibniz’s formula again.
Parseval in its Fourier transform form solves Powers of sin x over x on the problem sheet.
05
1<\displaystyle\sum_{n\geq1}\frac{1}{n^2}<2
For n\geq2: \ \dfrac{1}{n(n+1)}<\dfrac{1}{n^2}<\dfrac{1}{n(n-1)}. Both bounds telescope:
\sum_{n\geq1}\frac{1}{n(n+1)}=\sum_{n\geq1}\left(\frac1n-\frac{1}{n+1}\right)=1,\qquad 1+\sum_{n\geq2}\left(\frac{1}{n-1}-\frac1n\right)=2
But what is the exact value? Pietro Mengoli asked in the middle of the 17th century, and nobody could answer for almost a hundred years. Euler solved it in 1735, at 28:
\sum_{n\geq1}\frac{1}{n^2}=\frac{\pi^2}{6}
Divide the series of \sin x by x:
\frac{\sin x}{x}=1-\frac{x^2}{3!}+\frac{x^4}{5!}-\cdots
Its roots are \pm\pi,\pm2\pi,\pm3\pi,\dots With z=x^2 we get 1-\frac{z}{3!}+\frac{z^2}{5!}-\cdots, an “infinite polynomial” in z with roots \pi^2,4\pi^2,9\pi^2,\dots
For a polynomial c_0+c_1z+\dots with nonzero roots, Vieta’s formulas give \sum\frac{1}{z_k}=-\frac{c_1}{c_0}. Here -\frac{c_1}{c_0}=\frac{1}{3!}, so
\frac{1}{\pi^2}+\frac{1}{4\pi^2}+\frac{1}{9\pi^2}+\cdots=\frac16\qquad\Longrightarrow\qquad\sum_{n\geq1}\frac{1}{n^2}=\frac{\pi^2}{6}
Treating an infinite series as a polynomial needs justification (the Weierstrass product for \sin x), but the idea is exactly Euler’s.
Expand f(x)=x^2 on [-\pi,\pi]. It is even, so b_n=0; \ a_0=\frac{2\pi^2}{3} and a_n=\frac2\pi\int_0^\pi x^2\cos nx\,dx=\frac{4(-1)^n}{n^2}:
x^2=\frac{\pi^2}{3}+4\sum_{n\geq1}\frac{(-1)^n}{n^2}\cos nx
At x=\pi, \cos n\pi=(-1)^n and the signs cancel: \ \pi^2=\dfrac{\pi^2}{3}+4\displaystyle\sum\frac{1}{n^2}, so \displaystyle\sum\frac{1}{n^2}=\frac{\pi^2}{6}.
Bonus, with Parseval: \ \dfrac{2\pi^4}{9}+\displaystyle\sum\frac{16}{n^4}=\frac1\pi\int_{-\pi}^{\pi}x^4\,dx=\frac{2\pi^4}{5}, so \displaystyle\sum_{n\geq1}\frac{1}{n^4}=\frac{\pi^4}{90}.
Compute \displaystyle\sum_{n\geq1}\frac{(-1)^n}{n^2}.
The even terms add up to \frac14\cdot\frac{\pi^2}{6}=\frac{\pi^2}{24}, so the odd ones add up to \frac{\pi^2}{6}-\frac{\pi^2}{24}=\frac{\pi^2}{8}. The alternating sum is \frac{\pi^2}{24}-\frac{\pi^2}{8}=-\frac{\pi^2}{12}.
Prove that \displaystyle\sum_{p\text{ prime}}\frac{1}{p^2}<\frac12.
The primes after 5 are 7,11,13,\dots: the k-th of them exceeds the k-th even number after 4, which are 6,8,10,\dots So
\sum_p\frac{1}{p^2}<\frac14+\frac19+\frac{1}{25}+\sum_{n\geq3}\frac{1}{(2n)^2}=\frac19+\frac1{25}-\frac1{16}+\frac{\pi^2}{24}\approx0.49984
(The true value is about 0.4522.)
06
Let p and q be coprime positive integers with \ 1-\frac12+\frac13-\cdots-\frac{1}{1318}+\frac{1}{1319}=\frac pq. Prove that 1979 divides p.
Add all the terms and subtract twice the even ones: the sum is \sum_{n=1}^{1319}\frac1n-\sum_{n=1}^{659}\frac1n=\sum_{n=660}^{1319}\frac1n.
Pair the first term with the last, the second with the second to last, and so on. Each pair adds to \frac{1}{k}+\frac{1}{1979-k}=\frac{1979}{k(1979-k)}, so
\frac pq=1979\sum_{k=660}^{989}\frac{1}{k(1979-k)}
1979 is prime and larger than every factor in the denominators, so it cannot cancel: it divides p.
Reduce \ \dfrac{1}{1\cdot2\cdot3}+\dfrac{1}{2\cdot3\cdot4}+\cdots+\dfrac{1}{2014\cdot2015\cdot2016}\ to lowest terms. What is the largest prime factor of the denominator?
Partial fractions: \ \dfrac{1}{n(n+1)(n+2)}=\dfrac12\left(\dfrac{1}{n(n+1)}-\dfrac{1}{(n+1)(n+2)}\right). The sum telescopes:
\sum_{n=1}^{2014}\frac{1}{n(n+1)(n+2)}=\frac12\left(\frac12-\frac{1}{2015\cdot2016}\right)=\frac{2014\cdot2017}{4\cdot2015\cdot2016}
2015=5\cdot13\cdot31 and 2016=2^5\cdot3^2\cdot7, while 2014\cdot2017=2\cdot19\cdot53\cdot2017 shares only a 2 with them. The answer is \mathbf{31}. (The infinite sum is \frac14.)
Can you pick infinitely many terms of 1,\frac12,\frac14,\frac18,\dots in geometric progression with sum \frac15? With sum \frac17?
Such a sum is \dfrac{1}{2^a}+\dfrac{1}{2^{a+b}}+\cdots=\dfrac{1}{2^a}\cdot\dfrac{2^b}{2^b-1} with b\geq1. For it to equal \frac1m we need m=2^{a-b}(2^b-1).
m=7 works with a=b=3: \ \frac18+\frac{1}{64}+\frac{1}{512}+\cdots=\frac17. But m=5 is odd, which forces a=b and then 2^b-1=5, impossible. So \frac15 cannot be reached.
Let a_n=\displaystyle\sum_{k=0}^{n}\binom nk^{-1}. What is the largest value of a_n? Does a_n converge?
Using \binom nk=\frac nk\binom{n-1}{k-1} and pairing k with n+1-k, one finds the recurrence
a_n=1+\frac{n+1}{2n}\,a_{n-1},\qquad a_0=1
which gives a_1=2,\ a_2=\frac52,\ a_3=\frac83,\ a_4=\frac83,\ a_5=\frac{13}{5},\ a_6=\frac{151}{60},\dots
The recurrence shows a_n<a_{n-1} exactly when a_{n-1}>2+\frac{2}{n-1}, and that inequality passes from n to n+1 by induction, starting from a_4=\frac83>\frac52. So the sequence decreases from n=4 on, and the maximum is \mathbf{\frac83}, reached at both n=3 and n=4. A decreasing sequence bounded below converges; passing to the limit in the recurrence, \ell=1+\frac\ell2, so a_n\to2.
07
For s>1: \ \displaystyle\zeta(s)=\sum_{n\geq1}\frac{1}{n^s}=\prod_{p\text{ prime}}\frac{1}{1-p^{-s}}.
Multiply \zeta(s)=1+\frac{1}{2^s}+\frac{1}{3^s}+\cdots by \frac{1}{2^s} and subtract: every even denominator disappears.
\left(1-\frac{1}{2^s}\right)\zeta(s)=1+\frac{1}{3^s}+\frac{1}{5^s}+\frac{1}{7^s}+\cdots
Repeat with 3, then 5, and so on: each step removes the multiples of one more prime, and only the 1 survives. Hence \prod_p\left(1-p^{-s}\right)\zeta(s)=1.
There are infinitely many primes.
A proof different from Euclid’s. If there were only finitely many primes, the product \prod_p\frac{1}{1-p^{-s}} would have finitely many factors and would stay bounded as s\to1^+. But \zeta(s)\geq\sum_{n\leq N}\frac{1}{n^s}\to\sum_{n\leq N}\frac1n for every N, and the harmonic series diverges, so \zeta(s)\to\infty. Contradiction.
Nunzio Alexandro Letizia · letizia.tech
letizia.tech · Math lessons