The geometric series is one of the first infinite sums we learn. For a number between zero and one, it gives
At first there seems to be little more to say about it. But what happens if we replace successively by
, 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 , 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
strictly between zero and one; the displayed series and products then converge in the places where we use them. Write
for the number of positive divisors of
, and
for the sum of their
-th powers. In particular,
, often written simply
, is the sum of the divisors of
.
Lambert series, Divisors
Consider the sum
We can read its coefficients without doing any difficult algebra. The summand with denominator is
, so it contributes once to the coefficient of
precisely when
divides
. Consequently
For instance, the coefficient of receives one contribution from each of
, and hence equals six. The first few terms are
. 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 is also
: each term corresponds to a rectangle whose two side lengths are positive integers, and whose area is the exponent of
. Separate the square rectangles
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
, the larger side is
. We obtain
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 , the rectangles are
and their three reversals, giving the same answer, six.
Now put a weight in the numerator of the
-th summand. Exactly the same expansion gives
At , the coefficient is
. More generally, if we replace
by
, the coefficient of
becomes
. For example,
. 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
its contribution at , when
divides
, is
. But the quotients
run through the same divisors as
itself. Therefore
This equality is easy to miss by looking only at the fractions. It comes from pairing every divisor of
with the complementary divisor
. For
, both sides give
. If instead we square the whole fraction, we obtain another divisor sum:
Indeed, contributes
when
divides
, and these contributions sum to
. For
, the answer is
. 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
This is simply the rule that differentiating and then multiplying by
attaches the weight
to its coefficient. We can also raise the denominator to the third power. Since
expands as
, its coefficient at
is half the sum of the divisors of
and their squares:
At , this gives
. 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 and reversing the role of the divisor and the quotient gives
The coefficient of on the left is
. The coefficient on the right is
. They agree because the divisors
and their complementary divisors
are the same set. With a factor of
, the same reasoning yields
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 , then the coefficient of
is the sum of the odd divisors of
. The even divisors are twice the divisors of
, when
is even. Hence
For , the odd divisors are
and
, whose sum is four; the expression on the right gives
. Later we will find the same subtraction inside the logarithmic derivative of an infinite product.
Partitions
A partition of is a way of writing
as a sum of positive integers, without regard to order. For example, the partitions of five are
,
,
,
,
,
, and
. Thus the partition number
is seven. A product of geometric series counts all partitions at once. The factor
records how many parts of size
we choose. Multiplying the factors for every
records every partition exactly once:
The coefficients begin . Notice the difference from a Lambert series. In the Lambert series, we choose a single divisor
; in this product, we choose a number of parts for every possible
, 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
Thus the divisor-sum Lambert series is hidden in the rate of change of the partition product. Multiplying by and comparing coefficients gives an exact recurrence:
For , the right side is
. Division by four gives
. At
, it gives
. 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:
Since , the factors of even degree cancel and give
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 ,
, and
. The odd-part partitions are
,
, and
. 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 . From the right we get the Lambert series over odd
. Therefore
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 of them, written in increasing order. Their smallest possible values are
, whose sum is
. We may then add nonnegative amounts to these numbers, keeping their order. Such choices are counted by
. Consequently
For , the first possible pair is
, accounting for the factor
. The coefficient of
in the
term is two, corresponding to
and
. 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 , it contributes
dots. The dots to its right form a partition with at most
rows, and the dots below it form a partition with largest part at most
. Each of those two remaining pieces has generating function
. As the largest square is unique, every partition is counted once:
For example, the partition has a square of side two. Its four dots are accompanied by two dots on the right and one below, giving
. 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
Multiplying the first few factors suggests that many terms cancel. Euler’s pentagonal number theorem says exactly which ones survive:
The exponents come from the two sequences
and
. 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 and
with
at most
, write
Empty products have value one. These expressions occur when we expand a finite product. In fact,
Here is a quick proof. For , both sides are
. If we multiply the formula for
by
, the coefficient of
comes from choosing
powers in the old product or choosing
powers and the new factor. The two coefficients combine by the identity
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
Multiplying the second group of factors by suitable powers of turns it into one product of
factors. The finite formula then gives the exact identity
For , this reads
, so we can see every term. For fixed
, the finite product defining
tends, as
grows, to
. Multiply the identity by
and let
grow. We obtain Jacobi’s triple product identity:
The proof was a finite expansion followed by a limit. For a fixed power of , 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
or replacing
with a power of itself, we get several very different series-product identities.
To recover Euler’s theorem, replace by
and take
. The three product factors then have exponents
,
, and
. Together they include every positive integer once, so the right side is simply
. The left side becomes
. Replacing
by
gives exactly Euler’s pentagonal series. We have therefore proved the sparse expansion of
, rather than merely observed it in a table of coefficients. Since
, this sparse series also produces a second recurrence for the partition numbers. Compare coefficients of
in the product:
where terms with negative arguments are omitted. At , this gives
. The earlier recurrence used all divisor sums up to
; 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 in Jacobi’s triple product. The terms with indices
and
are equal, so the series on the left is twice the series of triangular numbers
. On the product side, the factor with exponent zero is two, and the remaining factors can be simplified using
. After canceling the common factor two, we get Gauss’s identity
The left side begins . 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 by
and choose
. The left side becomes
. On the right, the factors of odd degree occur twice. Simplifying, we obtain
Thus . The last product makes it possible to differentiate the series without differentiating the exponents
individually. From its logarithmic derivative we obtain
We have found a Lambert series by differentiating a theta product. Its first terms are , as can also be checked by differentiating
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:
The coefficient of in
counts the integer pairs
for which
, with order and signs included. Jacobi proved a further identity, connecting this square directly to a Lambert series:
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 on the right is four times the number of divisors of
congruent to one modulo four minus four times the number congruent to three modulo four. For
, the divisors
both contribute positively, giving eight representations:
and
. For
, the divisors
cancel, correctly giving no representation. The Lambert series has translated a problem about two squares into a simple test on the divisors of
.
The fourth power has an even cleaner divisor formula. Write for the number of ordered signed solutions of
. Jacobi’s four-square identity is
Comparing coefficients gives
For , the sum is
, giving
: choose the two positions of the ones in six ways and their two signs in four ways. For
, the formula gives
; directly, three coordinates are
and one is zero, giving
. For
, the divisor four is excluded, so the answer is
. 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 count the ordered signed solutions of
. A second formula of Jacobi gives
For , this is sixteen, one for each choice of which of the eight coordinates is
. For
, it is
, agreeing with
: choose the positions of two ones and then their signs. For
, it gives
, which is
. 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 gives
Thus counting nonnegative ordered pairs with
is the same as counting representations of
by two odd squares, with the four choices of signs removed. The two-square divisor formula then gives a neat answer:
All divisors of are odd, so the sign is always meaningful. For
, the right side is two, corresponding to
and
. For
, it is
, corresponding to
. 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
Every coefficient is a familiar divisor sum. For example, , since
,
,
, and
. Likewise
. The numbers
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
The first terms are . The coefficients
are Ramanujan’s tau numbers. A logarithmic derivative brings us straight back to the Lambert series:
This gives an exact recurrence. Multiply by and compare the coefficient of
:
At , we get
. At
, we get
, so
. At
, the equation gives
, hence
. 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 also satisfy a closed system of differential identities. Write
. Then
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 in the first identity. Writing
, we find
At , the left side is
. The right side gives
. What first looks like a sum involving all pairs of smaller integers has collapsed into two divisor sums of
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 :
The coefficient comparison is especially simple:
At , it reads
. At
, it reads
. Again, the displayed identity for
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 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
The first terms on the left already give good numerical approximations, because the denominators grow rapidly. Yet the precise answers involve 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
; 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 parts, their smallest possible values are
, whose sum is
. Subtracting these minimum values leaves an ordinary partition with at most
parts. Thus the generating function for these restricted partitions is
If the smallest part must be at least two, the minimum values become , with sum
, so the corresponding series is
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:
The products count partitions into parts that leave remainders , or respectively
, 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
and
; the partitions using only parts congruent to one or four modulo five are
and
. At seven, the gap-at-least-two partitions with smallest part at least two are
and
; the permitted parts on the product side give
and
. 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 counts all partitions of
, and write
. Ramanujan established
Every coefficient of the product on the right is an integer, and a factor of five stands in front. It follows at once that is divisible by five for every nonnegative
. The first cases are
,
, and
. 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 :
Both terms on the right have coefficients divisible by seven. Thus is divisible by seven. For
we have
; for
, the coefficient calculation gives
; for
, it gives
. 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.