JB Math Club 26-27 · Lecture notes

Summing and multiplying sequences

We want to replace a long calculation by a short idea. Sometimes we can find the exact sum; sometimes a useful upper or lower bound is enough. The main question throughout this lecture is: how should we rewrite the terms so that the structure becomes visible?

Route through the lecture. Polynomial evaluation; telescoping; bounded and unbounded partial sums; geometric sums; odd-number layers in a square; a six-piece model for the sum of squares; first differences of polynomials; telescoping products.

1. Reading a sum through a polynomial

For numbers a0,a1,…,ana_0,a_1,\ldots,a_n, the notation ∑k=0nak\sum_{k=0}^{n}a_k means a0+a1+⋯+ana_0+a_1+\cdots+a_n. The letter kk is a running index; there are n+1n+1 terms. We use ∑k=10ak=0\sum_{k=1}^{0}a_k=0 for an empty sum.

Suppose that the numbers are the coefficients of a polynomial:

p(x)=a0+a1x+⋯+anxn.p(x)=a_0+a_1x+\cdots+a_nx^n.

We can make every power equal to 11 by choosing x=1x=1. Choosing x=−1x=-1 instead gives alternating signs.

Coefficient sums. For a polynomial with coefficients a0,…,ana_0,\ldots,a_n in increasing order of degree, p(1)=a0+a1+⋯+an,p(−1)=a0−a1+a2−⋯+(−1)nan.\begin{aligned} p(1)&=a_0+a_1+\cdots+a_n,\\ p(-1)&=a_0-a_1+a_2-\cdots+(-1)^n a_n. \end{aligned}

For example, the sum of the coefficients of (2+x)5(2+x)^5 is 35=2433^5=243. Its alternating coefficient sum, starting with the constant term, is (2−1)5=1(2-1)^5=1. We do not need to expand the polynomial.

Binomial coefficients

Write (1+x)n=∑k=0n(nk)xk. (1+x)^n=\sum_{k=0}^{n}\binom nk x^k. The coefficient (nk)=Cnk\binom nk=C_n^k is read as “nn choose kk”. To obtain xkx^k when multiplying the nn factors (1+x)(1+x), choose xx from exactly kk factors and 11 from the others. Thus this coefficient counts the kk-element subsets of an nn-element set. We will develop this counting interpretation in the next lecture; here it explains the notation. The usual factorial formula is (nk)=n!k!(n−k)!,0!=1.\binom nk=\frac{n!}{k!(n-k)!},\qquad 0!=1. For instance, x2x^2 in (1+x)3(1+x)^3 comes from the choices (x,x,1)(x,x,1), (x,1,x)(x,1,x) and (1,x,x)(1,x,x), so its coefficient is (32)=3\binom32=3.

Two binomial sums. For integers n≥0n\geq0, (n0)+(n1)+⋯+(nn)=2n.\binom n0+\binom n1+\cdots+\binom nn=2^n. For integers n≥1n\geq1, (n0)−(n1)+(n2)−⋯+(−1)n(nn)=0.\binom n0-\binom n1+\binom n2-\cdots+(-1)^n\binom nn=0.

Proof. Evaluate (1+x)n(1+x)^n at x=1x=1 and x=−1x=-1, respectively. The second identity excludes n=0n=0: the polynomial is then 11, and the alternating sum is 11.

Let EE and OO be the sums of the coefficients with even and odd indices. For n≥1n\geq1, the identities give E+O=2nE+O=2^n and E−O=0E-O=0. Hence E=O=2n−1.\boxed{E=O=2^{n-1}.}

2. Telescoping: cancel the middle

Example. For an integer n≥2n\geq2, find Tn=11⋅2+12⋅3+⋯+1(n−1)n.T_n=\frac1{1\cdot2}+\frac1{2\cdot3}+\cdots+\frac1{(n-1)n}.

The denominators suggest neighbouring reciprocals. Their difference is exactly one summand: 1k−1k+1=(k+1)−kk(k+1)=1k(k+1).\frac1k-\frac1{k+1}=\frac{(k+1)-k}{k(k+1)}=\frac1{k(k+1)}. Therefore Tn=(1−12)+(12−13)+⋯+(1n−1−1n)=1−1n.\begin{aligned} T_n&=\left(1-\frac12\right)+\left(\frac12-\frac13\right)+\cdots+\left(\frac1{n-1}-\frac1n\right)\\ &=1-\frac1n. \end{aligned} Every intermediate reciprocal occurs once with a plus sign and once with a minus sign. Only the two boundary terms survive. Such cancellation is called telescoping.

