09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 245 Stirling’s triangle <strong>for</strong> cycles.<br />

n<br />

0<br />

1<br />

2c3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

1<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

1<br />

1<br />

2<br />

6<br />

24<br />

120<br />

720<br />

5040<br />

40320<br />

1<br />

3 1<br />

6.1 STIRLING NUMBERS 245<br />

11 6 1<br />

50 35 10 1<br />

274 225 85 15 1<br />

1764 1624 735 175 21 1<br />

13068 13132 6769 1960 322 28 1<br />

109584 118124 67284 22449 4536 546 36 1<br />

A modification of this argument leads to a recurrence by which we can<br />

compute {L} <strong>for</strong> all k: Given a set of n > 0 objects to be partitioned into k<br />

nonempty parts, we either put the last object into a class by itself (in {:I:}<br />

ways), or we put it together with some nonempty subset of the first n - 1<br />

objects. There are k{n,‘} possibilities in the latter case, because each of the<br />

{ “;‘} ways to distribute the first n - 1 objects into k nonempty parts gives<br />

k subsets that the nth object can join. Hence<br />

{;1) = k{rrk’}+{EI:}, integern>O.<br />

This is the law that generates Table 244; without the factor of k it would<br />

reduce to the addition <strong>for</strong>mula (5.8) that generates Pascal’s triangle.<br />

And now, Stirling numbers of the first kind. These are somewhat like<br />

the others, but [L] counts the number of ways to arrange n objects into k<br />

cycles instead of subsets. We verbalize ‘[;I’ by saying “n cycle k!’<br />

Cycles are cyclic arrangements, like the necklaces we considered in Chapter<br />

4. The cycle<br />

can be written more compactly as ‘[A, B, C, D]‘, with the understanding that<br />

[A,B,C,D] = [B,C,D,A] = [C,D,A,Bl = [D,A,B,Cl;<br />

a cycle “wraps around” because its end is joined to its beginning. On the other<br />

hand, the cycle [A, B, C, D] is not the same as [A, B, D, C] or [D, C, B, A].

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!