Professional Documents
Culture Documents
ENUMERATIVE COMBINATORICS
Volume 2
Richard Stanley’s two-volume basic introduction to enumerative combinatorics has
become the standard guide to the topic for students and experts alike. This thoroughly
revised second edition of volume two covers the composition of generating functions,
in particular the exponential formula and the Lagrange inversion formula, labelled and
unlabelled trees, algebraic, D-finite, and noncommutative generating functions, and
symmetric functions. The chapter on symmetric functions provides the only availa-
ble treatment of this subject suitable for an introductory graduate course and focusing
on combinatorics, especially the Robinson–Schensted–Knuth algorithm. An appendix
by Sergey Fomin covers some deeper aspects of symmetric functions, including jeu de
taquin and the Littlewood–Richardson rule. The exercises in the book play a vital role in
developing the material, and this second edition features over 400 exercises, including
159 new exercises on symmetric functions, all with solutions or references to solutions.
RICHARD P. STANLEY
Massachusetts Institute of Technology
With an Appendix by
SERGEY FOMIN
University of Michigan
Shaftesbury Road, Cambridge CB2 8EA, United Kingdom
One Liberty Plaza, 20th Floor, New York, NY 10006, USA
477 Williamstown Road, Port Melbourne, VIC 3207, Australia
314–321, 3rd Floor, Plot 3, Splendor Forum, Jasola District Centre,
New Delhi – 110025, India
103 Penang Road, #05–06/07, Visioncrest Commercial, Singapore 238467
www.cambridge.org
Information on this title: www.cambridge.org/9781009262491
DOI: 10.1017/9781009262538
© Cambridge University Press 1997, 2012
© Richard P. Stanley 2024
This publication is in copyright. Subject to statutory exception
and to the provisions of relevant collective licensing agreements,
no reproduction of any part may take place without the written
permission of Cambridge University Press & Assessment.
First edition published by Wadsworth 1986
First Cambridge edition 1997
Second edition (Volume 1) published 2012
Printed in the United Kingdom by TJ Books Limited, Padstow Cornwall
A catalogue record for this publication is available from the British Library.
A Cataloging-in-Publication data record for this book is available from the Library of
Congress.
ISBN 978-1-009-26249-1 Hardback
ISBN 978-1-009-26248-4 Paperback
Cambridge University Press & Assessment has no responsibility for the persistence
or accuracy of URLs for external or third-party internet websites referred to in this
publication and does not guarantee that any content on such websites is, or will
remain, accurate or appropriate.
to Atsuko, Kenneth, Sharon, Beth, Bennett, and Cole
Contents
ix
x Contents
The primary difference between this second edition and the first is the addi-
tion of 159 new problems for Chapter 7 (symmetric functions), almost all
with solutions. They appear in the Chapter 7 sections entitled “Supplementary
Exercises” and “Supplementary Solutions.” These new problems are further
evidence of the amazing fecundity of the theory of symmetric functions. Philip
Hall was well aware of the future potential of symmetric functions when he
wrote in a 1955 letter:∗
. . . whenever in mathematics you meet with partitions, you have only to turn over the
stone or lift up the bark, and you will, almost infallibly, find symmetric functions under-
neath. More precisely, if we have a class of mathematical objects which in a natural and
significant way can be placed in one-to-one correspondence with the partitions, we must
expect the internal structure of these objects and their relations to one another to involve
sooner or later . . . the algebra of symmetric functions.
∗ See mathshistory.st-andrews.ac.uk/Biographies/Hall.
xiii
xiv Preface to Second Edition
as in the first edition. However, some equation numbers and figure numbers, as
well as almost all the citation numbers, have been changed. The index has been
upgraded; in particular, every reference to a person is a separate subentry.
Innumerable persons have contributed to the new Chapter 7 problems. They
are acknowledged in the problem solutions. I would also like to thank Kaitlin
Leach at Cambridge University Press for her excellent editorial assistance and
to Suresh Kumar for his TEX support.
Preface
xv
xvi Preface
X xn
F(x) = f (n) ,
n!
n≥0
X xn
G(x) = g(n) .
n!
n≥0
X xn
Ef (x) = f (n) .
n!
n≥0
1
2 Trees and the Composition of Generating Functions
where X is a finite set, and where (S,T) ranges over all weak ordered partitions
of X into two blocks, that is, S ∩ T = ∅ and S ∪ T = X . Then
Eh (x) = Ef (x)Eg (x). (5.2)
5.1.2 Example. Given an n-element set X , let h(n) be the number of ways to
split X into two subsets S and T with S ∪T = X , S ∩T = ∅; and then to linearly
order the elements of S and to choose a subset of T. There are f (k) = k! ways
to linearly order a k-element set, and g(k) = 2k ways to choose a subset of a
k-element set. Hence
X xn X xn X xn
n
h(n) = n! 2
n! n! n!
n≥0 n≥0 n≥0
e2x
= .
1−x
1 All references to Volume 1 are to the second edition.
5.1 The Exponential Formula 3
where (T1 , . . . , Tk ) ranges over all weak ordered partitions of S into k blocks,
that is, T1 , . . . , Tk are subsets of S satisfying: (i) Ti ∩ Tj = ∅ if i 6= j, and (ii)
T1 ∪ · · · ∪ Tk = S. Then
k
Y
Eh (x) = Efi (x).
i=1
We are now able to give the main result of this section, which explains
the combinatorial significance of the composition of exponential generating
functions.
Proof. Suppose #S = n, and let hk (n) denote the right-hand side of (5.3) for
fixed k. Since B1 , . . . , Bk are nonempty they are all distinct, so there are k! ways
of linearly ordering them. Thus by Proposition 5.1.3,
g(k)
Ehk (x) = Ef (x)k . (5.3)
k!
Summing (5.3) over all k ≥ 1 yields the desired result.
6 3 4 2 8
5.1.5 Example. Let h(n) be the number of ways for n persons to form into
nonempty lines, and then to arrange these lines in a circular order. Figure 5.1
shows one such arrangement of nine persons. There are f ( j) = j! ways to
linearly order j persons, and g(k) = (k − 1)! ways to circularly order k ≥ 1
lines. Thus
X xn x
Ef (x) = n! = ,
n! 1−x
n≥1
X xn
Eg (x) = 1 + (n − 1)! = 1 + log(1 − x)−1 ,
n!
n≥1
so
Eh (x) = Eg (Ef (x))
−1
x
= 1 + log 1 −
1−x
X xn
= 1+ (2n − 1)(n − 1)! ,
n!
n≥1
whence h(n) = (2n− 1)(n − 1)!. Naturally such a simple answer demands a
simple combinatorial proof. Namely, arrange the n persons in a circle in (n−1)!
5.1 The Exponential Formula 5
6 4
3 2
1 8
ways. In each of the n spaces between two persons, either do or do not draw a
bar, except that at least one bar must be drawn. There are thus 2n − 1 choices
for the bars. Between two consecutive bars (or a bar and itself if there is only
one bar) read the persons in clockwise order to obtain their order in line. See
Figure 5.2 for this method of representing Figure 5.1.
The most common use of Theorem 5.1.4 is the case where g(k) = 1
for all k. In combinatorial terms, a structure is put together from “con-
nected” components, but no additional structure is placed on the components
themselves.
X
h(#S) = f (#B1 )f (#B2 ) · · · f (#Bk ), #S > 0, (5.4)
π={B1 ,...,Bk }∈5(S)
h(0) = 1.
Then
Eh (x) = exp Ef (x). (5.5)
Let us say a brief word about the computational aspects of equation (5.5).
If the function f (n) is given, then one can use (5.4) to compute h(n). However,
there is a much more efficient way to compute h(n) from f (n) (and conversely).
n
X n
h(n + 1) = h(k)f (n + 1 − k), (5.6)
k
k=0
n
X n
f (n + 1) = h(n + 1) − h(k)f (n + 1 − k). (5.7)
k
k=1
Now equate coefficients of xn /n! on both sides of (5.8) to obtain (5.6). (It
is also easy to give a combinatorial proof of (5.6).) Equation (5.7) is just a
rearrangement of (5.6).
Proof. Since there are (j − 1)! ways to cyclically order a j-set, equation (5.9)
may be written
X
h(#S) = [(#B1 − 1)!f (#B1 )] · · · [(#Bk − 1)!f (#Bk )]g(k),
π={B1 ,...,Bk }∈5(S)
5.1 The Exponential Formula 7
so by Theorem 5.1.4,
X xn
Eh (x) = Eg (n − 1)!f (n)
n!
n≥1
. X xn
= Eg f (n)
n
n≥1
Proof. Let P and Q be locally finite posets, and let u ∈ I(P, K), v ∈ I(Q, K).
Define u × v ∈ I(P × Q, K) by
It follows from Lemma 5.1.10 that the set M(5) = M(5, K) of multipli-
cative functions on 5 forms a semigroup under convolution. In fact, M(5)
is even a monoid (= semigroup with identity), since the identity function
δ = (δ1 , δ2 , . . . ) is multiplicative with δ(n) = δ1n . (CAVEAT: M(5) is not
closed under addition!)
X xn
φ( f ) = Ef (x) = f (n) .
n!
n≥1
Since (5.13) agrees with (5.3), the proof follows from Theorem 5.1.4.
The next result follows from Theorem 5.1.11 in the same way that Prop-
osition 3.18.5 follows from Theorem 3.18.4 (using Proposition 5.4.1), so the
proof is omitted. (A direct proof avoiding Theorem 5.1.11 can also be given.)
If f = ( f1 , f2 , . . . ) where fn ∈ I(5n , K) and each fn−1 exists in I(5n , K), then
we write f −1 = ( f1−1 , f2−1 , . . . ).
Eδ (x) = x,
so by Theorem 5.1.11
[exp Eµ (x)] − 1 = x
⇒ Eµ (x) = log(1 + x)
X xn
= (−1)n−1 (n − 1)!
n!
n≥1
⇒ µ(n) = (−1)n−1 (n − 1)!.
Thus we have another derivation of the Möbius function of 5n (equa-
tion (3.37)).
5.1.14 Example. Let h(n) be the number of ways to partition the set [n], and
then partition each block into blocks of odd cardinality. We are asking for the
number of chains 0̂ ≤ π ≤ σ ≤ 1̂ in 5n such that all block sizes of π are odd.
Define f ∈ M(5) by
1, n odd
f (n) =
0, n even.
10 Trees and the Composition of Generating Functions
Then
Proof. Easy.
5.2.1 Example. The number of graphs (without loops or multiple edges) on
an n-element vertex set S is clearly 2(2) . (Each of the n2 pairs of vertices may
n
or may not be joined by an edge.) Let c(#S) = c(n) be the number of connected
graphs on the vertex set S. Since a graph on S is obtained by choosing a parti-
tion π of S and then placing a connected graph on each block of π, we see that
equation (5.5) holds for h(n) = 2(2) and f (n) = c(n). Hence by Corollary 5.1.6,
n
X n xn
Eh (x) = 2(2)
n!
n≥0
= exp Ec (x)
X xn
= exp c(n) .
n!
n≥1
Equivalently,
xn X n xn
2(2) .
X
c(n) = log (5.22)
n! n!
n≥1 n≥0
Note that the generating functions Eh (x) and Ec (x) have zero radius of
convergence; nevertheless, they still have combinatorial meaning.
Of course there is nothing special about graphs in the above example. If, for
instance, h(n) is the number of posets (or digraphs, topologies, triangle-free
graphs, . . . ) on an n-set and c(n) is the number of connected posets (digraphs,
topologies, triangle-free graphs, . . . ) on an n-set, then the fundamental rela-
tion Eh (x) = exp Ec (x) continues to hold. In some cases (such as graphs
and digraphs) we have an explicit formula for h(n), but this is an incidental
“bonus.”
12 Trees and the Composition of Generating Functions
5.2.2 Example. Suppose we are interested in not just the number of connected
graphs on an n-element vertex set, but rather the number of such graphs with
exactly k components. Let ck (n) denote this number, and define
XX xn
F(x, t) = ck (n)tk . (5.23)
n!
n≥0 k≥0
There are two ways to obtain this generating function from Theorem 5.1.4 and
Corollary 5.1.6. We can either set f (n) = c(n) and g(k) = tk in (3), or set
f (n) = c(n)t in (5.5). In either case we have
X
h(n) = ck (n)tk .
k≥0
Thus
X xn
F(x, t) = exp t c(n)
n!
n≥1 t
X n xn
= 2(2) .
n!
n≥0
Again the same reasoning works equally as well for posets, digraphs, topolo-
gies, . . . In general, if Eh (x) is the exponential generating function for the total
number of structures on an n-set (where of course each structure is a unique
disjoint union of connected components), then Eh (x)t also keeps track of the
number of components, as in (5.23). Equivalently, if h(n) is the number of
structures on an n-set and ck (n) the number with k components, then
X
tk Eck (x) = Eh (x)t
k≥0
= exp tEc1 (x)
X Ec (x)k
= tk 1 , (5.24)
k!
k≥0
so
1 1
Eck (x) = Ec1 (x)k = (log Eh (x))k ,
k! k!
where we set ck (0) = δ0k and h(0) = 1. In particular, if h(n) = n! (the number
of permutations of an n-set) then Eh (x) = (1 − x)−1 while ck (n) = c(n, k), the
number of permutations of an n-set with k cycles. In other words, c(n, k) is a
signless Stirling number of the first kind (see Chapter 1.3); and we get
X xn 1 h ik
c(n, k) = log(1 − x)−1 . (5.25)
n! k!
n≥0
5.2 Applications of the Exponential Formula 13
Let us give one further “direct” application, concocted for the elegance of the
final answer.
5.2.4 Example. Let B(n) = B1 (n) denote the nth Bell number, that is, B(n) =
#5n (Chapter 1.9). Setting each f (i) = 1 in (5.4), we obtain
X xn
EB (x) = B(n) = exp(ex − 1).
n!
n≥0
(See equation (1.94f).) Now let B2 (n) be the number of ways to partition an n-
set S, and then partition each block. Equivalently, B2 (n) is the number of chains
0̂ ≤ π1 ≤ π2 ≤ 1̂ in 5n . Putting each f (i) = B(i) in (5.4), or equivalently using
Theorem 5.1.11 to compute φ(ζ 3 ), we obtain
X xn
B2 (n) = exp[exp(ex − 1) − 1].
n!
n≥0
Another random document with
no related content on Scribd:
kokemusta näissä asioissa, niin ei hän ollut mitään heidän
puheistaan välittänyt. Ne olivat häntä melkein kuin iljettäneet. Hän oli
pitänyt tyttöjä ja heitä koskevia asioita tuollaisina turhanpäiväisinä,
joita ei kannata miettiä.
Tuo häntä suututti, kun hän oli niin arka, ettei uskaltanut tuota
tunnettaan tytölle selvästi näyttää, sanomisesta puhettakaan.
Mutta monesti sattui niin, kun hän oli hevosille kaivosta vettä
noutamassa, että tyttökin sattui olemaan kaivon kannella, toisinaan
lehmille vettä vinttaamassa, toisinaan sisälle noutamassa. Silloin hän
otti tytön kädestä kaivon salon ja täytti tytön ämpärinkin. Silloinkin,
sellaisissa tilaisuuksissa, olisi sopinut puhua tytölle asiat selväksi,
mutta kun ei uskaltanut.
Ei hän tuota miksikään huomannut, kun nuo veden noutoretket
rupesivat sattumaan niin ihmeen useasti heillä yhtä aikaa. Melkein
vaikkapa milloin Kalle kaivolle tuli, niin siellä oli tyttökin, tai jos ei ollut
niin sattui tulemaan. Jos hän tuon huomasi, niin ei uskaltanut
kuitenkaan ajatella, että tyttökin haluaisi samaa kuin hänkin, olla
yhdessä kaivolla, sisällä ja kaikkialla. Ettäkö tyttökin tuntisi tuollaista!
— Älä tee sitä! Anna noiden keskenään asiansa hoitaa. Kyllä siitä
tosi tulee. Anna on ylpeä, jos hän kuulee jotain, niin se pian siihen
jää. Saahan niistä pari tulla, kun kumpikin näyttävät sitä tahtovan.
Odotetaan! Onhan tuota niin mukava syrjästä katsoa, jutteli emäntä.
— Niin, kyllähän Annakin osaa huolen siitä pitää, että saapi Kallen
kosimaan, vaikka itse sen alkuun panisi — — —
Navetassa oli Anna ja toinen piika. Anna piteli vasikkaa, jota eri
karsinassa pidettiin ruokkimista varten. Kun Kalle tuli kirves kädessä
heidän luo, sanoi toinen tyttö:
Tyttö lehahti punaseksi. Nyt hän tunsi tuon kauvan odotetun asian
tulevan.
Siihen jäi Kalle karsinan viereen. Mikä juutas sen nyt pani irti
repimään, mietti hän harmistuneena. Hän lähti kanssa tuonne
toiseen päähän navettaa. Hän korjasi perän, jolla sonni oli ollut kiinni
ja kun tuo otus ei tahtonut rauhassa pysyä, mätki hän kirvesvarrella
sitä pitkin selkää.
Pahalla tuulella tuli Kalle pirttiin. Hän huomasi kuinka isä iski äidille
silmää. Hän arvasi, että hänestä he tuohon aihetta saivat. Mutta ei
ymmärtänyt minkä vuoksi. Petoako he nauravat, mietti hän
kiukustuneena.
Nukuttiin.
Hänellä itsellään oli kirjaston alku, jonka hän oli saanut hankituksi
ja myötäänsä hän koetti omaa kirjastoaan lisätä. Hänellä olikin suuri
osa suomenkielellä ilmestyneistä teoksista.
Mutta sentään toivoi hän parasta. Hän uskoi voivansa saada asiat
mielensä mukaan järjestetyiksi.
IV.
Hän säpsähti. Ensi kertaa eläissään oli hän nyt tyttösten kanssa
leikkisille ruvennut. Hän hämääntyi. Mutta nuo nauravat olennot
näyttivät hänestä niin vietteleviltä, ja varsinkin Anna.
— Mistäpä sen tietää kuka ensi vuoden esimies on, sanoi Kalle.
Hän katsoi saliin. Minne hän silmänsä loi, näki hän nuoruutta,
ilosta loistavia kasvoja. Tuolla etempänä istui tyttöjä, pitkä rivi. Heillä
näytti olevan jotain erikoisempaa. Annakin oli heidän joukossaan.
Mistä ihmeestä he aina nauramisen aihetta saivat? mietti Kalle. Eivät
he muuta osaa tehdäkään, aina vaan nauravat. Tuo alituinen nauru
kävi kyllästyttäväksi. Hän tunsi kuin olisi puukolla rintaan pistetty.
Hän kadehti noita nauravia ja samalla he suututtivat häntä.
— Ei, ei ole muita sellaisia. Mikset sinä voi olla niinkuin tähänkin
asti; eihän sinulla mitään estettä ole, jonka tähden et voisi olla, kuului
salista.
— Olkoon sitten niin tällä kertaa, sanoi Kalle ja sen jälkeen valittiin
seuralle muut virkailijat ja johtokunta.
Kun ääni hänen viulustaan vingahti, niin silloin tuli eloa saliin. Oli
kuin sähkövirta olisi johdettu lattiaa pitkin. Tyttösten jalat alkoivat
soiton mukaan elää, silmät paloivat ja povet kohoilivat, puoliavoimet
huulet päästivät lävitseen kuumia henkäyksiä.
Kalle istui salin seinän vierellä ja katseli tanssia. Hän ajatteli lähteä
pois, mutta ei vaan saanut päätetyksi: nyt lähden. — Aina hetken
perästä meni siitä Anna sivu. Hän ei näyttänyt mitään tietävän tästä
maailmasta. Vihloi niin kipeästi Kallen sisässä, kun Anna siitä sivu
meni, käsi toisen olalla ja tuon toisen käsi Annan vyötäröillä. Kalle
toivoi, ettei hän näkisi Annaa eikä tuota toista ollenkaan, mutta
kuitenkaan ei hän tahtonut päästää heitä pois näkyvistään aina hän
odotti, kun he tuolta toisen kautta tulivat näkösälle ja taasen katsoi
niin kauvan heidän jälkeensä, kun he taasen katosivat toiselle
suunnalle. — Hän kadehti heitä kaikkia ja melkein vihasi itseään, kun
ei ollut opetellut tanssimaan. Mutta kerkeäisihän vieläkin. Lempo
tuohon myllyyn lähteköön, en minä, mietti hän. Ei, en voi yrittääkään,
vaikka mitä tehtäisiin. — Taasen tuli Anna tuon toisen kainalossa.
Kallen sydäntä vihlasi niin kipeästi. Hän vihasi tyttöä. Tuollainen tyttö
menee kenen syliin kerkeää. Hän olisi mielellään tahtonut jotain
tehdä, jotain sellaista, mikä olisi kiduttanut tyttöä, kiduttanut hirveästi,
samalla tavalla kuin häntä itseään. Siinä hän istui ja kärsi. Eikä vaan
saanut päätetyksi lähteä pois.