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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.1 STIRLING NUMBERS 247<br />

We can derive a recurrence <strong>for</strong> [z] by modifying the argument we used<br />

<strong>for</strong> {L}. Every arrangement of n objects in k cycles either puts the last object<br />

into a cycle by itself (in [:::I wa y s ) or inserts that object into one of the [“;‘I<br />

cycle arrangements of the first n- 1 objects. In the latter case, there are n- 1<br />

different ways to do the insertion. (This takes some thought, but it’s not hard<br />

to verify that there are j ways to put a new element into a j-cycle in order to<br />

make a (j + 1)-cycle. When j = 3, <strong>for</strong> example, the cycle [A, B, C] leads to<br />

[A, B, C, Dl , [A,B,D,Cl, o r [A,D,B,Cl<br />

when we insert a new element D, and there are no other possibilities. Summing<br />

over all j gives a total of n- 1 ways to insert an nth object into a cycle<br />

decomposition of n - 1 objects.) The desired recurrence is there<strong>for</strong>e<br />

n<br />

[I k<br />

= (n-l)[ni’] + [:I:], integern>O.<br />

This is the addition-<strong>for</strong>mula analog that generates Table 245.<br />

Comparison of (6.8) and (6.3) shows that the first term on the right side is<br />

multiplied by its upper index (n- 1) in the case of Stirling cycle numbers, but<br />

by its lower index k in the case of Stirling subset numbers. We can there<strong>for</strong>e<br />

per<strong>for</strong>m “absorption” in terms like n[z] and k{ T}, when we do proofs by<br />

mathematical induction.<br />

Every permutation is equivalent to a set of cycles. For example, consider<br />

the permutation that takes 123456789 into 384729156. We can conveniently<br />

represent it in two rows,<br />

123456789<br />

384729156,<br />

showing that 1 goes to 3 and 2 goes to 8, etc. The cycle structure comes<br />

about because 1 goes to 3, which goes to 4, which goes to 7, which goes back<br />

to 1; that’s the cycle [1,3,4,7]. Another cycle in this permutation is [2,8,5];<br />

still another is [6,91. There<strong>for</strong>e the permutation 384729156 is equivalent to<br />

the cycle arrangement<br />

[1,3,4,7l L&8,51 691.<br />

If we have any permutation rr1 rrz . . . rr, of { 1,2,. . . , n}, every element is in a<br />

unique cycle. For if we start with mu = m and look at ml = rrmor ml = rrm,,<br />

etc., we must eventually come back to mk = TQ. (The numbers must repeat<br />

sooner or later, and the first number to reappear must be mc because<br />

we know the unique predecessors of the other numbers ml, ml, . . . , m-1 .)<br />

There<strong>for</strong>e every permutation defines a cycle arrangement. Conversely, every

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

Saved successfully!

Ooh no, something went wrong!