Telescoping identity. For any numbers b1,…,bn+1b_1,\ldots,b_{n+1}, (b1−b2)+(b2−b3)+⋯+(bn−bn+1)=b1−bn+1.(b_1-b_2)+(b_2-b_3)+\cdots+(b_n-b_{n+1})=b_1-b_{n+1}.

The useful step is often finding the right bkb_k, rather than doing the cancellation. Notice also that 0≤Tn<10\leq T_n<1. Here and below the formula includes n=1n=1 if the sum is interpreted as empty.

3. Bounded partial sums

The partial sum of a sequence a1,a2,…a_1,a_2,\ldots is An=a1+⋯+anA_n=a_1+\cdots+a_n. We study the sequence of totals (An)(A_n), not just the individual summands (an)(a_n).

Bounded above. A sequence (An)(A_n) is bounded above if there is one constant MM such that An≤MA_n\leq M for every nn. The constant must not depend on nn.

If ak≥0a_k\geq0, the partial sums are nondecreasing and nonnegative. In this setting an upper bound also makes the sequence bounded in the usual two-sided sense. A sequence may keep increasing and still stay below a fixed ceiling: for example, 1−1/n<11-1/n<1.

Example. Prove that the following partial sums are bounded above. An=1+122+132+⋯+1n2.A_n=1+\frac1{2^2}+\frac1{3^2}+\cdots+\frac1{n^2}.

For k≥2k\geq2, we have k(k−1)<k2k(k-1)<k^2, and so 1k2<1k(k−1)=1k−1−1k.\frac1{k^2}<\frac1{k(k-1)}=\frac1{k-1}-\frac1k. The comparison is useful because the larger terms telescope. For n≥1n\geq1, An≤1+∑k=2n(1k−1−1k)=2−1n<2.\begin{aligned} A_n&\leq1+\sum_{k=2}^{n}\left(\frac1{k-1}-\frac1k\right)\\ &=2-\frac1n<2. \end{aligned} The first inequality is equality for n=1n=1 and strict for n≥2n\geq2. The single constant 22 works for all nn.

An exact sum is not necessary for this conclusion. In fact, the least upper bound of these partial sums is π2/6\pi^2/6, but proving this value is beyond this lecture. We have proved the simpler estimate An<2A_n<2.

4. The harmonic sums have no ceiling

The harmonic sum is Hn=1+12+⋯+1n.H_n=1+\frac12+\cdots+\frac1n. Its summands tend to zero. Does that force the partial sums to stay bounded? The answer is no.

Group terms between consecutive powers of two: H16=1+12+(13+14)+(15+⋯+18)+(19+⋯+116).H_{16}=1+\frac12+\left(\frac13+\frac14\right)+\left(\frac15+\cdots+\frac18\right)+\left(\frac19+\cdots+\frac1{16}\right). The block from 2j−1+12^{j-1}+1 to 2j2^j contains 2j−12^{j-1} terms. Each is at least 1/2j1/2^j, so every block contributes at least 1/21/2: ∑r=2j−1+12j1r≥2j−1⋅12j=12.\sum_{r=2^{j-1}+1}^{2^j}\frac1r\geq2^{j-1}\cdot\frac1{2^j}=\frac12.

The blocks ending at 2, 4, 8 and 16 each contribute at least one half.

Unbounded harmonic sums. For every integer m≥0m\geq0, H2m≥1+m2.H_{2^m}\geq1+\frac m2. Consequently, the sequence (Hn)(H_n) is unbounded above.

Why this proves unboundedness. Given any proposed ceiling MM, choose an integer mm with 1+m/2>M1+m/2>M. Then H2m>MH_{2^m}>M. Since all summands are positive, every later partial sum is at least this large. The important quantity is the number of blocks, not the size of the last summand.

Each block also contributes at most 11, since every term in it is at most 1/2j−11/2^{j-1}. Thus 1+m2≤H2m≤1+m.1+\frac m2\leq H_{2^m}\leq1+m. This already explains why growth is slow: doubling the number of terms adds between 1/21/2 and 11. It does not yet identify the precise logarithmic constant.

Optional: a sharper estimate using areas

