Lambert series and Ramanujan’s products

The geometric series is one of the first infinite sums we learn. For a number q between zero and one, it gives

\displaystyle 1+q+q^2+q^3+\cdots=\frac{1}{1-q}.

At first there seems to be little more to say about it. But what happens if we replace q successively by q^2,q^3,q^4,\ldots , add the resulting series, or multiply the corresponding factors? The coefficients begin to count divisors, partitions, and representations by sums of squares. In a few cases, an infinite product with coefficients of no obvious pattern turns into a series supported on a very thin set of exponents. These are the sorts of calculations that occur throughout the work of Euler, Jacobi, and Ramanujan. We will build them from the geometric series, checking small examples along the way. The deepest product identities will be distinguished from the elementary rearrangements that lead up to them.

Every series below can first be treated as a formal power series: to find the coefficient of q^N , we need only finitely many terms. Thus rearranging the relevant sums or products does not demand a theory of infinite sums. When we want a numerical value, we can instead choose q strictly between zero and one; the displayed series and products then converge in the places where we use them. Write d(N) for the number of positive divisors of N , and \sigma_r(N) for the sum of their r -th powers. In particular, \sigma_1(N) , often written simply \sigma(N) , is the sum of the divisors of N .

Lambert series, Divisors

Consider the sum

\displaystyle L(q)=\frac{q}{1-q}+\frac{q^2}{1-q^2}+\frac{q^3}{1-q^3}+\cdots.

We can read its coefficients without doing any difficult algebra. The summand with denominator 1-q^m is q^m+q^{2m}+q^{3m}+\cdots , so it contributes once to the coefficient of q^N precisely when m divides N . Consequently

\displaystyle L(q)=\sum_{m=1}^{\infty}\frac{q^m}{1-q^m} =\sum_{N=1}^{\infty}d(N)q^N=\sum_{a, b \ge 1}^{\infty} q^{ab}.

For instance, the coefficient of q^{12} receives one contribution from each of m=1,2,3,4,6,12 , and hence equals six. The first few terms are q+2q^2+2q^3+3q^4+2q^5+4q^6+\cdots . A series of simple fractions has produced the divisor-counting function. Sums of this general form are called Lambert series.

There is another way to see the same coefficient, and it gives our first less obvious identity. The sum L(q) is also \sum_{a,b\ge1}q^{ab} : each term corresponds to a rectangle whose two side lengths are positive integers, and whose area is the exponent of q . Separate the square rectangles a=b from the nonsquare rectangles. A nonsquare rectangle occurs in a pair, because interchanging its sides gives a second rectangle of the same area. If the smaller side is m , the larger side is m+1,m+2,\ldots . We obtain

\displaystyle \sum_{m=1}^{\infty}\frac{q^m}{1-q^m} =\sum_{m=1}^{\infty}q^{m^2} \left(1+\frac{2q^m}{1-q^m}\right) =\sum_{m=1}^{\infty}\frac{q^{m^2}(1+q^m)}{1-q^m}.

This identity looks quite different from the original Lambert series, but it is nothing more than the observation that each nonsquare rectangle can be turned on its side. At q^{12} , the rectangles are 1\times12,2\times6,3\times4 and their three reversals, giving the same answer, six.

Now put a weight m in the numerator of the m -th summand. Exactly the same expansion gives

\displaystyle \sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} =\sum_{N=1}^{\infty}\sigma_1(N)q^N.

At q^{12} , the coefficient is 1+2+3+4+6+12=28 . More generally, if we replace m by m^r , the coefficient of q^N becomes \sigma_r(N) . For example, \sigma_2(12)=1^2+2^2+3^2+4^2+6^2+12^2=210 . This is a useful habit: before trying to simplify a Lambert series, ask what each denominator contributes to one fixed coefficient.

A small change in the denominator produces a new identity. Since

\displaystyle \frac{q^m}{(1-q^m)^2} =q^m+2q^{2m}+3q^{3m}+\cdots,

its contribution at q^N , when m divides N , is N/m . But the quotients N/m run through the same divisors as m itself. Therefore

