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.

244 SPECIAL NUMBERS<br />

Table 244 Stirling’s triangle <strong>for</strong> subsets.<br />

q---mnni;) Cl (751 Cl Cl {aI 13<br />

0 1<br />

1 0 1<br />

2 0 1 1<br />

3 0 1 3 1<br />

4 0 1 7 6 1<br />

5 0 1 15 25 10 1<br />

6 0 1 31 90 65 15 1<br />

7 0 1 63 301 350 140 21 1<br />

8 0 1 127 966 1701 1050 266 28 1<br />

9 0 1 255 3025 7770 6951 2646 462 36 1<br />

Stirling numbers of the second kind show up more often than those of<br />

the other variety, so let’s consider last things first. The symbol {i} stands <strong>for</strong> (Stirling himself<br />

the number of ways to partition a set of n things into k nonempty subsets. ~~~fi~d~~!<br />

For example, there are seven ways to split a four-element set into two parts: book [281].)<br />

{1,2,3IuI41, u,2,4u31, U,3,4IuI21, 12,3,4uUl,<br />

{1,2IuI3,41, Il,3ICJ{2,41, u,4wv,3h (6.1)<br />

thus {i} = 7. Notice that curly braces are used to denote sets as well as<br />

the numbers {t} . This notational kinship helps us remember the meaning of<br />

CL which can be read “n subset k!’<br />

Let’s look at small k. There’s just one way to put n elements into a single<br />

nonempty set; hence { ‘,‘} = 1, <strong>for</strong> all n > 0. On the other hand {y} = 0,<br />

because a O-element set is empty.<br />

The case k = 0 is a bit tricky. Things work out best if we agree that<br />

there’s just one way to partition an empty set into zero nonempty parts; hence<br />

{i} = 1. But a nonempty set needs at least one part, so {i} = 0 <strong>for</strong> n > 0.<br />

What happens when k == 2? Certainly {i} = 0. If a set of n > 0 objects<br />

is divided into two nonempty parts, one of those parts contains the last object<br />

and some subset of the first n - 1 objects. There are 2+’ ways to choose the<br />

latter subset, since each of the first n - 1 objects is either in it or out of it;<br />

but we mustn’t put all of those objects in it, because we want to end up with<br />

two nonempty parts. There<strong>for</strong>e we subtract 1:<br />

n<br />

11 2<br />

= T-1 - 1 ) integer n > 0. (6.2)<br />

(This tallies with our enumeration of {i} = 7 = 23 - 1 ways above.)

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

Saved successfully!

Ooh no, something went wrong!