If integrals are familiar, compare rectangles with the decreasing curve y=1/xy=1/x. On [k,k+1][k,k+1], the curve lies strictly below the rectangle of height 1/k1/k, except at the left endpoint. On [k−1,k][k-1,k] for k≥2k\geq2, it lies strictly above the rectangle of height 1/k1/k, except at the right endpoint. Summing the areas gives ∫1n+1dxx<Hn,Hn−1<∫1ndxx(n≥2).\int_1^{n+1}\frac{dx}{x}<H_n,\qquad H_n-1<\int_1^n\frac{dx}{x}\quad(n\geq2). Here ln⁡\ln denotes the natural logarithm. Therefore ln⁡(n+1)<Hn≤1+ln⁡n(n≥1).\boxed{\ln(n+1)<H_n\leq1+\ln n\quad(n\geq1).} The upper inequality is strict when n≥2n\geq2; it is equality when n=1n=1. This makes the phrase “logarithmic growth” precise: Hn−ln⁡nH_n-\ln n remains between 00 and 11. The integral argument is optional; the block proof of unboundedness requires no calculus.

Left and right rectangles give the two integral comparisons for the harmonic sum.

5. A geometric sum: shift, then subtract

Example. For an integer n≥0n\geq0 and a real number qq, find Gn=1+q+q2+⋯+qn.G_n=1+q+q^2+\cdots+q^n.

Multiplication by qq shifts the powers one place: Gn=1+q+q2+⋯+qn,qGn=q+q2+⋯+qn+qn+1.\begin{aligned} G_n&=1+q+q^2+\cdots+q^n,\\ qG_n&=q+q^2+\cdots+q^n+q^{n+1}. \end{aligned} Subtracting cancels every middle power, so (1−q)Gn=1−qn+1(1-q)G_n=1-q^{n+1}. For q≠1q\ne1 we may divide by 1−q1-q: Gn=1−qn+11−q.\boxed{G_n=\frac{1-q^{n+1}}{1-q}.} If q=1q=1, all n+1n+1 terms equal 11, and Gn=n+1G_n=n+1. The finite formula is valid for negative qq too. In particular, q=−1q=-1 gives Gn=1G_n=1 for even nn and Gn=0G_n=0 for odd nn.

For q=1/2q=1/2, 1+12+⋯+12n=2−12n<2.1+\frac12+\cdots+\frac1{2^n}=2-\frac1{2^n}<2. More generally, for 0≤q<10\leq q<1 these sums are bounded above by 1/(1−q)1/(1-q). For ∣q∣<1|q|<1, the powers qn+1q^{n+1} tend to zero, so the partial sums approach 1/(1−q)1/(1-q); no infinite-sum formula is needed to establish the finite identity.

6. Odd numbers build a square

Problem. Prove that for every positive integer nn, 1+3+5+⋯+(2n−1)=n2.1+3+5+\cdots+(2n-1)=n^2.

Start with one cell. A square of side kk becomes a square of side k+1k+1 when we add a row of k+1k+1 cells and a column of kk more cells. The corner belongs to the row. The new L-shaped layer therefore contains (k+1)+k=2k+1(k+1)+k=2k+1 cells.

The highlighted row and column form the new L-shaped layer. Successive layers have 1, 3, 5, and then 7 cells.

This is a proof by induction. The first square has area 1=121=1^2. If the first kk odd numbers fill a square of area k2k^2, the next odd number supplies exactly the layer that completes the square of area (k+1)2(k+1)^2. Thus the first nn layers fill a square of area n2n^2.

7. Six staircases give the sum of squares

Problem. One sheet of unit cubes has size 1×11\times1, the next 2×22\times2, and so on up to n×nn\times n. How many cubes are there altogether?

Make one piece. Stack the sheets one cube thick, largest at the bottom, keeping one corner aligned. The staircase contains Sn=12+22+⋯+n2S_n=1^2+2^2+\cdots+n^2 cubes. Make six identical pieces. The pictures show n=5n=5.

The purple, teal and gold pieces are copies of the same staircase. Turning them in three different directions lets their steps fit together.

Fit three, then three more. Read the cut through row 33: five full levels carry three extra gold cells. In row rr, the gold square is rr cells wide and rr cells high, with n+1−rn+1-r purple cells underneath each column. Beyond that square, each step lost by purple is filled by teal up to level nn. Thus the group has nn full slices and one projection with row lengths 1,2,…,n1,2,\ldots,n. Assemble the other three pieces with the steps on the opposite side.

The gold and blue ends meet in one shared layer. Read the gold and blue counts on opposite sides of each row, then read the three edge lengths of the finished box.

Check the join. In row rr of the shared slice, gold fills the first rr positions and blue fills the remaining n+1−rn+1-r. Every row is full. The length of the box is n+1+n=2n+1n+1+n=2n+1 slices, and each slice has n(n+1)n(n+1) cubes. Counting the same box by its six pieces gives 6Sn=n(n+1)(2n+1),Sn=n(n+1)(2n+1)6.6S_n=n(n+1)(2n+1),\qquad \boxed{\displaystyle S_n=\frac{n(n+1)(2n+1)}6.}