\displaystyle \sum_{m=1}^{\infty}\frac{q^m}{(1-q^m)^2} =\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m}.

This equality is easy to miss by looking only at the fractions. It comes from pairing every divisor m of N with the complementary divisor N/m . For N=6 , both sides give 1+2+3+6=12 . If instead we square the whole fraction, we obtain another divisor sum:

\displaystyle \sum_{m=1}^{\infty}\left(\frac{q^m}{1-q^m}\right)^2 =\sum_{N=1}^{\infty}\bigl(\sigma_1(N)-d(N)\bigr)q^N.

Indeed, q^{2m}/(1-q^m)^2 contributes N/m-1 when m divides N , and these contributions sum to \sigma_1(N)-d(N) . For N=4 , the answer is 7-3=4 . We have found several different-looking series simply by asking whether a divisor should be counted once, weighted by itself, or weighted by its complementary divisor.

Before leaving these small rearrangements, there are two more worth recording. Differentiating the original divisor-counting series term by term gives

\displaystyle qL'(q)=\sum_{m=1}^{\infty}\frac{m q^m}{(1-q^m)^2} =\sum_{N=1}^{\infty}N d(N)q^N.

This is simply the rule that differentiating q^N and then multiplying by q attaches the weight N to its coefficient. We can also raise the denominator to the third power. Since q^m/(1-q^m)^3 expands as \sum_{k\ge1}k(k+1)q^{km}/2 , its coefficient at q^N is half the sum of the divisors of N and their squares:

\displaystyle \sum_{m=1}^{\infty}\frac{q^m}{(1-q^m)^3} =\frac12\sum_{N=1}^{\infty}\bigl(\sigma_1(N)+\sigma_2(N)\bigr)q^N.

At N=4 , this gives (7+21)/2=14 . We could continue with higher powers of the denominator. The coefficients would involve still higher sums of powers of divisors. The important point is that no new idea is needed: expand one fraction, fix an exponent, and list the divisors that contribute.

The same trick gives a useful identity involving alternating signs. Expanding 1/(1+q^m) and reversing the role of the divisor and the quotient gives

\displaystyle \sum_{m=1}^{\infty}\frac{(-1)^{m-1}q^m}{1-q^m} =\sum_{m=1}^{\infty}\frac{q^m}{1+q^m}.

The coefficient of q^N on the left is \sum_{m\mid N}(-1)^{m-1} . The coefficient on the right is \sum_{m\mid N}(-1)^{N/m-1} . They agree because the divisors m and their complementary divisors N/m are the same set. With a factor of m , the same reasoning yields

\displaystyle \sum_{m=1}^{\infty}\frac{(-1)^{m-1}m q^m}{1-q^m} =\sum_{m=1}^{\infty}\frac{q^m}{(1+q^m)^2}.

These are not isolated coincidences. They are what happens whenever a double sum can be read either by rows or by columns.

One last parity example will be useful later. If we sum only over odd m , then the coefficient of q^N is the sum of the odd divisors of N . The even divisors are twice the divisors of N/2 , when N is even. Hence

\displaystyle \sum_{\substack{m\ge1\\m\,\mathrm{odd}}}\frac{m q^m}{1-q^m} =\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} -2\sum_{m=1}^{\infty}\frac{m q^{2m}}{1-q^{2m}}.

For N=12 , the odd divisors are 1 and 3 , whose sum is four; the expression on the right gives \sigma_1(12)-2\sigma_1(6)=28-24=4 . Later we will find the same subtraction inside the logarithmic derivative of an infinite product.

Partitions

A partition of N is a way of writing N as a sum of positive integers, without regard to order. For example, the partitions of five are 5 , 4+1 , 3+2 , 3+1+1 , 2+2+1 , 2+1+1+1 , and 1+1+1+1+1 . Thus the partition number p(5) is seven. A product of geometric series counts all partitions at once. The factor 1/(1-q^m)=1+q^m+q^{2m}+\cdots records how many parts of size m we choose. Multiplying the factors for every m records every partition exactly once:

\displaystyle A(q)=\prod_{m=1}^{\infty}\frac{1}{1-q^m} =\sum_{N=0}^{\infty}p(N)q^N.

