Mth 232 Discrete Math banner

Mth 232 Note - Spring 1999
Leonhard Euler
1707-1783

k-combinations with repetition according to Euler

The formula for the number of  k-combinations with repetition was derived by Leonhard Euler (1707-1783). Euler's argument goes as follows:

Suppose we have  n  distinct objects. We can label them with the integers from  1  to  n.  Now consider a  k-combination, that is, an unordered selection of  k  integers, possibly with repetitions, from among 1....n, say  i1, i2, ..., ik.  Even though we do not care about the order, we can certainly arrange the selected integers in order, for convenience in counting the possibilities. Suppose therefore that the sequence  i1, i2, ..., ik  is in nondecreasing order (that is, increasing, but not strictly). Then the sequence

i1, i2+1, i3+2, ..., ik+(k-1)

is a strictly increasing sequence of  k  integers selected from the integers from  1  to  n+k-1.  Moreover each such sequence can occur. The number of such sequences is the number of  k-combinations, without repetition, from  n+k-1  distinct objects. Thus the number of  k-combinations, with repetitions, from  n  distinct object is

binomial_001.gif (1268 bytes)

Here is another way to view k-cominations: suppose we have n distinct cells (boxes) and k indistinguishable objects (think of x's) to place in the cells. How many ways can it be done? Order the cells, so we can refer to them by number. Lay out the objects (the x's) in a line. Place dividers between them to divide them into lots that go in successive cells. We will require n-1 dividers. A configuration of objects and dividers looks like

xxx|xx|xxxx|||xx|xxx

Here 3 x's go in the first cell, 2 x's in the second, 4 x's in the third, none in the fourth, and so on. Each such configuration is completely determined by the location of the dividers. Thus we must choose n-1 locations out of a total of n+k-1 locations for the dividers. This can be done in C(n+k-1,n-1)= C(n+k-1,k) ways.

Now the configuration above can also be described without the dividers simply by labelling each x according to the cell it goes in, for example by using succesive letters of the alphabet. Thus the configuration above could be described by

aaabbccccffgg

We see immediately that C(n+k-1,n-1)= C(n+k-1,k) is equal to the number of possibly distinct partial derivatives of total order k for a function of n variables.


Mth 232 Index