Model and film: Mathematical Etudes, Sum of Squares.

8. First differences of polynomials

Adding a layer to one staircase increases its volume by a square. Can we construct a polynomial whose consecutive values differ by exactly x2x^2? Write ΔP(x)=P(x+1)−P(x)\Delta P(x)=P(x+1)-P(x).

Degree of a first difference. If PP has degree m≥1m\ge1 and leading coefficient aa, then ΔP\Delta P has degree m−1m-1 and leading coefficient mama. The difference of a constant is zero.

Indeed, (x+1)m−xm=mxm−1+lower powers(x+1)^m-x^m=mx^{m-1}+\text{lower powers}. Every lower-degree term of PP contributes a difference of degree at most m−2m-2, so the leading term survives.

Constructing a difference. To obtain ΔP=x2\Delta P=x^2, try P(x)=Ax3+Bx2+CxP(x)=Ax^3+Bx^2+Cx. We may set the constant coefficient to zero because taking a difference removes it. Since Δ(x3)=3x2+3x+1\Delta(x^3)=3x^2+3x+1, Δ(x2)=2x+1\Delta(x^2)=2x+1 and Δx=1\Delta x=1, the three coefficients must satisfy 3A=1,3A+2B=0,A+B+C=0.3A=1,\qquad 3A+2B=0,\qquad A+B+C=0. This gives A=1/3A=1/3, B=−1/2B=-1/2, C=1/6C=1/6 and hence P(x)=x(x−1)(2x−1)/6P(x)=x(x-1)(2x-1)/6. Summing ΔP(k)\Delta P(k) from 11 to nn leaves P(n+1)−P(1)P(n+1)-P(1). The shift by one explains how the difference polynomial recovers the geometric answer.

Why the construction always works. Suppose ff has degree dd and leading coefficient cc. The first difference of cxd+1/(d+1)cx^{d+1}/(d+1) has the same leading term as ff. Subtract it and repeat with the lower-degree remainder. A constant remainder bb is Δ(bx)\Delta(bx), so the process terminates. Adding the polynomials constructed along the way gives ΔP=f\Delta P=f and ∑k=1nf(k)=P(n+1)−P(1).\sum_{k=1}^{n} f(k)=P(n+1)-P(1). The resulting partial-sum polynomial has degree d+1d+1 and leading coefficient c/(d+1)c/(d+1). Adding a constant to PP changes neither the differences nor the sum.

9. Products: cancel factors instead of terms

The notation ∏k=1nak\prod_{k=1}^{n}a_k means a1a2⋯ana_1a_2\cdots a_n. An empty product is 11.

Telescoping product. If b1,…,bn+1b_1,\ldots,b_{n+1} are all nonzero, then b2b1⋅b3b2⋯bn+1bn=bn+1b1.\frac{b_2}{b_1}\cdot\frac{b_3}{b_2}\cdots\frac{b_{n+1}}{b_n}=\frac{b_{n+1}}{b_1}.

Each intermediate factor appears once in a numerator and once in a denominator. For instance, ∏k=1nk+1k=21⋅32⋯n+1n=n+1.\prod_{k=1}^{n}\frac{k+1}{k}=\frac21\cdot\frac32\cdots\frac{n+1}{n}=n+1.

Fill the gaps in a product

Worked example. Prove that for every integer n≥1n\ge1, Pn=12⋅34⋅56⋯2n−12n<12n+1.P_n=\frac12\cdot\frac34\cdot\frac56\cdots\frac{2n-1}{2n}<\frac1{\sqrt{2n+1}}.

Both sides are positive, so it suffices to prove Pn2<1/(2n+1)P_n^2<1/(2n+1). Write Pn2P_n^2 as two copies of PnP_n. Keep the first copy and increase each factor of the second: 2k−12k=1−12k<1−12k+1=2k2k+1.\frac{2k-1}{2k}=1-\frac1{2k}<1-\frac1{2k+1}=\frac{2k}{2k+1}.

Now insert 2/32/3 after 1/21/2, then 4/54/5 after 3/43/4, and continue through 2n/(2n+1)2n/(2n+1). Each denominator cancels the next numerator: Pn2<12⋅23⋅34⋅45⋯2n−12n⋅2n2n+1=12n+1.P_n^2<\frac12\cdot\frac23\cdot\frac34\cdot\frac45\cdots\frac{2n-1}{2n}\cdot\frac{2n}{2n+1}=\frac1{2n+1}. The inequality is strict because every replacement increases a positive factor. Taking square roots gives Pn<12n+1.\boxed{P_n<\frac1{\sqrt{2n+1}}.}