The coefficients begin 1,1,2,3,5,7,11,15,\ldots . Notice the difference from a Lambert series. In the Lambert series, we choose a single divisor m ; in this product, we choose a number of parts for every possible m , all at once. Multiplication is the right operation because independent choices are made simultaneously.

Now take the logarithmic derivative of this product. Differentiating a product would normally give many terms, but dividing by the product itself makes them add. We find

\displaystyle q\frac{A'(q)}{A(q)} =\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} =\sum_{m=1}^{\infty}\sigma_1(m)q^m.

Thus the divisor-sum Lambert series is hidden in the rate of change of the partition product. Multiplying by A(q) and comparing coefficients gives an exact recurrence:

\displaystyle Np(N)=\sum_{j=1}^{N}\sigma_1(j)p(N-j), \qquad p(0)=1.

For N=4 , the right side is 1\cdot p(3)+3\cdot p(2)+4\cdot p(1)+7\cdot p(0)=3+6+4+7=20 . Division by four gives p(4)=5 . At N=5 , it gives p(5)=(5+9+8+7+6)/5=7 . A difficult-looking counting function is now computed recursively using ordinary divisor sums. This is one of the simplest examples of a product producing an arithmetic identity by differentiation.

There is another partition product, in which each part is allowed at most once:

\displaystyle B(q)=\prod_{m=1}^{\infty}(1+q^m).

Since 1+q^m=(1-q^{2m})/(1-q^m) , the factors of even degree cancel and give

\displaystyle \prod_{m=1}^{\infty}(1+q^m) =\prod_{\substack{m\ge1\\m\,\mathrm{odd}}}\frac{1}{1-q^m}.

The product on the left counts partitions into distinct parts, while the one on the right counts partitions into odd parts. Thus those two kinds of partitions are equally numerous for every integer. At five, the distinct-part partitions are 5 , 4+1 , and 3+2 . The odd-part partitions are 5 , 3+1+1 , and 1+1+1+1+1 . This identity is already striking because the two descriptions impose very different restrictions. But its proof was only one cancellation of products.

Differentiate this identity logarithmically. From the left we get \sum_{m\ge1}m q^m/(1+q^m) . From the right we get the Lambert series over odd m . Therefore

\displaystyle \sum_{m=1}^{\infty}\frac{m q^m}{1+q^m} =\sum_{\substack{m\ge1\\m\,\mathrm{odd}}}\frac{m q^m}{1-q^m}.

We met the coefficients on the right a moment ago: they are the sums of the odd divisors. The same product identity has therefore given both a theorem about partitions and a theorem about divisor sums. This is why it is useful to move freely between a product, its power-series expansion, and its logarithmic derivative.

We can go further by fixing the number of distinct parts. Suppose there are exactly k of them, written in increasing order. Their smallest possible values are 1,2,\ldots,k , whose sum is k(k+1)/2 . We may then add nonnegative amounts to these numbers, keeping their order. Such choices are counted by 1/((1-q)(1-q^2)\cdots(1-q^k)) . Consequently

\displaystyle \prod_{m=1}^{\infty}(1+q^m) =\sum_{k=0}^{\infty}\frac{q^{k(k+1)/2}} {(1-q)(1-q^2)\cdots(1-q^k)}.

For k=2 , the first possible pair is 1+2=3 , accounting for the factor q^3 . The coefficient of q^5 in the k=2 term is two, corresponding to 1+4 and 2+3 . We have turned an infinite product into a sum with triangular-number exponents using only a description of how to choose distinct integers.

There is a similar sum for unrestricted partitions. Draw a partition as rows of dots, with the row lengths in decreasing order. Inside this picture choose the largest square that fits in its upper-left corner. If that square has side k , it contributes k^2 dots. The dots to its right form a partition with at most k rows, and the dots below it form a partition with largest part at most k . Each of those two remaining pieces has generating function 1/((1-q)\cdots(1-q^k)) . As the largest square is unique, every partition is counted once:

\displaystyle \prod_{m=1}^{\infty}\frac{1}{1-q^m} =\sum_{k=0}^{\infty}\frac{q^{k^2}} {\bigl((1-q)(1-q^2)\cdots(1-q^k)\bigr)^2}.

For example, the partition 7=4+2+1 has a square of side two. Its four dots are accompanied by two dots on the right and one below, giving 4+2+1=7 . This formula looks like a complicated infinite-series identity, yet it comes directly from cutting the picture of a partition into three pieces.

Euler

So far products have produced power series with many nonzero coefficients. Euler found that the opposite can also happen. Define

\displaystyle P(q)=\prod_{m=1}^{\infty}(1-q^m)=\frac{1}{A(q)}.

Multiplying the first few factors suggests that many terms cancel. Euler’s pentagonal number theorem says exactly which ones survive:

\displaystyle P(q)=\sum_{k=-\infty}^{\infty}(-1)^kq^{k(3k-1)/2} =1-q-q^2+q^5+q^7-q^{12}-q^{15}+q^{22}+\cdots.

The exponents 1,2,5,7,12,15,\ldots come from the two sequences k(3k-1)/2 and k(3k+1)/2 . No other powers occur. This is a much stronger cancellation than we could have guessed from multiplying a few factors. To see why it is true, it helps to establish one product identity that also contains several other formulas we want.

For nonnegative integers M and j with j at most M , write

\displaystyle {M\brack j}_q= \frac{(1-q^{M-j+1})(1-q^{M-j+2})\cdots(1-q^M)} {(1-q)(1-q^2)\cdots(1-q^j)}.

Empty products have value one. These expressions occur when we expand a finite product. In fact,

\displaystyle \prod_{r=0}^{M-1}(1+zq^r) =\sum_{j=0}^{M}z^j q^{j(j-1)/2}{M\brack j}_q.

Here is a quick proof. For M=1 , both sides are 1+z . If we multiply the formula for M-1 by 1+zq^{M-1} , the coefficient of z^j comes from choosing j powers in the old product or choosing j-1 powers and the new factor. The two coefficients combine by the identity

\displaystyle {M\brack j}_q={M-1\brack j}_q+q^{M-j}{M-1\brack j-1}_q,

which follows by bringing the two fractions to a common denominator. This proves the finite expansion by induction. The symbols are only abbreviations for finite products, not new objects that we need to study separately.

Now use this finite formula to expand the two-sided product

\displaystyle \prod_{r=1}^{N}(1+zq^r) \prod_{r=0}^{N-1}(1+z^{-1}q^r).

Multiplying the second group of factors by suitable powers of zq^r turns it into one product of 2N factors. The finite formula then gives the exact identity

\displaystyle \prod_{r=1}^{N}(1+zq^r) \prod_{r=0}^{N-1}(1+z^{-1}q^r) =\sum_{k=-N}^{N}z^kq^{k(k+1)/2}{2N\brack N+k}_q.

For N=1 , this reads (1+zq)(1+z^{-1})=z^{-1}+(1+q)+zq , so we can see every term. For fixed k , the finite product defining {2N\brack N+k}_q tends, as N grows, to 1/P(q) . Multiply the identity by P(q) and let N grow. We obtain Jacobi’s triple product identity:

\displaystyle \sum_{k=-\infty}^{\infty}z^kq^{k(k+1)/2} =P(q)\prod_{m=1}^{\infty}(1+zq^m)(1+z^{-1}q^{m-1}).

The proof was a finite expansion followed by a limit. For a fixed power of q , we can also take that limit purely by comparing coefficients, so there is no difficulty hidden in rearranging infinitely many terms. The identity is very powerful: by changing z or replacing q with a power of itself, we get several very different series-product identities.

To recover Euler’s theorem, replace q by q^3 and take z=-q^{-1} . The three product factors then have exponents 3m , 3m-1 , and 3m-2 . Together they include every positive integer once, so the right side is simply P(q) . The left side becomes \sum_{k\in\mathbb Z}(-1)^kq^{k(3k+1)/2} . Replacing k by -k gives exactly Euler’s pentagonal series. We have therefore proved the sparse expansion of P(q) , rather than merely observed it in a table of coefficients. Since P(q)A(q)=1 , this sparse series also produces a second recurrence for the partition numbers. Compare coefficients of q^N in the product:

\displaystyle p(N)=p(N-1)+p(N-2)-p(N-5)-p(N-7)+p(N-12)+\cdots,

where terms with negative arguments are omitted. At N=5 , this gives p(5)=p(4)+p(3)-p(0)=5+3-1=7 . The earlier recurrence used all divisor sums up to N ; this new recurrence uses only the generalized pentagonal numbers. The two methods compute exactly the same sequence, but they come from different ways of using the same product.

Triangular numbers and sums of squares

Set z=1 in Jacobi’s triple product. The terms with indices k and -k-1 are equal, so the series on the left is twice the series of triangular numbers T_k=k(k+1)/2 . On the product side, the factor with exponent zero is two, and the remaining factors can be simplified using 1+q^m=(1-q^{2m})/(1-q^m) . After canceling the common factor two, we get Gauss’s identity

\displaystyle \sum_{k=0}^{\infty}q^{k(k+1)/2} =\prod_{m=1}^{\infty}\frac{(1-q^{2m})^2}{1-q^m}.

The left side begins 1+q+q^3+q^6+q^{10}+q^{15}+\cdots . A quotient of products, each containing many terms, has turned into a series whose nonzero coefficients are all one and occur precisely at triangular numbers. Compare this with Euler’s theorem: in one case, the surviving exponents are generalized pentagonal numbers and the signs alternate; in the other, they are triangular numbers and all the signs are positive. Both statements came from a single product identity.

Another choice gives a series involving squares. Replace q by q^2 and choose z=-q^{-1} . The left side becomes \sum_{k\in\mathbb Z}(-1)^kq^{k^2} . On the right, the factors of odd degree occur twice. Simplifying, we obtain

\displaystyle \Theta_-(q)=\sum_{k=-\infty}^{\infty}(-1)^kq^{k^2} =\prod_{m=1}^{\infty}(1-q^{2m})(1-q^{2m-1})^2 =\prod_{m=1}^{\infty}\frac{1-q^m}{1+q^m}.

Thus \Theta_-(q)=1-2q+2q^4-2q^9+\cdots . The last product makes it possible to differentiate the series without differentiating the exponents k^2 individually. From its logarithmic derivative we obtain

\displaystyle q\frac{\Theta_-'(q)}{\Theta_-(q)} =-\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} -\sum_{m=1}^{\infty}\frac{m q^m}{1+q^m} =-2\sum_{m=1}^{\infty}\frac{m q^m}{1-q^{2m}}.

We have found a Lambert series by differentiating a theta product. Its first terms are -2q-4q^2-8q^3-8q^4-\cdots , as can also be checked by differentiating 1-2q+2q^4+\cdots and dividing by that series. This is another instance of the same principle: an infinite product provides the bridge between a sparse power series and a divisor-weighted series.

There is also a theta series without alternating signs:

\displaystyle \Theta(q)=\sum_{k=-\infty}^{\infty}q^{k^2} =1+2q+2q^4+2q^9+\cdots.

The coefficient of q^N in \Theta(q)^2 counts the integer pairs (x,y) for which x^2+y^2=N , with order and signs included. Jacobi proved a further identity, connecting this square directly to a Lambert series:

\displaystyle \Theta(q)^2 =1+4\sum_{j=0}^{\infty}\frac{(-1)^j q^{2j+1}}{1-q^{2j+1}}.

This identity requires an additional theta-series argument beyond the triple-product specializations we just proved; we use it here as a classical result. The coefficient of q^N on the right is four times the number of divisors of N congruent to one modulo four minus four times the number congruent to three modulo four. For N=5 , the divisors 1,5 both contribute positively, giving eight representations: (\pm1,\pm2) and (\pm2,\pm1) . For N=3 , the divisors 1,3 cancel, correctly giving no representation. The Lambert series has translated a problem about two squares into a simple test on the divisors of N .

The fourth power has an even cleaner divisor formula. Write r_4(N) for the number of ordered signed solutions of x_1^2+x_2^2+x_3^2+x_4^2=N . Jacobi’s four-square identity is

\displaystyle \Theta(q)^4 =1+8\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} -32\sum_{m=1}^{\infty}\frac{m q^{4m}}{1-q^{4m}}.

Comparing coefficients gives

\displaystyle r_4(N)=8\sum_{\substack{d\mid N\\4\nmid d}}d.

For N=2 , the sum is 1+2=3 , giving r_4(2)=24 : choose the two positions of the ones in six ways and their two signs in four ways. For N=3 , the formula gives 8(1+3)=32 ; directly, three coordinates are \pm1 and one is zero, giving 4\cdot8=32 . For N=4 , the divisor four is excluded, so the answer is 8(1+2)=24 . The formula is another classical theta identity, not a result of simply differentiating the earlier products, but its Lambert-series form makes the divisor count immediate.

The same kind of identity exists for eight squares, and now cubes of divisors appear. Let r_8(N) count the ordered signed solutions of x_1^2+\cdots+x_8^2=N . A second formula of Jacobi gives

\displaystyle r_8(N)=16\sum_{d\mid N}(-1)^{N+d}d^3.

For N=1 , this is sixteen, one for each choice of which of the eight coordinates is \pm1 . For N=2 , it is 16(-1+8)=112 , agreeing with \binom82\cdot4 : choose the positions of two ones and then their signs. For N=3 , it gives 16(1+27)=448 , which is \binom83\cdot8 . We have seen divisor counts, sums of divisors, and now sums of cubes of divisors arising from very concrete counting problems. The eight-square formula is another separate theta identity; its short divisor expression does not make its proof automatic.

We can also count sums of two triangular numbers. The identity 8T_k+1=(2k+1)^2 gives

\displaystyle 8(T_a+T_b)+2=(2a+1)^2+(2b+1)^2.

Thus counting nonnegative ordered pairs (a,b) with T_a+T_b=N is the same as counting representations of 8N+2 by two odd squares, with the four choices of signs removed. The two-square divisor formula then gives a neat answer:

\displaystyle \#\{(a,b):T_a+T_b=N\} =\sum_{d\mid 4N+1}(-1)^{(d-1)/2}.

All divisors of 4N+1 are odd, so the sign is always meaningful. For N=1 , the right side is two, corresponding to 0+1 and 1+0 . For N=2 , it is 1-1+1=1 , corresponding to 1+1 . We have gone from Gauss’s triangular-number product to a precise statement about integer solutions, using Jacobi’s two-square identity as the link.

Ramanujan’s tau function

The weighted Lambert series from the beginning are also the building blocks of three series that Ramanujan studied together. To keep the formulas short, put

\displaystyle \begin{aligned} E_2(q)&=1-24\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m},\\ E_4(q)&=1+240\sum_{m=1}^{\infty}\frac{m^3q^m}{1-q^m},\\ E_6(q)&=1-504\sum_{m=1}^{\infty}\frac{m^5q^m}{1-q^m}. \end{aligned}

Every coefficient is a familiar divisor sum. For example, E_2(q)=1-24q-72q^2-96q^3-168q^4-\cdots , since \sigma_1(1)=1 , \sigma_1(2)=3 , \sigma_1(3)=4 , and \sigma_1(4)=7 . Likewise E_4(q)=1+240q+2160q^2+6720q^3+\cdots . The numbers 24,240,504 are chosen because these three series then satisfy particularly simple relations. We will not need to explain their origin to use them.

Consider the product

\displaystyle \Delta(q)=q\prod_{m=1}^{\infty}(1-q^m)^{24} =\sum_{N=1}^{\infty}\tau(N)q^N.

The first terms are q-24q^2+252q^3-1472q^4+4830q^5+\cdots . The coefficients \tau(N) are Ramanujan’s tau numbers. A logarithmic derivative brings us straight back to the Lambert series:

\displaystyle q\frac{\Delta'(q)}{\Delta(q)} =1-24\sum_{m=1}^{\infty}\frac{m q^m}{1-q^m} =E_2(q).

This gives an exact recurrence. Multiply by \Delta(q) and compare the coefficient of q^N :

\displaystyle (N-1)\tau(N) =-24\sum_{j=1}^{N-1}\sigma_1(j)\tau(N-j), \qquad \tau(1)=1.

At N=2 , we get \tau(2)=-24 . At N=3 , we get 2\tau(3)=-24(-24+3)=504 , so \tau(3)=252 . At N=4 , the equation gives 3\tau(4)=-24(252-72+4)=-4416 , hence \tau(4)=-1472 . The recurrence is derived in two lines, even though the coefficients of the original product look difficult to predict. It is a good example of the concrete information hidden in a product’s logarithmic derivative.

Ramanujan found that the three series E_2,E_4,E_6 also satisfy a closed system of differential identities. Write D=q\,d/dq . Then

\displaystyle \begin{aligned} D E_2&=\frac{E_2^2-E_4}{12},\\ D E_4&=\frac{E_2E_4-E_6}{3},\\ D E_6&=\frac{E_2E_6-E_4^2}{2}. \end{aligned}

These are deeper identities: they are not obtained from a single geometric-series expansion, and we take them as given without a proof. But their meaning is completely concrete. For instance, compare the coefficient of q^N in the first identity. Writing \sigma=\sigma_1 , we find

\displaystyle \sum_{j=1}^{N-1}\sigma(j)\sigma(N-j) =\frac{5\sigma_3(N)+(1-6N)\sigma(N)}{12}.

At N=3 , the left side is \sigma(1)\sigma(2)+\sigma(2)\sigma(1)=1\cdot3+3\cdot1=6 . The right side gives (5\cdot28-17\cdot4)/12=6 . What first looks like a sum involving all pairs of smaller integers has collapsed into two divisor sums of N itself. This is characteristic of Ramanujan’s manipulations: one multiplies or differentiates Lambert series and finds that complicated-looking coefficient sums simplify.

There is a related identity involving just E_4 :

\displaystyle E_4(q)^2=1+480\sum_{m=1}^{\infty}\frac{m^7q^m}{1-q^m}.

The coefficient comparison is especially simple:

\displaystyle \sum_{j=1}^{N-1}\sigma_3(j)\sigma_3(N-j) =\frac{\sigma_7(N)-\sigma_3(N)}{120}.

At N=2 , it reads 1=(129-9)/120 . At N=3 , it reads 18=(2188-28)/120 . Again, the displayed identity for E_4^2 is an additional theorem; the coefficient calculation following it is elementary. The point is to see what kind of arithmetic information a product of divisor-generating series can contain.

There is a numerical side to these Lambert series as well. Put q=e^{-2\pi} into the first and third series above. A further symmetry of the theta products, not proved by the power-series arguments in this post, yields the exact evaluations

\displaystyle \sum_{m=1}^{\infty}\frac{m}{e^{2\pi m}-1} =\frac{1}{24}-\frac{1}{8\pi}, \qquad \sum_{m=1}^{\infty}\frac{m^5}{e^{2\pi m}-1} =\frac{1}{504}.

The first terms on the left already give good numerical approximations, because the denominators grow rapidly. Yet the precise answers involve \pi and a simple rational number. These are the kinds of special values that make Ramanujan’s series feel different from ordinary geometric sums. Their proofs need an extra relation between the series at two related values of q ; they are included to show where the elementary Lambert-series calculations can lead, not as consequences we have established here.

We can return to partitions for an example of a different kind. Consider partitions whose parts, listed from largest to smallest, differ by at least two. If there are exactly k parts, their smallest possible values are 1,3,5,\ldots,2k-1 , whose sum is k^2 . Subtracting these minimum values leaves an ordinary partition with at most k parts. Thus the generating function for these restricted partitions is

\displaystyle R_1(q)=\sum_{k=0}^{\infty}\frac{q^{k^2}} {(1-q)(1-q^2)\cdots(1-q^k)}.

If the smallest part must be at least two, the minimum values become 2,4,6,\ldots,2k , with sum k(k+1) , so the corresponding series is

\displaystyle R_2(q)=\sum_{k=0}^{\infty}\frac{q^{k(k+1)}} {(1-q)(1-q^2)\cdots(1-q^k)}.

Nothing mysterious has happened yet. Both sums come from counting partitions with a restriction on the gaps between consecutive parts. The surprise is that Rogers and Ramanujan found simple product descriptions for them:

\displaystyle \begin{aligned} R_1(q)&=\prod_{m=0}^{\infty}\frac{1}{(1-q^{5m+1})(1-q^{5m+4})},\\ R_2(q)&=\prod_{m=0}^{\infty}\frac{1}{(1-q^{5m+2})(1-q^{5m+3})}. \end{aligned}

The products count partitions into parts that leave remainders 1,4 , or respectively 2,3 , when divided by five. Thus two very different conditions—a gap between consecutive parts and a condition on the allowed remainders—give the same numbers of partitions. At five, the partitions with gaps at least two are 5 and 4+1 ; the partitions using only parts congruent to one or four modulo five are 1+1+1+1+1 and 4+1 . At seven, the gap-at-least-two partitions with smallest part at least two are 7 and 5+2 ; the permitted parts on the product side give 7 and 3+2+2 . These examples do not prove the identities, whose complete proofs require additional finite-series arguments, but they show exactly what the identities assert.

One of Ramanujan’s most useful partition formulas has a different appearance. Recall that p(N) counts all partitions of N , and write P(q)=\prod_{m\ge1}(1-q^m) . Ramanujan established

\displaystyle \sum_{N=0}^{\infty}p(5N+4)q^N =5\frac{P(q^5)^5}{P(q)^6}.

Every coefficient of the product on the right is an integer, and a factor of five stands in front. It follows at once that p(5N+4) is divisible by five for every nonnegative N . The first cases are p(4)=5 , p(9)=30 , and p(14)=135 . The formula itself is not a consequence of the simple product cancellations we have used; it is a further identity discovered and proved by Ramanujan. But once the identity is known, the congruence needs no separate argument. The product makes the divisibility visible.

He also obtained a companion identity for the numbers p(7N+5) :

\displaystyle \sum_{N=0}^{\infty}p(7N+5)q^N =7\frac{P(q^7)^3}{P(q)^4} +49q\frac{P(q^7)^7}{P(q)^8}.

Both terms on the right have coefficients divisible by seven. Thus p(7N+5) is divisible by seven. For N=0 we have p(5)=7 ; for N=1 , the coefficient calculation gives 7\cdot4+49=77=p(12) ; for N=2 , it gives 7\cdot14+49\cdot8=490=p(19) . Here a congruence for a sequence that counts partitions has been turned into an immediate consequence of an identity between products. This is another reason such identities are worth seeking: their right sides may display arithmetic facts that are almost invisible on their left sides.

The examples we saw have followed several paths from the same starting point. Expanding denominators produced divisor sums. Multiplying denominators produced partitions. Taking logarithmic derivatives connected the two. The finite product formula produced Jacobi’s triple product, and special choices in that identity gave Euler’s pentagonal numbers, Gauss’s triangular numbers, and a theta series of squares. Other theta identities turned sums of squares into divisor formulas. Finally, the formulas of Rogers and Ramanujan showed that even when the sum and the product have completely different descriptions, their coefficients can still agree.

The elementary manipulations do not prove every identity in this collection. They do show how to read the identities and why they are natural to search for: The beauty of infinite series is that they allow us to study infinitely many objects at once. Instead of counting numbers, divisors, or partitions one by one, we can collect all of them into a single expression, with the coefficient of each power recording something about the objects we want to count. Once these infinitely many pieces of information are brought together, ordinary algebraic operations begin to reveal relations between them. Multiplying two series combines the objects they count; differentiating a series gives different weights to its coefficients; and rearranging a sum may reveal a pattern that was not visible in its original form. What first looks like a formal expression involving infinitely many terms can therefore contain a surprising amount of arithmetic information. The point is that by summing over all possibilities at once, we can sometimes discover identities that would be very difficult to see by studying each possibility separately.

Leave a Reply