244 79 2MB
English Pages 304 [328] Year 2020
GRADUATE STUDIES I N M AT H E M AT I C S
210
Combinatorics: The Art of Counting Bruce E. Sagan
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Combinatorics: The Art of Counting
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
GRADUATE STUDIES I N M AT H E M AT I C S
210
Combinatorics: The Art of Counting Bruce E. Sagan
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Marco Gualtieri Bjorn Poonen Gigliola Sta๏ฌlani (Chair) Je๏ฌ A. Viaclovsky 2020 Mathematics Subject Classi๏ฌcation. Primary 05-01; Secondary 06-01.
For additional information and updates on this book, visit www.ams.org/bookpages/gsm-210
Library of Congress Cataloging-in-Publication Data Names: Sagan, Bruce Eli, 1954- author. Title: Combinatorics : the art of counting / Bruce E. Sagan. Description: Providence, Rhode Island : American Mathematical Society, [2020] | Series: Graduate studies in mathematics, 1065-7339 ; 210 | Includes bibliographical references and index. Identi๏ฌers: LCCN 2020025345 | ISBN 9781470460327 (paperback) | ISBN 9781470462802 (ebook) Subjects: LCSH: Combinatorial analysisโTextbooks. | AMS: Combinatorics โ Instructional exposition (textbooks, tutorial papers, etc.). | Order, lattices, ordered algebraic structures โ Instructional exposition (textbooks, tutorial papers, etc.). Classi๏ฌcation: LCC QA164 .S24 2020 | DDC 511/.6โdc23 LC record available at https://lccn.loc.gov/2020025345
Copying and reprinting. Individual readers of this publication, and nonpro๏ฌt libraries acting for them, are permitted to make fair use of the material, such as to copy select pages for use in teaching or research. Permission is granted to quote brief passages from this publication in reviews, provided the customary acknowledgment of the source is given. Republication, systematic copying, or multiple reproduction of any material in this publication is permitted only under license from the American Mathematical Society. Requests for permission to reuse portions of AMS publication content are handled by the Copyright Clearance Center. For more information, please visit www.ams.org/publications/pubpermissions. Send requests for translation rights and licensed reprints to [email protected]. c 2020 by the American Mathematical Society. All rights reserved. The American Mathematical Society retains all rights except those granted to the United States Government. Printed in the United States of America. โ The paper used in this book is acid-free and falls within the guidelines
established to ensure permanence and durability. Visit the AMS home page at https://www.ams.org/ 10 9 8 7 6 5 4 3 2 1
25 24 23 22 21 20
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
To Sally, for her love and support
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Contents
Preface
xi
List of Notation Chapter 1.
Basic Counting
xiii 1
ยง1.1. The Sum and Product Rules for sets
1
ยง1.2. Permutations and words
4
ยง1.3. Combinations and subsets
5
ยง1.4. Set partitions
10
ยง1.5. Permutations by cycle structure
11
ยง1.6. Integer partitions
13
ยง1.7. Compositions
16
ยง1.8. The twelvefold way
17
ยง1.9. Graphs and digraphs
18
ยง1.10. Trees
22
ยง1.11. Lattice paths
25
ยง1.12. Pattern avoidance
28
Exercises
33
Chapter 2.
Counting with Signs
41
ยง2.1. The Principle of Inclusion and Exclusion
41
ยง2.2. Sign-reversing involutions
44
ยง2.3. The GarsiaโMilne Involution Principle
49
ยง2.4. The Reflection Principle
52
vii Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
viii
Contents
ยง2.5. The LindstrรถmโGesselโViennot Lemma
55
ยง2.6. The Matrix-Tree Theorem
59
Exercises
64
Chapter 3.
Counting with Ordinary Generating Functions
71
ยง3.1. Generating polynomials
71
ยง3.2. Statistics and ๐-analogues
74
ยง3.3. The algebra of formal power series
81
ยง3.4. The Sum and Product Rules for ogfs
86
ยง3.5. Revisiting integer partitions
89
ยง3.6. Recurrence relations and generating functions
92
ยง3.7. Rational generating functions and linear recursions
96
ยง3.8. Chromatic polynomials
99
ยง3.9. Combinatorial reciprocity
106
Exercises
109
Chapter 4.
Counting with Exponential Generating Functions
117
ยง4.1. First examples
117
ยง4.2. Generating functions for Eulerian polynomials
121
ยง4.3. Labeled structures
124
ยง4.4. The Sum and Product Rules for egfs
128
ยง4.5. The Exponential Formula
131
Exercises
134
Chapter 5.
Counting with Partially Ordered Sets
139
ยง5.1. Basic properties of partially ordered sets
139
ยง5.2. Chains, antichains, and operations on posets
145
ยง5.3. Lattices
148
ยง5.4. The Mรถbius function of a poset
154
ยง5.5. The Mรถbius Inversion Theorem
157
ยง5.6. Characteristic polynomials
164
ยง5.7. Quotients of posets
168
ยง5.8. Computing the Mรถbius function
174
ยง5.9. Binomial posets
178
Exercises
183
Chapter 6.
Counting with Group Actions
189
ยง6.1. Groups acting on sets
189
ยง6.2. Burnsideโs Lemma
192
ยง6.3. The cycle index
197
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Contents
ix
ยง6.4. RedfieldโPรณlya theory
200
ยง6.5. An application to proving congruences
205
ยง6.6. The cyclic sieving phenomenon
209
Exercises
213
Chapter 7.
Counting with Symmetric Functions
219
ยง7.1. The algebra of symmetric functions, Sym
219
ยง7.2. The Schur basis of Sym
224
ยง7.3. Hooklengths
230
ยง7.4.
235
๐-partitions
ยง7.5. The RobinsonโSchenstedโKnuth correspondence
240
ยง7.6. Longest increasing and decreasing subsequences
244
ยง7.7. Differential posets
248
ยง7.8. The chromatic symmetric function
253
ยง7.9. Cyclic sieving redux
256
Exercises
259
Chapter 8.
Counting with Quasisymmetric Functions
267
ยง8.1. The algebra of quasisymmetric functions, QSym
267
ยง8.2. Reverse ๐-partitions
270
ยง8.3. Chain enumeration in posets
274
ยง8.4. Pattern avoidance and quasisymmetric functions
276
ยง8.5. The chromatic quasisymmetric function
279
Exercises
283
Appendix. Introduction to Representation Theory
287
ยงA.1. Basic notions
287
Exercises
292
Bibliography
293
Index
297
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Preface
Enumerative combinatorics has seen an explosive growth over the last 50 years. The purpose of this text is to give a gentle introduction to this exciting area of research. So, rather than trying to cover many different topics, I have chosen to give a more leisurely treatment of some of the highlights of the field. My goal has been to write the exposition so it could be read by a student at the advanced undergraduate or beginning graduate level, either as part of a course or for independent study. The reader will find it similar in tone to my book on the symmetric group. I have tried to keep the prerequisites to a minimum, assuming only basic courses in linear and abstract algebra as background. Certain recurring themes are emphasized, for example, the existence of sum and product rules first for sets, then for ordinary generating functions, and finally in the case of exponential generating functions. I have also included some recent material from the research literature which, to my knowledge, has not appeared in book form previously, such as the theory of quotient posets and the connection between pattern avoidance and quasisymmetric functions. Most of the exercises should be doable with a reasonable amount of effort. A few unsolved conjectures have been included among the problems in the hope that an interested student might wish to tackle one of them. They are, of course, marked as such. A few words about the title are in order. It is in part meant to be a tip of the hat to Donald Knuthโs influential series of books The art of computer programing, Volumes 1โ3 [51โ53], which, among many other things, helped give birth to the study of pattern avoidance through its connection with stack sorting; see Exercise 36 in Chapter 1. I hope that the title also conveys some of the beauty found in this area of mathematics, for example, the elegance of the Hook Formula (equation (7.10)) for the number of standard Young tableaux. In addition I should mention that, due to my own preferences, this book concentrates on the enumerative side of combinatorics and mostly ignores the important extremal and existential parts of the field. The reader interested in these areas can consult the books of Flajolet and Sedgewick [25] and of van Lint [95].
xi Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
xii
Preface
This book grew out of the lecture notes which I have compiled over years of teaching the graduate combinatorics course at Michigan State University. I would like to thank the students in these classes for all the feedback they have given me about the various topics and their presentation. I am also indebted to the following colleagues, some of whom taught from a preliminary version of this book, who provided me with suggestions as well as catching numerous typographical errors: Matthias Beck, Moussa Benoumhani, Andreas Blass, Seth Chaiken, Sylvie Corteel, Georges Grekos, Richard Hensh, Nadia Lafreniรจre, Duncan Levear, and Tom Zaslavsky. Darij Grinberg deserves special mention for providing copious comments and corrections as well as providing a number of interesting exercises. I also received valuable feedback from four anonymous referees. Finally, I wish to express my appreciation of Ina Mette, my editor at the American Mathematical Society. Without her gentle support and persistence, this text would never have seen the light of day. Because I typeset this document myself, all errors can be blamed on my computer. East Lansing, Michigan, 2020
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
List of Notation
Symbol
Definition
๐ด(๐ท) ๐ด(๐บ) ๐(๐บ) ๐(๐บ) ๐ด([๐], ๐) ๐ด(๐, ๐) ๐ด๐ (๐) ๐(๐) Asc ๐ asc ๐ Asc ๐ asc ๐ Av๐ (๐) ๐ผ๐ ๐ผฬ ๐ผ(๐ถ) ๐ต(๐บ) ๐ต(๐) ๐ต๐ ๐ตโ ๐ต(๐)
arc set of digraph ๐ท adjacency matrix of graph ๐บ set of acyclic orientations of ๐บ number of acyclic orientations of ๐บ set of permutations ๐ in ๐๐ having ๐ descents Eulerian number, cardinality of ๐ด([๐], ๐) Eulerian polynomial atom set of poset ๐ ascent set of a proper coloring ๐ ascent number of a proper coloring ๐ ascent set of permutation ๐ ascent number of permutation ๐ the set of permutations in ๐๐ avoiding ๐ reversal of composition ๐ผ expansion of composition ๐ผ rank composition of chain ๐ถ incidence matrix of graph ๐บ set of partitions of the set ๐ Boolean algebra on [๐] poset of subsets of โ ๐th Bell number
Page 21 60 103 103 121 121 122 169 279 279 76 76 29 32 274 275 61 10 140 178 10
xiii Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
xiv
List of Notation
Symbol
Definition
โ ๐ ๐ (๐) ๐ถ๐ฟ๐ co ๐ ๐ถ๐ ๐ถ๐ ๐๐ฅ (๐) ๐ถโ ๐ถ(๐) ๐([๐], ๐) ๐(๐, ๐) ๐๐ (๐ฟ, ๐) โ๐ โ[๐ฅ] โ[[๐ฅ]] ๐(๐) ๐๐ (๐) Des ๐ Des ๐ des ๐ ๐ท๐ ๐ทโ ๐ท(๐) ๐(๐) ๐(๐) ๐(๐, ๐) deg ๐ deg ๐ฃ ฮ๐(๐) ๐ฟ๐ฅ,๐ฆ ๐ฟ(๐ฅ, ๐ง) ๐ธ(๐บ) ๐ธ(๐ฟ) ๐ธ(๐ฟ) ๐ธ๐ ๐๐ ๐ธ(๐ก) Exc ๐ exc ๐
complex numbers number of cycles of length ๐ in group element ๐ claw poset with ๐ atoms content of tableau ๐ cycle with ๐ vertices chain poset of length ๐ column insertion of element ๐ฅ into tableau ๐ chain poset on โ Catalan number set of permutations in ๐๐ with ๐ cycles signless Stirling number of the first kind ordered ๐ cycle decompositions of permutations of ๐ฟ vector space generated by set ๐ over โ polynomial algebra in ๐ฅ over โ formal power series algebra in ๐ฅ over โ set of functions compatible with ๐ set of functions compatible with ๐ bounded by ๐ descent set of tableau ๐ descent set of permutation ๐ descent number of permutation ๐ lattice of divisors of ๐ divisibility poset on โ derangement number set of Dyck paths of semilength ๐ set of all digraphs on vertex set ๐ set of all digraphs on vertex set ๐ with ๐ edges degree of a monomial degree of vertex ๐ฃ in a graph forward difference operator of ๐(๐) Kronecker delta delta function of poset incidence algebra edge set of graph ๐บ set structure on label set ๐ฟ nonempty set structure on label set ๐ฟ Euler number ๐th elementary symmetric function generating function for elementary symmetric functions set of excedances of permutation ๐ number of excedances of permutation ๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Page 1 197 169 225 19 139 245 178 26 12 12 127 248 71 81 236 236 271 75 76 140 181 43 26 21 21 219 20 162 7 159 18 125 125 120 221 221 122 122
List of Notation
Symbol
Definition
Fix ๐ ๐๐ ๐น๐ ๐ฝ๐ ๐(๐ฅ) ๐๐ (๐ฅ) ๐น(๐) ๐น(๐ฅ) ๐น๐ฎ (๐ฅ) ๐น๐ ๐น๐ผ ๐๐ ฮฆ ๐ ๐บโงต๐ ๐บ/๐ GL(๐) ๐ข(๐) ๐ข(๐, ๐) ๐บ๐ฅ ๐ป๐ = ๐ป๐,๐ โ๐ = โ๐,๐ โ๐ โ๐ ๐ป(๐ก) ideg ๐ฃ Inv ๐ inv ๐ โ(๐) ๐ผ(๐) ISF(๐บ; ๐ก) ISF๐ (๐บ) isf๐ (๐บ) ๐๐ (๐บ) ๐ฅ(๐) ๐พ๐ ๐พ๐ ๐พ๐,๐
fix point set of a function ๐ Fibonacci number Fibonacci number Galois field with ๐ elements ordinary generating function weight-generating function for weighted set ๐ binomial poset ๐-interval factorial function exponential generating function exponential generating function for structure ๐ฎ fundamental quasisymmetric for set ๐ fundamental quasisymmetric for composition ๐ผ number of standard Young tableaux of shape ๐ fundamental map on permutations bijection between subsets and compositions graph ๐บ with edge ๐ deleted graph ๐บ with edge ๐ contracted general linear group over vector space ๐ set of all graphs on vertex set ๐ set of all graphs on vertex set ๐ with ๐ edges stabilizer of element ๐ฅ under the action of group ๐บ hook of cell ๐ = (๐, ๐) hooklength of cell ๐ = (๐, ๐) set of hook diagrams with ๐ cells ๐th complete homogeneous symmetric function complete homogeneous generating function in-degree of vertex ๐ฃ in a digraph inversion set of permutation ๐ inversion number of permutation ๐ incidence algebra of poset ๐ lower-order ideal generated by ๐ in a poset increasing spanning forest generating function of ๐บ set of ๐-edge increasing spanning forests of ๐บ number of ๐-edge increasing spanning forests of ๐บ number of independent type ๐ partitions in graph ๐บ distributive lattice of lower-order ideals of poset ๐ complete graph with ๐ vertices lattice of compositions of ๐ number of tableaux of shape ๐ and content ๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
xv
Page 44 3 2 79 81 86 178 117 125 269 269 225 122 16 100 101 287 20 20 191 230 230 278 221 221 21 74 74 158 143 105 105 105 254 151 19 140 225
xvi
List of Notation
Symbol
Definition
๐ฟ(๐บ) โ(๐บ) โ(๐) โ(๐ถ) โ(๐) โ(๐) lim ๐๐ (๐ฅ)
Laplacian of graph ๐บ bond lattice of graph ๐บ set of linear extensions of ๐ length of chain ๐ถ in a poset length of an integer partition ๐ length of a permutation ๐ limit of a sequence of formal power series
62 167 238 147 15 4 84
lds ๐ lis ๐ ๐ฟ๐ (๐) ๐ฟโ (๐) ๐ฟ(๐) ๐(๐น) ๐! maj ๐ ๐(๐) ๐(๐) ๐๐ผ ๐๐ ๐(๐) ๐(๐ฅ) ๐(๐ฅ, ๐ง) โ NBC๐ (๐บ) nbc๐ (๐บ) ๐ฉโฐ(๐, ๐) odeg ๐ฃ ๐ช๐ฅ ๐(๐) ๐(๐) โ ๐โ ๐ซ๐ถ(๐บ) ๐(๐บ; ๐ก) Par ๐ Par๐ ๐ ๐๐ ๐(๐) ๐(๐) ๐๐ ๐(๐ก)
length of a longest decreasing subsequence of ๐ length of a longest increasing subsequence of ๐ lattice of subspaces of ๐ฝ๐๐ poset of subspaces of vector space ๐โ over ๐ฝ๐ lattice of subspaces of ๐ type of partition induced by edge set ๐น multiplicity factorial of partition ๐ major index of permutation ๐ Mertens function monomial quasisymmeric function for poset ๐ monomial quasisymmetric function monomial symmetric function Mรถbius function value on a poset ๐ one-variable Mรถbius function evaluated at ๐ฅ two-variable Mรถbius function on the interval [๐ฅ, ๐ง] nonnegative integers set of no broken circuit sets of ๐ edges of ๐บ number of no broken circuit sets of ๐ edges of ๐บ set of ๐-๐ธ lattice paths from (0, 0) to (๐, ๐) out-degree of vertex ๐ฃ in a digraph orbit of an element ๐ฅ under action of a group big oh notation applied to function ๐ order of a group element ๐ positive integers dual of poset ๐ set of proper colorings of ๐บ with the positive integers chromatic polynomial of graph ๐บ set of ๐-partitions set of ๐-partitions bounded by ๐ path with ๐ vertices set of partitions of the integer ๐ number of partitions of the integer ๐ ๐th power sum symmetric function power sum symmetric generating function
245 244 140 178 140 255 254 76 183 275 268 220 154 154 157 1 102 102 26 21 190 182 210 1 142 279 100 238 238 19 13 13 221 221
๐โโ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Page
List of Notation
xvii
Symbol
Definition
๐(๐, ๐) ๐(๐, ๐) ๐(๐) ๐(๐, ๐) ๐((๐, ๐)) ๐(๐) ๐ซ(๐ข; ๐ฃ) ฮ ๐ ฮ (๐ฎ) ฮ ๐ (๐ฎ) ฮ ๐ (๐ฎ) โ ๐(๐) ๐(๐) ๐(๐, ๐) ๐(๐, ๐) QSym QSym๐ ๐(๐) ๐๐ (ฮ ) โ โ๐ถ(๐) rk ๐ Rk๐ ๐ rk ๐ฅ โ(๐, ๐) RPar ๐ โ(๐) rpp๐ (๐) rpar(๐; ๐ฑ) ๐๐ฅ (๐) ๐(๐น) ๐ โถ ๐บ โ GL(๐) ๐ฎ(๐ฟ) ๐ ๐๐ ๐๐(๐) sgn sh ๐ ๐ (๐, ๐)
set of partitions of ๐ into at most ๐ parts number of partitions of ๐ into at most ๐ parts permutations of a set ๐ permutations of length ๐ of a set ๐ words of length ๐ over a set ๐ insertion tableau of ๐ set of directed paths from ๐ข to ๐ฃ in a digraph partition lattice on [๐] partition structure on structure ๐ฎ even partition structure on structure ๐ฎ odd partition structure on structure ๐ฎ rational numbers set of compositions of the integer ๐ number of compositions of the integer ๐ set of compositions of ๐ into ๐ parts number of partitions of ๐ into ๐ parts algebra of quasisymmetric functions quasisymmetric functions of degree ๐ recording tableau of ๐ quasisymmetric function for patterns ฮ real numbers set of functions reverse compatible with ๐ rank of a ranked poset ๐ ๐th rank set of a ranked poset ๐ rank of an element ๐ฅ in a ranked poset set of partitions contained in a ๐ ร ๐ rectangle set of reverse ๐-partitions reduced incidence algebra of a binomial poset number of shape ๐ reverse plane partitions of ๐ generating function for reverse ๐-partitions row insertion of element ๐ฅ into tableau ๐ vertex partition induced by edge set ๐น representation of group ๐บ labeled structure on label set ๐ฟ pattern poset symmetric group on [๐] summation operator applied to function ๐(๐) sign function on a signed set shape of tableau ๐ signed Stirling number of the first kind
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Page 15 15 4 4 5 242 56 140 131 133 133 1 16 16 16 16 268 268 242 277 1 270 147 147 147 79 271 179 233 271 241 255 287 124 140 11 162 44 225 13
xviii
List of Notation
Symbol
Definition
๐(๐, ๐) ๐(๐, ๐) ๐๐ (๐ฟ, ๐) ๐ฎ๐(๐บ) st std ๐ Supp ๐ฅ supp ๐ฅ Sym Sym๐ SYT(๐) SSYT(๐) ๐ ๐ ๐๐,๐ ๐ฏ๐ ๐(๐) ๐(๐ท) ๐(๐บ) ๐โ ๐ค ๐ (๐) ๐ ๐ (๐) ๐๐ wt ๐ฑ ๐ฑ๐ ๐ฑ๐ ๐ฑ๐ ๐๐ ๐(๐บ; ๐ฑ) ๐(๐บ; ๐ฑ, ๐) ๐ โค ๐(๐ฅ, ๐ง) ๐(๐ ) ๐ง(๐) ๐(๐บ) #๐ |๐| |๐| |๐| ๐โ๐
set of partitions of the set ๐ into ๐ blocks Stirling number of the second kind set of ordered partitions of the set ๐ฟ into ๐ blocks set of spanning trees of graph ๐บ statistic on a set standardization of the permutation ๐ support set of ๐ฅ in a product of claws size of support set of ๐ฅ in a product of claws algebra of symmetric functions symmetric functions of degree ๐ set of standard Young tableaux of shape ๐ set of semistandard Young tableaux of shape ๐ Schur function element in cell (๐, ๐) of tableau ๐ set of monomino-domino tilings of a row of ๐ squares upper-order ideal generated by ๐ in a poset vertex set of digraph ๐ท vertex set of graph ๐บ vector space with a countably infinite basis over ๐ฝ๐ Whitney number of the first kind for a poset ๐ Whitney number of the second kind for a poset ๐ walk with ๐ vertices weight function on a set a countably infinite set of variables monomial for a coloring ๐ of a graph monomial for a function ๐ monomial for a tableau ๐ fixed points of group element ๐ acting on set ๐ chromatic symmetric function of graph ๐บ chromatic quasisymmetric function of graph ๐บ Youngโs lattice set of integers zeta function in the incidence algebra of a poset Riemann zeta function cycle index of group element ๐ cycle index of group ๐บ cardinality of the set ๐ size (sum of values) of a function cardinality of the set ๐ sum of entries of tableau ๐ disjoint union of sets ๐ and ๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Page 10 10 127 59 74 28 173 173 220 220 224 225 225 225 3 143 21 18 178 156 156 19 86 219 253 270 225 192 253 280 140 1 159 182 197 197 1 236 1 233 1
List of Notation
xix
Symbol
Definition
|๐| ๐โข๐ ๐ร๐ ๐โ๐ ๐โ๐ ๐ร๐ [๐] [๐]๐ต [๐] [๐]๐ [๐]๐ ! [๐ฅ๐ ]๐(๐ฅ) ๐โ๐ 2๐ (๐๐)
sum of the parts of partition ๐ ๐ is a partition of ๐ (Cartesian) product of sets ๐ and ๐ disjoint union of posets ๐ and ๐ ordinal sum of posets ๐ and ๐ (Cartesian) product of posets ๐ and ๐ linear transformation for group element ๐ matrix in basis ๐ต for group element ๐ set of integers {1, 2, . . . , ๐} ๐-analogue of nonnegative integer ๐ ๐-analogue of ๐! coefficient of ๐ฅ๐ in ๐(๐ฅ) ๐ falling factorial with ๐ factors set of subsets of ๐ set of ๐-element subsets of ๐
(๐๐)
binomial coefficient
[๐๐] ๐
๐-binomial coefficient
[๐๐ ] {{๐, ๐, . . . }} {{๐2 , . . . }} ((๐๐)) ๐(๐บ) ๐(๐) ๐ฅโ๐ฆ ๐ฆโ๐ฅ 0ฬ 1ฬ [๐ฅ, ๐ฆ] ๐ฅโง๐ฆ โ๐ ๐ฅโจ๐ฆ ๐ +๐ ๐โ๐ ๐(๐; ๐ก) ๐/ โผ ๐๐
๐-dimensional subspaces of vector space ๐ multiset individual element notation multiset multiplicity notation set of ๐-element multisubsets of ๐ chromatic number of ๐บ character of group element ๐ ๐ฅ is covered by ๐ฆ in a poset ๐ฆ covers ๐ฅ in a poset the minimum element of a poset the maximum element of a poset closed interval from ๐ฅ to ๐ฆ in a poset meet of ๐ฅ and ๐ฆ in a poset meet of the subset ๐ in a poset join of ๐ฅ and ๐ฆ in a poset sum of subspaces ๐ and ๐ convolution of ๐ and ๐ in the incidence algebra characteristic polynomial of a ranked poset ๐ quotient of poset ๐ by equivalence relation โผ primitive ๐th root of unity
79 8 8 9 99 291 140 140 142 142 143 148 149 149 149 158 164 169 210
RobinsonโSchensted map
242
RobinsonโSchenstedโKnuth map
244
RS
๐ โฆ (๐, ๐) RSK
๐ โฆ (๐, ๐)
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Page 13 13 1 145 146 146 287 287 4 75 75 83 4 5 6 7 77
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/01
Chapter 1
Basic Counting
In this chapter we will develop the most elementary techniques for enumerating sets. Even though these methods are relatively basic, they will presage more complicated things to come. We denote the integers by โค and parameters such as ๐ and ๐ are always assumed to be integral unless otherwise indicated. We also use the notation โ and โ for the nonnegative and positive integers, respectively. As usual, โ, โ, and โ stand for the rational numbers, real numbers, and complex numbers, respectively. Finally, whenever taking the cardinality of a set we will assume it is finite.
1.1. The Sum and Product Rules for sets The Sum and Product Rules for sets are the basis for much of enumeration. And we will see various extensions of them later to ordinary and exponential generating functions. Although the rules are very easy to prove, we will include the demonstrations because the results are so useful. Given a finite set ๐, we will use either of the notations #๐ or |๐| for its cardinality. We will also write ๐ โ ๐ for the disjoint union of ๐ and ๐, and usage of this symbol implies disjointness even if it has not been previously explicitly stated. Finally, our notation for the (Cartesian) product of sets is ๐ ร ๐ = {(๐ , ๐ก) โฃ ๐ โ ๐, ๐ก โ ๐}. Lemma 1.1.1. Let ๐, ๐ be finite sets. (a) (Sum Rule) If ๐ โฉ ๐ = โ
, then |๐ โ ๐| = |๐| + |๐|. (b) (Product Rule) For any finite sets |๐ ร ๐| = |๐| โ
|๐|. Proof. Let ๐ = {๐ 1 , . . . , ๐ ๐ } and ๐ = {๐ก1 , . . . , ๐ก๐ }. For part (a), if ๐ and ๐ are disjoint, then we have ๐ โ ๐ = {๐ 1 , . . . , ๐ ๐ , ๐ก1 , . . . , ๐ก๐ } so that |๐ โ ๐| = ๐ + ๐ = |๐| + |๐|. 1 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2
1. Basic Counting
For part (b), we induct on ๐ = |๐|. If ๐ = โ
, then ๐ ร ๐ = โ
so that |๐ ร ๐| = 0 as desired. If |๐| โฅ 1, then let ๐ โฒ = ๐ โ {๐ก๐ }. We can write ๐ ร ๐ = (๐ ร ๐ โฒ ) โ (๐ ร {๐ก๐ }). Also ๐ ร {๐ก๐ } = {(๐ 1 , ๐ก๐ ), . . . , (๐ ๐ , ๐ก๐ )}, which has |๐| = ๐ elements since the second component is constant. Now by part (a) and induction |๐ ร ๐| = |๐ ร ๐ โฒ | + |๐ ร {๐ก๐ }| = ๐(๐ โ 1) + ๐ = ๐๐, which finishes the proof.
โก
In combinatorial choice problems, one is often given either the option to do one operation or another, or to do both. Suppose there are ๐ ways of doing the first operation and ๐ ways of doing the second. If there is no common operation, then the Sum Rule tells us that the number of ways to do one or the other is ๐ + ๐. And if doing the first operation has no effect on doing the second, then the Product Rule gives a count of ๐๐ for doing the first and then the second. More generally if there are ๐ ways of doing the first operation and, no matter which of the ๐ is chosen, the number of ways to continue with the second operation is ๐, then again there are ๐๐ ways to do both. (The actual ๐ second operations available may depend on the choice of the first, but not their number.) So in practice one translates from English to mathematics by replacing โorโ with addition and โandโ with multiplication. Another important concept related to cardinalities is that of a bijection. A bijection between sets ๐, ๐ is a function ๐ โถ ๐ โ ๐ which is both injective (one-to-one) and surjective (onto). If ๐, ๐ are finite, then the existence of a bijection between them implies that |๐| = |๐|. (One can extend this notion to infinite sets, but we will have no cause to do so here.) In combinatorics, one often uses bijections to prove that two sets have the same cardinality. See, for just one of many examples, the proof of Theorem 1.1.2 below. We will illustrate these ideas with one of the most famous sequences in all of combinatorics: the Fibonacci numbers. As is sometimes the case, there is an amusing (if somewhat improbable) story attached to the sequence. One starts at the beginning of time with a pair of immature rabbits, one male and one female. It takes one month for rabbits to mature. In every subsequent month a pair gives birth to another pair of immature rabbits, one male and one female. If rabbits only breed with their birth partner and live forever (as I said, the story is somewhat improbable), how many pairs of rabbits are there at the beginning of month ๐? Let us call this number ๐น๐ . It will be convenient to let ๐น0 = 0. Since we begin with only one pair, ๐น1 = 1. And at the beginning of the second month, the pair has matured but produced no offspring, so ๐น2 = 1. In subsequent months, one has all the rabbits from the previous month, counted by ๐น๐โ1 , together with the newborn pairs. The number of newborn pairs equals the number of mature pairs from the previous month, which equals the total number of pairs from the month before which is ๐น๐โ2 . Thus, applying the Sum Rule, (1.1)
๐น๐ = ๐น๐โ1 + ๐น๐โ2 for ๐ โฅ 2 with ๐น0 = 0 and ๐น1 = 1
where we can start the recursion at ๐ = 2 rather than ๐ = 3 due to letting ๐น0 = 0. The ๐น๐ are called the Fibonacci numbers. It is also important to note that some authors Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.1. The Sum and Product Rules for sets
3
Figure 1.1. ๐ฏ3
define this sequence by letting (1.2)
๐0 = ๐1 = 1 and ๐๐ = ๐๐โ1 + ๐๐โ2 for ๐ โฅ 2.
So it is important to make sure which flavor of Fibonacci is being discussed in a given context. One might wonder if there is an explicit formula for ๐น๐ in addition to the recursive one above. We will see that such an expression exists, although it is far from obvious how to derive it from what we have done so far. Indeed, we will need the theory of ordinary generating functions discussed in Chapter 3 to derive it. Another thing which might be desired is a combinatorial interpretation for ๐น๐ . A combinatorial interpretation for a sequence of nonnegative integers ๐0 , ๐1 , ๐2 , . . . is a sequence of sets ๐ 0 , ๐ 1 , ๐ 2 , . . . such that #๐๐ = ๐๐ for all ๐. Such interpretations often give rise to very pretty and intuitive proofs about the original sequence and so are highly desirable. One could argue that the story of the rabbits already gives such an interpretation. But we would like something more amenable to mathematical manipulation. Suppose we are given a row of squares. We are also given two types of tiles: dominos which can cover two squares and monominos which can cover one. A tiling of the row is a set of tiles which covers each square exactly once. Let ๐ฏ๐ be the set of tilings of a row of ๐ squares. See Figure 1.1 for a list of the elements of ๐ฏ3 . There is a simple relationship between tilings and Fibonacci numbers. Theorem 1.1.2. For ๐ โฅ 1 we have ๐น๐ = #๐ฏ๐โ1 . Proof. It suffices to prove that both sides of this equation satisfy the same initial conditions and recurrence relation. When the row contains no squares, it only has the empty tiling so ๐ฏ0 = 1 = ๐น1 . And when there is one square, it can only be tiled by a monomino so ๐ฏ1 = 1 = ๐น2 . For the recursion, the tilings in ๐ฏ๐ can be divided into two types: those which end with a monomino and those which end with a domino. Removing the last tile shows that these tilings are in bijection with those in ๐ฏ๐โ1 and those in ๐ฏ๐โ2 , respectively. Thus #๐ฏ๐ = #๐ฏ๐โ1 + #๐ฏ๐โ2 as desired. โก To see the power of a good combinatorial interpretation, we will now give a simple proof of an identity for the ๐น๐ . Such identities are legion. See, for example, the book of Benjamin and Quinn [10]. Corollary 1.1.3. For ๐ โฅ 1 and ๐ โฅ 0 we have ๐น๐+๐ = ๐น๐โ1 ๐น๐ + ๐น๐ ๐น๐+1 . Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4
1. Basic Counting
Proof. By the previous theorem, the left-hand side counts the number of tilings of a row of ๐ + ๐ โ 1 squares. So it suffices to show that the same is true of the right. Label the squares 1, . . . , ๐ + ๐ โ 1 from left to right. We can write ๐ฏ๐+๐โ1 = ๐ฎ โ ๐ฏ where ๐ฎ contains those tilings with a domino covering squares ๐ โ 1 and ๐, and ๐ฏ has the tilings with ๐โ1 and ๐ in different tiles. The tilings in ๐ฏ are essentially pairs of tilings, the first covering the first ๐ โ 1 square and second covering the last ๐ squares. So the Product Rule gives |๐ฏ| = |๐ฏ๐โ1 | โ
|๐ฏ๐ | = ๐น๐ ๐น๐+1 . Removing the given domino from the tilings in ๐ฎ again splits each tiling into a pair with the first covering ๐ โ 2 squares and the second ๐ โ 1. Taking cardinalities results in |๐ฎ| = ๐น๐โ1 ๐น๐ . Finally, applying the Sum Rule finishes the proof. โก The demonstration just given is called a combinatorial proof since it involves counting discrete objects. We will meet other useful proof techniques as we go along. But combinatorial proofs are often considered to be the most pleasant, in part because they can be more illuminating than demonstrations just involving formal manipulations.
1.2. Permutations and words It is always important when considering an enumeration problem to determine whether the objects being considered are ordered or not. In this section we will consider the most basic ordered structures, namely permutations and words. If ๐ is a set with #๐ = ๐, then a permutation of ๐ is a sequence ๐ = ๐1 . . . ๐๐ obtained by listing the elements of ๐ in some order. If ๐ is a permutation, we will always use ๐๐ to denote the ๐th element of ๐ and similarly for other ordered structures. We let ๐(๐) denote the set of all permutations of ๐. For example, ๐({๐, ๐, ๐}) = {๐๐๐, ๐๐๐, ๐๐๐, ๐๐๐, ๐๐๐, ๐๐๐}. Clearly #๐(๐) only depends on #๐. So often we choose the canonical ๐-element set [๐] = {1, 2, . . . , ๐}. We can also consider ๐-permutations of ๐ which are sequences ๐ = ๐1 . . . ๐๐ obtained by linearly ordering ๐ distinct elements of ๐. Here, ๐ is called the length of the permutation and we write โ(๐) = ๐. Again, we use the same terminology and notation for other ordered structures. The set of all ๐-permutations of ๐ is denoted ๐(๐, ๐). By way of illustration, ๐({๐, ๐, ๐, ๐}, 2) = {๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐, ๐๐}. In particular, if #๐ = ๐, then ๐(๐, ๐) = ๐(๐). Also ๐(๐, ๐) = โ
for ๐ > ๐ since in this case it is impossible to pick ๐ distinct elements from a set with only ๐. And ๐(๐, 0) = {๐} where ๐ is the empty sequence. To count permutations it will be convenient to introduce the following notation. Given nonnegative integers ๐, ๐, we can form the falling factorial ๐โ๐ = ๐(๐ โ 1) . . . (๐ โ ๐ + 1). Note that ๐ equals the number of factors in the product. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.3. Combinations and subsets
5
Theorem 1.2.1. For ๐, ๐ โฅ 0 we have #๐([๐], ๐) = ๐โ๐ . In particular #๐([๐]) = ๐! . Proof. Since ๐([๐]) = ๐([๐], ๐), it suffices to prove the first formula. Given ๐ = ๐1 . . . ๐๐ โ ๐([๐], ๐), there are ๐ ways to pick ๐1 . Since ๐2 โ ๐1 , there remains ๐ โ 1 choices for ๐2 . Since the number of choices for ๐2 does not depend on the actual element chosen for ๐, one can continue in this way and apply a modified version of the Product Rule to obtain the result. โก Note that when 0 โค ๐ โค ๐ we can write (1.3)
๐โ๐ =
๐! . (๐ โ ๐)!
But for ๐ > ๐ the product ๐ โ๐ still makes sense, even though the product cannot be expressed as a quotient of factorials. Indeed, if ๐ > ๐, then zero is a factor and so ๐ โ๐ = 0, which agrees with the fact that ๐([๐], ๐) = โ
. In the special case ๐ = 0 we have ๐ โ๐ = 1 because it is an empty product. Again, this reflects the combinatorics in that ๐([๐], 0) = {๐}. One of the other things to keep track of in a combinatorial problem is whether elements are allowed to be repeated or not. In permutations we have no repetitions. But the case when they are allowed is interesting as well. A ๐-word over a set ๐ is a sequence ๐ค = ๐ค 1 . . . ๐ค ๐ where ๐ค ๐ โ ๐ for all ๐. Note that there is no assumption that the ๐ค ๐ are distinct. We denote the set of ๐-words over ๐ by ๐((๐, ๐)). Note the use of the double parentheses to denote the fact that repetitions are allowed. Note also that ๐(๐, ๐) โ ๐((๐, ๐)), but usually the inclusion is strict. To illustrate ๐(({๐, ๐, ๐, ๐}, 2)) = ๐({๐, ๐, ๐, ๐}, 2) โ {๐๐, ๐๐, ๐๐, ๐๐}. The proof of the next result is almost identical to that of Theorem 1.2.1 and so is left to the reader. When a result is given without proof, this is indicated by a box at the end of its statement. Theorem 1.2.2. For ๐, ๐ โฅ 0 we have #๐(([๐], ๐)) = ๐๐ .
โก
1.3. Combinations and subsets We will now consider unordered versions of the combinatorial objects studied in the last section. These are sometimes called combinations, although the reader may know them by their more familiar name: subsets. Given a set ๐, we let 2๐ denote the set of all subsets of ๐. Notice that 2๐ is a set, not a number. For example, 2{๐,๐,๐} = {โ
, {๐}, {๐}, {๐}, {๐, ๐}, {๐, ๐}, {๐, ๐}, {๐, ๐, ๐}}. The reason for this notation should be made clear by the following result. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
6
1. Basic Counting
Theorem 1.3.1. For ๐ โฅ 0 we have #2[๐] = 2๐ . Proof. By Theorem 1.2.2 we have 2๐ = #๐(({0, 1}, ๐)). So it suffices to find a bijection ๐ โถ 2[๐] โ ๐(({0, 1}, ๐)), and there is a canonical one. In particular, if ๐ โ [๐], then we let ๐(๐) = ๐ค 1 . . . ๐ค ๐ where, for all ๐, 1 if ๐ โ ๐, ๐ค๐ = { 0 if ๐ โ ๐. To show that ๐ is bijective, it suffices to find its inverse. If ๐ค = ๐ค 1 . . . ๐ค ๐ โ ๐(({0, 1}, ๐)), then we let ๐โ1 (๐ค) = ๐ where ๐ โ ๐ if ๐ค ๐ = 1 and ๐ โ ๐ if ๐ค ๐ = 0 where 1 โค ๐ โค ๐. It is easy to check that the compositions ๐ โ ๐โ1 and ๐โ1 โ ๐ are the identity maps on their respective domains. This completes the proof. โก The proof just given is called a bijective proof and it is a particularly nice kind of combinatorial proof. This is because bijective proofs can relate different types of combinatorial objects, sometimes revealing unexpected connections. Also note that we proved ๐ bijective by finding its inverse rather than showing directly that it was oneto-one and onto. This is the preferred method as having a concrete description of ๐โ1 can be useful later. Finally, when dealing with functions we will always compose them right-to-left so that (๐ โ ๐)(๐ฅ) = ๐(๐(๐ฅ)). We now want to count subsets by their cardinality. For a set ๐ we will use the notation ๐ ( ) = {๐ โ ๐ โฃ #๐ = ๐}. ๐ As an example, {๐, ๐, ๐} ( ) = {{๐, ๐}, {๐, ๐}, {๐, ๐}}. 2 As expected, we now find the cardinality of this set. Theorem 1.3.2. For ๐, ๐ โฅ 0 we have #(
๐โ๐ [๐] . )= ๐ ๐!
Proof. Cross-multiplying and using Theorem 1.2.1 we see that it suffices to prove #๐([๐], ๐) = ๐! โ
#(
[๐] ). ๐
To see this, note that we can get each ๐1 . . . ๐๐ โ ๐([๐], ๐) exactly once by running through the subsets ๐ = {๐ 1 , . . . , ๐ ๐ } โ [๐] and then ordering each ๐ in all possible ways. The number of choices for ๐ is #([๐] ) and, by Theorem 1.2.1 again, the number ๐ of ways of permuting the elements of ๐ is ๐!. So we are done by the Product Rule. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.3. Combinations and subsets
7
1 1 1 1 1
1 2
3 4
1 3
6
1 4
1
Figure 1.2. Rows 0 through 4 of Pascalโs triangle
Given ๐, ๐ โฅ 0, we define the binomial coefficient ๐โ๐ ๐ [๐] . ( ) = #( ) = ๐ ๐ ๐!
(1.4)
The reason for this name is that these numbers appear in the binomial expansion which will be studied in Chapter 3. Often you will see the binomial coefficients displayed in a triangular array called Pascalโs triangle which has (๐๐) as the entry in the ๐th row and ๐th diagonal. When ๐ > ๐ it is traditional to omit the zeros. See Figure 1.2 for rows 0 through 4. (We apologize to the reader for not writing out the whole triangle, but this page is not big enough.) For 0 โค ๐ โค ๐ we can use (1.3) to write ๐! ๐ , ( )= ๐ ๐! (๐ โ ๐)!
(1.5)
which is pleasing because of its symmetry. We can also extend the binomial coefficients to ๐ < 0 by letting (๐๐) = 0. This is in keeping with the fact that ([๐] ) = โ
in this case. ๐ In the next theorem, we collect various basic results about binomial coefficients which will be useful in the sequel. In it, we will use the Kronecker delta function defined by 1 if ๐ฅ = ๐ฆ, ๐ฟ๐ฅ,๐ฆ = { 0 if ๐ฅ โ ๐ฆ. Also note that we do not specify the range of the summation variable ๐ in (c) and (d) because it can be taken as either 0 โค ๐ โค ๐ or ๐ โ โค since the extra terms in the larger sum are all zero. Both viewpoints will be useful on occasion. Theorem 1.3.3. Suppose ๐ โฅ 0. (a) The binomial coefficients satisfy the initial condition 0 ( ) = ๐ฟ ๐,0 ๐ and recurrence relation ๐ ๐โ1 ๐โ1 ( )=( )+( ) ๐ ๐โ1 ๐ for ๐ โฅ 1. (b) The binomial coefficients are symmetric, meaning that ๐ ๐ ( )=( ). ๐ ๐โ๐ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
8
1. Basic Counting
(c) We have ๐ โ ( ) = 2๐ . ๐ ๐ (d) We have ๐ โ(โ1)๐ ( ) = ๐ฟ๐,0 . ๐ ๐ Proof. (a) The initial condition is clear. For the recursion let ๐ฎ1 be the set of ๐ โ ([๐] ) ๐ [๐] [๐] with ๐ โ ๐, and let ๐ฎ2 be the set of ๐ โ ( ๐ ) with ๐ โ ๐. Then ( ๐ ) = ๐ฎ1 โ ๐ฎ2 . But if ๐ โ ๐, then ๐ โ {๐} โ ([๐โ1] ). This gives a bijection between ๐ฎ1 and ([๐โ1] ) so that ๐โ1 ๐โ1 ๐โ1 ๐โ1 and this implies #๐ฎ1 = (๐โ1). On the other hand, if ๐ โ ๐, then ๐ โ ([๐โ1] #๐ฎ ) 2 = ( ๐ ). ๐ Applying the Sum Rule completes the proof. [๐] (b) It suffices to find a bijection ๐ โถ ([๐] ) โ (๐โ๐ ). Consider the map ๐ โถ 2[๐] โ 2[๐] ๐ by ๐(๐) = [๐] โ ๐ where the minus sign indicates difference of sets. Note that the composition ๐2 is the identity map so that ๐ is a bijection. Furthermore ๐ โ ([๐] ) if and ๐ [๐] only if ๐(๐) โ (๐โ๐ ). So ๐ restricts to a bijection between these two sets.
(c) This follows by applying the Sum Rule to the equation 2[๐] = โจ๐ ([๐] ). ๐ (d) The case ๐ = 0 is easy, so we assume ๐ > 0. We will learn general techniques for dealing with equations involving signs in the next chapter. But for now, we try to prove the equivalent equality ๐ ๐ โ ( ) = โ ( ). ๐ ๐ ๐ odd ๐ even Let ๐ฏ1 be the set of ๐ โ 2[๐] with #๐ odd and let ๐ฏ2 be the set of ๐ โ 2[๐] with #๐ even. We wish to find a bijection ๐ โถ ๐ฏ1 โ ๐ฏ2 . Consider the operation of symmetric difference ๐ ฮ ๐ = (๐ โ ๐) โ (๐ โ ๐). It is not hard to see that (๐ ฮ ๐) ฮ ๐ = ๐. Now define ๐ โถ 2[๐] โ 2[๐] by ๐(๐) = ๐ ฮ {๐} so that, by the previous sentence, ๐2 is the identity. Furthermore, ๐ reverses parity and so restricts to the desired bijection. โก As with the case of permutations and words, we want to enumerate โsetsโ where repetitions are allowed. A multiset ๐ is an unordered collection of elements which may be repeated. For example ๐ = {{๐, ๐, ๐, ๐, ๐, ๐}} = {{๐, ๐, ๐, ๐, ๐, ๐}}. Note the use of double curly brackets to denote a multiset. We will also use multiplicity notation where ๐๐ denotes ๐ copies of the element ๐. Continuing our example ๐ = {{๐3 , ๐, ๐2 }}. As with powers, an exponent of one is optional and an exponent of zero indicates that there are no copies of that element in the multiset. The cardinality of a multiset is its number of elements counted with multiplicity. So in our example #๐ = 2 + 1 + 3 = 6. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.3. Combinations and subsets
9
If ๐ is a set, then ๐ is a multiset on ๐ if every element of ๐ is an element of ๐. We let ((๐๐)) be the set of all multisets on ๐ of cardinality ๐ and ๐ [๐] (( )) = #(( )). ๐ ๐ To illustrate {๐, ๐, ๐} (( )) = { {{๐, ๐}}, {{๐, ๐}}, {{๐, ๐}}, {{๐, ๐}}, {{๐, ๐}}, {{๐, ๐}} } 2 and so ((32)) = 6. Theorem 1.3.4. For ๐, ๐ โฅ 0 we have ๐ ๐+๐โ1 (( )) = ( ). ๐ ๐ Proof. We wish to find a bijection ๐ โถ ((
[๐ + ๐ โ 1] [๐] )) โ ( ). ๐ ๐
Given a multiset ๐ = {{๐1 โค ๐2 โค ๐3 โค โฏ โค ๐๐ }} on [๐], let ๐(๐) = {๐1 < ๐2 + 1 < ๐3 + 2 < โฏ < ๐๐ + ๐ โ 1}. Now the ๐๐ + ๐ โ 1 are distinct, and the fact that ๐๐ โค ๐ implies ๐๐ + ๐ โ 1 โค ๐ + ๐ โ 1. It follows that ๐(๐) โ ([๐+๐โ1] ) and so the map is well-defined. It should now be easy ๐ for the reader to construct an inverse, proving that ๐ is bijective. โก As with the binomial coefficients, we extend ((๐๐)) to negative ๐ by letting it equal zero. In the future we will do the same for other constants whose natural domain of definition is ๐, ๐ โฅ 0 without comment. We do wish to comment on an interesting relationship between counting sets and multisets. Note that definition (1.4) is well-defined for any complex number ๐ since the falling factorial is just a product, and in particular it makes sense for negative integers. In fact, if ๐ โ โ, then (1.6)
(
โ๐ (โ๐)(โ๐ โ 1) โฏ (โ๐ โ ๐ + 1) )= ๐ ๐! ๐(๐ + 1) โฏ (๐ + ๐ โ 1) ๐! ๐ = (โ1)๐ (( )) ๐ = (โ1)๐
by Theorem 1.3.4. This kind of situation where evaluation of an enumerative formula at negative arguments yields, up to sign, another enumerative function is called combinatorial reciprocity and will be studied in Section 3.9. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10
1. Basic Counting
1.4. Set partitions We have already seen that disjoint unions are nice combinatorially. So it should come as no surprise that set partitions also play an important role. A partition of a set ๐ is a set ๐ of nonempty subsets ๐ต1 , . . . , ๐ต๐ such that ๐ = โจ๐ ๐ต๐ , written ๐ โข ๐. The ๐ต๐ are called blocks and we use the notation ๐ = ๐ต1 / . . . /๐ต๐ leaving out all curly brackets and commas, even though the elements of the blocks, as well as the blocks themselves, are unordered. For example, one set partition of ๐ = {๐, ๐, ๐, ๐, ๐, ๐, ๐} is ๐ = ๐๐๐/๐๐/๐/๐ = ๐/๐๐/๐/๐๐๐. We let ๐ต(๐) be the set of all ๐ โข ๐. To illustrate, ๐ต({๐, ๐, ๐}) = {๐/๐/๐, ๐๐/๐, ๐๐/๐, ๐/๐๐, ๐๐๐}. The ๐th Bell number is ๐ต(๐) = #๐ต([๐]). Although there is no known expression for ๐ต(๐) as a simple product, there is a recursion. Theorem 1.4.1. The Bell numbers satisfy the initial condition ๐ต(0) = 1 and the recurrence relation ๐โ1 ๐ต(๐) = โ ( )๐ต(๐ โ ๐) ๐โ1 ๐ for ๐ โฅ 1. Proof. The initial condition counts the empty partition of โ
. For the recursion, given ๐ โ ๐ต([๐]), let ๐ be the number of elements in the block ๐ต containing ๐. Then there are (๐โ1 ) ways to pick the remaining ๐ โ 1 elements of [๐ โ 1] to be in ๐ต. And the ๐โ1 number of ways to partition [๐] โ ๐ต is ๐ต(๐ โ ๐). Summing over all possible ๐ finishes the proof. โก We may sometimes want to keep track of the number of blocks in our partitions. So define ๐(๐, ๐) to be the set of all ๐ โข ๐ with ๐ blocks. The Stirling numbers of the second kind are ๐(๐, ๐) = #๐([๐], ๐). We will introduce Stirling numbers of the first kind in the next section. For example ๐({๐, ๐, ๐}, 2) = {๐๐/๐, ๐๐/๐, ๐/๐๐} so ๐(3, 2) = 3. Just as with the binomial coefficients, the ๐(๐, ๐) for 1 โค ๐ โค ๐ can be displayed in a triangle as in Figure 1.3. And like the binomial coefficients, these Stirling numbers satisfy a simple recurrence relation. 1 1 1 1 1
1 3
7 15
1 6
25
1 10
1
Figure 1.3. Rows 1 through 5 of Stirlingโs second triangle
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.5. Permutations by cycle structure
11
Theorem 1.4.2. The Stirling numbers of the second kind satisfy the initial condition ๐(0, ๐) = ๐ฟ ๐,0 and recurrence relation ๐(๐, ๐) = ๐(๐ โ 1, ๐ โ 1) + ๐๐(๐ โ 1, ๐) for ๐ โฅ 1. Proof. By now, the reader should be able to explain the initial condition without difficulty. For the recursion, the elements ๐ โ ๐([๐], ๐) are of two flavors: those where ๐ is in a block by itself and those where ๐ is in a block with other elements. Removing ๐ in the first case leaves a partition in ๐([๐ โ 1], ๐ โ 1) and this is a bijection. This accounts for the summand ๐(๐โ1, ๐โ1). Removing ๐ in the second case leaves ๐ โ ๐([๐โ1], ๐), but this map is not a bijection. In particular, given ๐, one can insert ๐ into any one of its ๐ blocks to recover an element of ๐([๐], ๐). So the total count is ๐๐(๐ โ 1, ๐) for this case. โก
1.5. Permutations by cycle structure The ordered analogue of a decomposition of a set into a partition is the decomposition of a permutation of [๐] into cycles. These are counted by the Stirling numbers of the first kind. The symmetric group is ๐๐ = ๐([๐]). As the name implies, ๐๐ has a group structure defined as follows. If ๐ = ๐1 . . . ๐๐ โ ๐๐ , then we can view this permutation as a bijection ๐ โถ [๐] โ [๐] where ๐(๐) = ๐๐ . From this it follows that ๐๐ is a group where the operation is composition of functions. Given ๐ โ ๐๐ and ๐ โ [๐], there is a smallest exponent โ โฅ 1 such that ๐โ (๐) = ๐. This and various other claims below will be proved using digraphs in Section 1.9. In this case, the elements ๐, ๐(๐), ๐2 (๐), . . . , ๐โโ1 (๐) are all distinct and we write ๐ = (๐, ๐(๐), ๐2 (๐), . . . , ๐โโ1 (๐)) and call this a cycle of length โ or simply an โ-cycle of ๐. Cycles of length one are called fixed points. As an example, if ๐ = 6514237 and ๐ = 1, then we have ๐(1) = 6, ๐2 (1) = 3, ๐3 (1) = 1 so that ๐ = (1, 6, 3) is a cycle of ๐. We now iterate this process: if there is some ๐ โ [๐] which is not in any of the cycles computed so far, we find the cycle containing ๐ and continue until every element is in a cycle. The cycle decomposition of ๐ is ๐ = ๐ 1 . . . ๐ ๐ where the ๐๐ are the cycles found in this process. Continuing our example, we could get ๐ = (1, 6, 3)(2, 5)(4)(7). To distinguish the cycle decomposition of ๐ from its description as ๐ = ๐1 . . . ๐๐ we will call the latter the one-line notation for ๐. This is also distinct from two-line notation, which is where one writes (1.7)
๐=
1 ๐1
2 ๐2
... ๐ . . . . ๐๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
12
1. Basic Counting
1 1 2 6 24
1 3
11 50
1 6
35
1 10
1
Figure 1.4. Rows 1 through 5 of Stirlingโs first triangle
Note that an โ-cycle can be written in โ different ways depending on which of its elements one starts with; for example (1, 6, 3) = (6, 3, 1) = (3, 1, 6). Furthermore, the distinct cycles of ๐ are disjoint. So if we think of the cycle ๐ as the permutation of [๐] which agrees with ๐ on the elements of ๐ and has all other elements as fixed points, then the cycles of ๐ = ๐ 1 . . . ๐ ๐ commute where we consider the product as a composition of permutations. Returning to our running example, we could write ๐ = (1, 6, 3)(2, 5)(4)(7) = (4)(1, 6, 3)(7)(2, 5) = (5, 2)(3, 1, 6)(7)(4). As mentioned above, we defer the proof of the following result until Section 1.9. Theorem 1.5.1. Every ๐ โ ๐๐ has a cycle decomposition ๐ = ๐ 1 . . . ๐ ๐ which is unique up to the order of the factors and cyclic reordering of the elements within each ๐ ๐ . We are now in a position to proceed parallel to the development of set partitions with a given number of blocks in the previous section. For ๐ โฅ 0 we denote by ๐([๐], ๐) the set of all permutations in ๐๐ which have ๐ cycles in their decomposition. Note the difference between โ๐ cyclesโ referring to the number of cycles and โ๐-cyclesโ referring to the length of the cycles. The signless Stirling numbers of the first kind are ๐(๐, ๐) = #๐([๐], ๐). So, analogous to what we have seen before, ๐(๐, ๐) = 0 for ๐ < 0 or ๐ > ๐. To illustrate the notation, ๐([4], 1) = {(1, 2, 3, 4), (1, 2, 4, 3), (1, 3, 2, 4), (1, 3, 4, 2), (1, 4, 2, 3), (1, 4, 3, 2)} so ๐(4, 1) = 6. In general, as you will be asked to prove in an exercise, ๐([๐], 1) = (๐โ1)!. Part of Stirlingโs first triangle is displayed in Figure 1.4. We also have a recursion. Theorem 1.5.2. The signless Stirling numbers of the first kind satisfy the initial condition ๐(0, ๐) = ๐ฟ ๐,0 and recurrence relation ๐(๐, ๐) = ๐(๐ โ 1, ๐ โ 1) + (๐ โ 1)๐(๐ โ 1, ๐) for ๐ โฅ 1. Proof. As usual, we concentrate on the recurrence. Given ๐ โ ๐([๐], ๐), we can remove ๐ from its cycle. If ๐ was a fixed point, then the resulting permutations are counted by ๐(๐ โ 1, ๐ โ 1). If ๐ was in a cycle of length at least two, then the permutations obtained upon removal are in ๐([๐ โ 1], ๐). So one must find the number of Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.6. Integer partitions
13
ways to insert ๐ into a cycle of some ๐ โ ๐([๐ โ 1], ๐). There are โ places to insert ๐ in a cycle of length โ. So the total number of insertion spots is the sum of the cycle lengths of ๐, which is ๐ โ 1. โก The reader may have guessed that there are also (signed) Stirling numbers of the first kind defined by ๐ (๐, ๐) = (โ1)๐โ๐ ๐(๐, ๐). It is not immediately apparent why one would want to attach signs to these constants. We will see one reason in Chapter 5 where it will be shown that the ๐ (๐, ๐) are the Whitney numbers of the first kind for the lattice of set partitions ordered by refinement. Here we will content ourselves with proving an analogue of part (d) of Theorem 1.3.3. Corollary 1.5.3. For ๐ โฅ 0 we have โ ๐ (๐, ๐) = { ๐
1 if ๐ = 0 or 1, 0 if ๐ โฅ 2.
Proof. The cases when ๐ = 0 or 1 are easy to verify, so assume ๐ โฅ 2. Since ๐ (๐, ๐) = (โ1)๐โ๐ ๐(๐, ๐) and (โ1)๐ is constant throughout the summation, it suffices to show that โ๐ (โ1)๐ ๐(๐, ๐) = 0. Using Theorem 1.5.2 and induction on ๐ we obtain โ(โ1)๐ ๐(๐, ๐) = โ(โ1)๐ ๐(๐ โ 1, ๐ โ 1) + โ(โ1)๐ (๐ โ 1)๐(๐ โ 1, ๐) ๐
๐
๐
= โ โ(โ1)
๐โ1
๐(๐ โ 1, ๐ โ 1) + (๐ โ 1) โ(โ1)๐ ๐(๐ โ 1, ๐)
๐
๐
= โ0 + (๐ โ 1)0 =0 as desired.
โก
Note the usefulness of considering the sums in the preceding proof as over ๐ โ โค rather than 0 โค ๐ โค ๐. This does away with having to consider any special cases at the values ๐ = 0 or ๐ = ๐.
1.6. Integer partitions Just as one can partition a set into blocks, one can partition a nonnegative integer as a sum. Integer partitions play an important role not just in combinatorics but also in number theory and the representation theory of the symmetric group. See the appendix at the end of the book for more information on the latter. An integer partition of ๐ โฅ 0 is a multiset ๐ of positive integers such that the sum of the elements of ๐, denoted |๐|, is ๐. We also write ๐ โข ๐. These elements are called the parts. Since the parts of ๐ are unordered, we will always list them in a canonical order ๐ = (๐1 , . . . , ๐๐ ) which is weakly decreasing. We let ๐(๐) denote the set of all Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
14
1. Basic Counting
partitions of ๐ and ๐(๐) = #๐(๐). For example, ๐(4) = {(1, 1, 1, 1), (2, 1, 1), (2, 2), (3, 1), (4)} so that ๐(4) = 5. Note the distinction between ๐([๐]), which is a set of set partitions, and ๐(๐), which is a set of integer partitions. Sometimes we will just say โpartitionโ if the context makes it clear whether we are partitioning sets or integers. We will use multiplicity notation for integer partitions just as we would for any multiset, writing ๐ = (1๐1 , 2๐2 , . . . , ๐๐๐ ) where ๐๐ is the multiplicity of ๐ in ๐. There is no known product formula for ๐(๐). In fact, there is not even a simple recurrence relation. One can use generating functions to derive results about these numbers, but that must wait until Chapter 3. Here we will just introduce a useful geometric device for studying ๐(๐). The Ferrers or Young diagram of ๐ = (๐1 , . . . , ๐๐ ) โข ๐ is an array of ๐ boxes into left-justified rows such that row ๐ contains ๐๐ boxes. Dots are also sometimes used in place of boxes and in this case some authors use โFerrers diagramโ for the dot variant and โYoung diagramโ for the corresponding array of boxes. We often make no distinction between a partition and its Young diagram. The Young diagram of ๐ = (5, 5, 2, 1) is shown in Figure 1.5. We should warn the reader that we are writing our Young diagrams in English notation where the rows are numbered from 1 to ๐ from the top down as in a matrix. Some authors prefer French notation where the rows are numbered from bottom to top as in a Cartesian coordinate system. The conjugate or transpose of ๐ is the partition ๐๐ก whose Young diagram is obtained by reflecting the diagram of ๐ about its main diagonal. This is done in Figure 1.5, showing that (5, 5, 2, 1)๐ก = (4, 3, 2, 2, 2). There is also another way to express the parts of the conjugate.
๐ = (5, 5, 2, 1) =
= โข โข
โข
โข
โข
โข
โข
โข
โข
โข
โข
โข
โข ๐๐ก =
Figure 1.5. A partition, its Young diagram, and its conjugate
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.6. Integer partitions
15
Proposition 1.6.1. If ๐ = (๐1 , . . . , ๐๐ ) is a partition and ๐๐ก = (๐๐ก1 , . . . , ๐๐ก๐ ), then, for 1 โค ๐ โค ๐, ๐๐๐ก = #{๐ โฃ ๐๐ โฅ ๐}. Proof. By definition, ๐๐๐ก is the length of the ๐th column of ๐. But that column contains a box in row ๐ if and only if ๐๐ โฅ ๐. โก The number of parts of a partition ๐ is called its length and is denoted โ(๐). At this point the reader is probably expecting a discussion of those partitions of ๐ with โ(๐) = ๐. As it turns out, it is a bit simpler to consider ๐(๐, ๐), the set of all partitions ๐ of ๐ with โ(๐) โค ๐, and ๐(๐, ๐) = #๐(๐, ๐). Note that the number of ๐ โข ๐ with โ(๐) = ๐ is just ๐(๐, ๐) โ ๐(๐, ๐ โ 1). So in some sense the two viewpoints are equivalent. But it will be easier to state our results in terms of ๐(๐, ๐). Note also that ๐(๐, 0) โค ๐(๐, 1) โค โฏ โค ๐(๐, ๐) = ๐(๐, ๐ + 1) = โฏ = ๐(๐). Because of this behavior, it is best to display the ๐(๐, ๐) in a matrix, rather than a triangle, keeping in mind that the entries in the ๐th row eventually stabilize to an infinite repetition of the constant ๐(๐). Part of this array will be found in Figure 1.6. We also assume that ๐(๐, ๐) = 0 if ๐ < 0 or ๐ < 0. Unlike ๐(๐), one can write down a simple recurrence relation for ๐(๐, ๐). Theorem 1.6.2. The ๐(๐, ๐) satisfy ๐(0, ๐) = {
0 if ๐ < 0, 1 if ๐ โฅ 0
and ๐(๐, ๐) = ๐(๐ โ ๐, ๐) + ๐(๐, ๐ โ 1) for ๐ โฅ 1 Proof. We skip directly to the recursion. Note that since conjugation is a bijection, ๐(๐, ๐) also counts the partitions ๐ = (๐1 , . . . , ๐๐ ) โข ๐ such that ๐1 โค ๐. It will be convenient to use this interpretation of ๐(๐, ๐) for the proof. We have two possible cases. If ๐1 = ๐, then ๐ = (๐2 , . . . , ๐๐ ) โข ๐ โ ๐ and ๐2 โค ๐1 = ๐. So these partitions are counted by ๐(๐ โ ๐, ๐). The other possibility is that ๐1 โค ๐ โ 1. And these ๐ are taken care of by the ๐(๐, ๐ โ 1) term. โก
0 1 2 3 4
0 1 0 0 0 0
1 1 1 1 1 1
2 1 1 2 2 3
3 1 1 2 3 4
4 1 1 2 3 5
5 1 1 2 3 5
Figure 1.6. The values ๐(๐, ๐) for 0 โค ๐ โค 4 and 0 โค ๐ โค 5
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
16
1. Basic Counting
1.7. Compositions Recall that integer partitions are really unordered even though we usually list them in weakly decreasing fashion. This raises the question about what happens if we considered ways to write ๐ as a sum when the summands are ordered. This is the notion of a composition. A composition of ๐ is a sequence ๐ผ = [๐ผ1 , . . . , ๐ผ๐ ] of positive integers called parts such that โ๐ ๐ผ๐ = ๐. We write ๐ผ โง ๐ and use square brackets to distinguish compositions from integer partitions. This causes a notational conflict between [๐] as a composition of ๐ and as the integers from 1 to ๐, but the context should make it clear which interpretation is meant. Let ๐(๐) be the set of compositions of ๐ and ๐(๐) = #๐(๐). So the compositions of 4 are ๐(4) = {[1, 1, 1, 1], [2, 1, 1], [1, 2, 1], [1, 1, 2], [2, 2], [3, 1], [1, 3], [4]}. So ๐(4) = 8, which is a power of 2. This, as your author is fond of saying, is not a coincidence. Theorem 1.7.1. For ๐ โฅ 1 we have ๐(๐) = 2๐โ1 . Proof. There is a famous bijection ๐ โถ 2[๐โ1] โ ๐(๐), which we will use to prove this result. This map will be useful when working with quasisymmetric functions in Chapter 8. Given ๐ = {๐ 1 , . . . , ๐ ๐ } โ [๐ โ 1] written in increasing order, we define (1.8)
๐(๐) = [๐ 1 โ ๐ 0 , ๐ 2 โ ๐ 1 , . . . , ๐ ๐ โ ๐ ๐โ1 , ๐ ๐+1 โ ๐ ๐ ]
where, by definition, ๐ 0 = 0 and ๐ ๐+1 = ๐. To show that ๐ is well-defined, suppose ๐(๐) = [๐ผ1 , . . . , ๐ผ๐+1 ]. Since ๐ is increasing, ๐ผ๐ = ๐ ๐ โ ๐ ๐โ1 is a positive integer. Furthermore ๐+1
๐+1
โ ๐ผ๐ = โ (๐ ๐ โ ๐ ๐โ1 ) = ๐ ๐+1 โ ๐ 0 = ๐. ๐=1
๐=1
Thus ๐(๐) โ ๐(๐) as desired. To show that ๐ is bijective, we construct its inverse ๐โ1 โถ ๐(๐) โ 2[๐โ1] . Given ๐ผ = [๐ผ1 , . . . , ๐ผ๐+1 ] โ ๐(๐), we let ๐โ1 (๐ผ) = {๐ผ1 , ๐ผ1 + ๐ผ2 , ๐ผ1 + ๐ผ2 + ๐ผ3 , . . . , ๐ผ1 + ๐ผ2 + โฏ + ๐ผ๐ }. It should not be hard for the reader to prove that ๐โ1 is well-defined and the inverse of ๐. โก As usual, we wish to make a more refined count by restricting the number of constituents of the object under consideration. Let ๐(๐, ๐) be the set of all compositions of ๐ with exactly ๐ parts and let ๐(๐, ๐) = #๐(๐, ๐). Since the ๐(๐, ๐) will turn out to be previously studied constants, we will forgo the usual triangle. The result below follows easily by restricting the function ๐ from the previous proof, so the demonstration is omitted. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.8. The twelvefold way
17
Theorem 1.7.2. The composition numbers satisfy ๐(0, ๐) = ๐ฟ ๐,0 and ๐โ1 ๐(๐, ๐) = ( ) ๐โ1 โก
for ๐ โฅ 1.
1.8. The twelvefold way We now have all the tools in place to count certain functions. There are 12 types of such functions and so this scheme is called the twelvefold way, an idea which was introduced in a series of lectures by Gian-Carlo Rota. The name was suggested by Joel Spencer and should not be confused with the twelvefold path of Buddhism! We will consider three types of functions ๐ โถ ๐ท โ ๐
, namely, arbitrary functions, injections, and surjections. We will also permit the domain ๐ท and range ๐
to be of two types each: either distinguishable, which means it is a set, or indistinguishable, which means it is a multiset consisting of a single element repeated some number of times. Thus the total number of types of functions under consideration is the product of the number of choices for ๐, ๐ท, and ๐
or 3 โ
2 โ
2 = 12. Of course, a function where the domain or range is a multiset is not really well-defined, even though the intuitive notion should be clear. To be precise, when ๐ท is a multiset and ๐
is a set, suppose ๐ทโฒ is a set with |๐ทโฒ | = |๐ท|. Then a function ๐ โถ ๐ท โ ๐
is an equivalence class of functions ๐ โถ ๐ทโฒ โ ๐
where ๐ and ๐ are equivalent if #๐โ1 (๐) = #๐โ1 (๐) for all ๐ โ ๐
. The reader can come up with the corresponding notions for the other cases if desired. We will assume throughout that |๐ท| = ๐ and |๐
| = ๐ are both nonnegative integers. We will collect the results in the chart in Table 1.1. We first deal with the case where both ๐ท and ๐
are distinguishable. Without loss of generality, we can assume that ๐ท = [๐]. So a function ๐ โถ ๐ท โ ๐
can be considered as a word ๐ค = ๐(1)๐(2) . . . ๐(๐). Since there are ๐ choices for each ๐(๐), we have, by Theorem 1.2.2, that the number of such ๐ is #๐(([๐], ๐)) = ๐๐ . If ๐ is injective, then ๐ค becomes a permutation, giving the count #๐([๐], ๐) = ๐โ๐ from Theorem 1.2.1. For surjective functions, we need a new concept. If ๐ท is a set, then the kernel of a function ๐ โถ ๐ท โ ๐
is the partition ker ๐ of ๐ท whose blocks are the nonempty subsets of the form ๐โ1 (๐) for ๐ โ ๐
. For example, if ๐ โถ {๐, ๐, ๐, ๐} โ {1, 2, 3} is given by ๐(๐) = ๐(๐) = 2, Table 1.1. The twelvefold way
๐ท
๐
arbitrary ๐
injective ๐
surjective ๐
dist.
dist.
๐๐
๐โ๐
๐! ๐(๐, ๐)
indist.
dist.
(๐+๐โ1 ) ๐
(๐๐)
(๐โ1 ) ๐โ1
dist.
indist.
โ๐=0 ๐(๐, ๐)
๐ฟ(๐ โค ๐)
๐(๐, ๐)
indist.
indist.
๐(๐, ๐)
๐ฟ(๐ โค ๐)
๐(๐, ๐) โ ๐(๐, ๐ โ 1)
๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
18
1. Basic Counting
๐(๐) = 3, and ๐(๐) = 1, then ker ๐ = ๐๐/๐/๐. If ๐ is to be surjective, then the function can be specified by picking a partition of ๐ท for ker ๐ and then picking a bijection ๐ from the blocks of ker ๐ into ๐
. Continuing our example, ๐ is completely determined by its kernel and the bijection ๐(๐๐) = 2, ๐(๐) = 3, and ๐(๐) = 1. The number of ways to choose ker ๐ = ๐ต1 / . . . /๐ต๐ is ๐(๐, ๐) by definition. And, using the injective case with ๐ = ๐, the number of bijections ๐ โถ {๐ต1 , . . . , ๐ต๐ } โ ๐
is ๐ โ๐ = ๐!. So the total count is ๐! ๐(๐, ๐). Now suppose ๐ท is indistinguishable and ๐
is distinguishable where we assume ๐
= [๐]. Then one can think of ๐ โถ ๐ท โ ๐
as a multiset ๐ = {{1๐1 , . . . , ๐๐๐ }} on ๐
where ๐๐ = #๐โ1 (๐). It follows that โ๐ ๐๐ = #๐ท = ๐. So, by Theorem 1.3.4, the number of all such ๐ is ๐ ๐+๐โ1 (( )) = ( ). ๐ ๐ If ๐ is to be injective, then we are picking an ๐-element subset of ๐
= [๐] giving a count of (๐๐). If ๐ is to be surjective, then ๐๐ โฅ 1 for all ๐ so that [๐1 , . . . , ๐๐ ] is a composition of ๐. It follows from Theorem 1.7.2 that the number of functions is ๐(๐, ๐) = (๐โ1 ). ๐โ1 To deal with the case when ๐ท = [๐] is distinguishable and ๐
is indistinguishable, we introduce a useful extension of the Kronecker delta. If ๐ is any statement, we let (1.9)
๐ฟ(๐) = {
1 if ๐ is true, 0 if ๐ is false.
Returning to our counting, ๐ is completely determined by its kernel, which is a partition of [๐]. If we are considering all ๐, then the kernel can have any number of blocks up to and including ๐. Summing the corresponding Stirling numbers gives the corresponding entry in Table 1.1. If ๐ is injective, then for such a function to exist we must have ๐ โค ๐. And in that case there is only one possible kernel, namely the partition into singleton blocks. This count can be summarized as ๐ฟ(๐ โค ๐). For surjective ๐ we are partitioning [๐] into exactly ๐ blocks, giving ๐(๐, ๐) possibilities. If ๐ท and ๐
are both indistinguishable, then the nonzero numbers of the form ๐๐ = #๐โ1 (๐) for ๐ โ ๐
completely determine ๐. And these numbers form a partition of ๐ = #๐ท into at most ๐ = #๐
parts. Recalling the notation of Section 1.6, the total number of such ๐ is ๐(๐, ๐). The line of reasoning for injective functions follows that of the previous paragraph with the same resulting answer. Finally, for surjectivity we need exactly ๐ parts, which is counted by ๐(๐, ๐) โ ๐(๐, ๐ โ 1).
1.9. Graphs and digraphs Graph theory is a substantial part of combinatorics. We will use directed graphs to give the postponed proof of the existence and uniqueness of the cycle decomposition of permutations in ๐๐ . A labeled graph ๐บ = (๐, ๐ธ) consists of a set ๐ of elements called vertices and a set ๐ธ of elements called edges where an edge consists of an unordered pair of vertices. We will write ๐(๐บ) and ๐ธ(๐บ) for the vertex and edge set of ๐บ, respectively, if we wish to emphasize the graph involved. Geometrically, we think of the vertices as nodes and the edges as line segments or curves joining them. Conventionally, in graph theory an Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.9. Graphs and digraphs
19
๐ฃ
๐ค
๐ฆ
๐ฅ
Figure 1.7. A graph ๐บ
edge connecting vertices ๐ฃ and ๐ค is written ๐ = ๐ฃ๐ค rather than ๐ = {๐ฃ, ๐ค}. In this case we say that ๐ contains ๐ฃ and ๐ค, or that ๐ has endpoints ๐ฃ and ๐ค. We also say that ๐ฃ and ๐ค are neighbors. For example, a drawing of the graph ๐บ with vertices ๐ = {๐ฃ, ๐ค, ๐ฅ, ๐ฆ} and edges ๐ธ = {๐ฃ๐ค, ๐ฃ๐ฅ, ๐ฃ๐ฆ, ๐ค๐ฅ, ๐ฅ๐ฆ} is displayed in Figure 1.7. If #๐ = 1, then there is only one graph with vertex set ๐ and such a graph is called trivial. Call graph ๐ป a subgraph of ๐บ, written ๐ป โ ๐บ, if ๐(๐ป) โ ๐(๐บ) and ๐ธ(๐ป) โ ๐ธ(๐บ). In this case we also say that ๐บ contains ๐ป. There are several types of subgraphs which will play an important role in what follows. A walk of length โ in ๐บ is a sequence of vertices ๐ โถ ๐ฃ 0 , ๐ฃ 1 , . . . , ๐ฃ โ such that ๐ฃ ๐โ1 ๐ฃ ๐ โ ๐ธ for 1 โค ๐ โค โ. We say that the walk is from ๐ฃ 0 to ๐ฃ โ , or is a ๐ฃ 0 โ๐ฃ โ walk, or that ๐ฃ 0 , ๐ฃ โ are the endpoints of ๐. We call ๐ a path if all the vertices are distinct and we usually use letters like ๐ for paths. In particular, we will use ๐๐ or ๐๐ to denote a walk or a path having ๐ vertices, respectively. In our example graph, ๐ โถ ๐ฆ, ๐ฃ, ๐ฅ, ๐ค is a path of length 3 from ๐ฆ to ๐ค. Notice that length refers to the number of edges in the path, which is one less than the number of vertices. A cycle of length โ in ๐บ is a sequence of distinct vertices ๐ถ โถ ๐ฃ 1 , ๐ฃ 2 , . . . , ๐ฃ โ such that we have distinct edges ๐ฃ ๐โ1 ๐ฃ ๐ for 1 โค ๐ โค โ, and subscripts are taken modulo โ so that ๐ฃ 0 = ๐ฃ โ . Returning to our running example, ๐ถ โถ ๐ฃ, ๐ฅ, ๐ฆ is a cycle in ๐บ of length 3. In a cycle the length is both the number of vertices and the number of edges. The notation ๐ถ๐ will be used for a cycle with ๐ vertices and we will call this an ๐-cycle. We also denote by ๐พ๐ the complete graph which consists of ๐ vertices and all possible (๐2) edges between them. A copy of a complete graph in a graph ๐บ is often called a clique. There is a close relationship between some of the parts of a graph which we have just defined. Lemma 1.9.1. Let ๐บ be a graph and let ๐ข, ๐ฃ โ ๐. (a) Any walk from ๐ข to ๐ฃ contains a path from ๐ข to ๐ฃ. (b) The union of any two different paths from ๐ข to ๐ฃ contains a cycle. Proof. We will prove (a) and leave (b) as an exercise. Let ๐ โถ ๐ฃ 0 , . . . , ๐ฃ โ be the walk. We will induct on โ, the length of ๐. If โ = 0, then ๐ is a path. So assume โ โฅ 1. If ๐ is a path, then we are done. If not, then some vertex of ๐ is repeated, say ๐ฃ ๐ = ๐ฃ๐ for ๐ < ๐. Then we have a ๐ขโ๐ฃ walk ๐ โฒ โถ ๐ฃ 0 , ๐ฃ 1 , . . . , ๐ฃ ๐ , ๐ฃ๐+1 , ๐ฃ๐+2 , . . . , ๐ฃ โ which is shorter than ๐. By induction, ๐ โฒ contains a path ๐ and so ๐ contains ๐ as well. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
20
1. Basic Counting
To state our first graphical enumeration result, let ๐ข(๐) be the set of all graphs on the vertex set ๐. We will also use ๐ข(๐, ๐) to denote the set of all graphs in ๐ข(๐) with ๐ edges. Theorem 1.9.2. For ๐ โฅ 1 and ๐ โฅ 0 we have #๐ข([๐]) = 2( 2 ) ๐
and #๐ข([๐], ๐) = (
(๐2) ). ๐
Proof. If ๐ = [๐] is given, then a graph ๐บ with vertex set ๐ is completely determined by its edge set. Since there are ๐ vertices, there are (๐2) possible edges to choose from. So the number of ๐บ in ๐ข([๐]) is the number of subsets of these edges, which, by Theorem 1.3.1, is the given power of 2. The proof for ๐ข([๐], ๐) is similar, just using the definition (1.4). โก A graph is unlabeled if the vertices in ๐ are indistinguishable. If the type of graph is clear from the context or does not matter for the particular application at hand, we will omit the adjectives โlabeledโ and โunlabeledโ. The enumeration of unlabeled graphs is much more complicated than for labeled ones. So this discussion is postponed until Section 6.4 where we will develop the necessary tools. If ๐บ is a graph and ๐ฃ โ ๐, then the degree of ๐ฃ is deg ๐ฃ = the number of ๐ โ ๐ธ containing ๐ฃ. In our running example deg ๐ฃ = deg ๐ฅ = 3 and deg ๐ค = deg ๐ฆ = 2. There is a nice relationship between vertex degrees and the cardinality of the edge set. The demonstration of the next result illustrates an important method of proof in combinatorics, counting in pairs. Theorem 1.9.3. For any graph ๐บ we have โ deg ๐ฃ = 2|๐ธ|. ๐ฃโ๐
Proof. Consider ๐ = {(๐ฃ, ๐) | ๐ฃ is contained in ๐}. Then #๐ = โ (number of ๐ containing ๐ฃ) = โ deg ๐ฃ. ๐ฃโ๐
๐ฃโ๐
On the other hand #๐ = โ (number of ๐ฃ contained in ๐) = โ 2 = 2|๐ธ|. ๐โ๐ธ
๐โ๐ธ
Equating the two counts finishes the proof. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
1.9. Graphs and digraphs
21
๐ฃ
๐ค
๐ฆ
๐ฅ
Figure 1.8. A digraph ๐ท
Theorem 1.9.3 is often called the Handshaking Lemma because of the following interpretation. Suppose ๐ is the set of people at a party and we draw an edge between person ๐ฃ and person ๐ค if they shake hands during the festivities. Then adding up the number of handshakes given by each person gives twice the total number of handshakes. It is often useful to have specified directions along the edges. A labeled directed graph, also called a digraph, is ๐ท = (๐, ๐ด) where ๐ is a set of vertices and ๐ด is a set of arcs which are ordered pairs of vertices. We use the notation ๐ = ๐ฃ๐ค โ for arcs and say that ๐ goes from ๐ฃ to ๐ค. To illustrate, the digraph with ๐ = {๐ฃ, ๐ค, ๐ฅ, ๐ฆ} and ๐ด = {๐ฃ๐ค, โ ๐ค๐ฃ, โ ๐ค๐ฅ, โ ๐ฆโ๐ฃ, ๐ฆโ๐ฅ} is drawn in Figure 1.8. We use ๐(๐ท) and ๐ด(๐ท) to denote the vertex set and arc set, respectively, of a digraph ๐ท when we wish to be more precise. Directed walks, paths, and cycles are defined for digraphs similarly to their undirected cousins in graphs, just insisting the ๐ฃโ ๐โ1 ๐ฃ ๐ โ ๐ด for ๐ in the appropriate range. So, in our example digraph, ๐ โถ ๐ฆ, ๐ฃ, ๐ค, ๐ฅ is a directed path and ๐ถ โถ ๐ฃ, ๐ค is a directed cycle. Note that ๐ค, ๐ฅ, ๐ฆ, ๐ฃ is not a directed path because the arc between ๐ฅ and ๐ฆ goes the wrong way. Let ๐(๐) and ๐(๐, ๐) be the set of digraphs and the set of digraphs with ๐ arcs, respectively, having vertex set ๐. The next result is proved in much the same manner as Theorem 1.9.2 so the demonstration is omitted. Theorem 1.9.4. For ๐ โฅ 1 and ๐ โฅ 0 we have #๐([๐]) = 2๐(๐โ1) and ๐(๐ โ 1) #๐([๐], ๐) = ( ). ๐
โก
In a digraph ๐ท there are two types of degrees. Vertex ๐ฃ โ ๐ has out-degree and in-degree odeg ๐ฃ = the number of ๐ โ ๐ด of the form ๐ = ๐ฃ๐ค, โ ideg ๐ฃ = the number of ๐ โ ๐ด of the form ๐ = ๐ค๐ฃ, โ respectively. In Figure 1.8, for example, odeg ๐ฃ = 1 and ideg ๐ฃ = 2. The next result will permit us to finish our leftover business from Section 1.5. The union of digraphs ๐ท โช ๐ธ is the digraph with vertices ๐(๐ท โช ๐ธ) = ๐(๐ท) โช ๐(๐ธ) and arcs ๐ด(๐ท โช ๐ธ) = ๐ด(๐ท) โช ๐ด(๐ธ).
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
22
1. Basic Counting
Lemma 1.9.5. Let ๐ท = (๐, ๐ด) be a digraph. We have odeg ๐ฃ = ideg ๐ฃ = 1 for all ๐ฃ โ ๐ if and only if ๐ท is a disjoint union of directed cycles. Proof. The reverse implication is easy to see since the out-degree and in-degree of any vertex ๐ฃ of ๐ท would be the same as those degrees in the directed cycle containing ๐ฃ. But in such a cycle odeg ๐ฃ = ideg ๐ฃ = 1. For the forward direction, pick any ๐ฃ = ๐ฃ 1 โ ๐. Since odeg ๐ฃ 1 = 1 there must exist a vertex ๐ฃ 2 with ๐ฃโ โ 1 ๐ฃ 2 โ ๐ด. By the same token, there must be a ๐ฃ 3 with ๐ฃ 2 ๐ฃ 3 โ ๐ด. Continue to generate a sequence ๐ฃ 1 , ๐ฃ 2 , . . . in this manner. Since ๐ is finite, there must be two indices ๐ < ๐ such that ๐ฃ ๐ = ๐ฃ๐ . Let ๐ be the smallest such index and let ๐ be the first index after ๐ where repetition occurs. Thus ๐ = 1, for if not, then we have ๐ฃโ ๐โ1 ๐ฃ ๐ , ๐ฃโ ๐โ1 ๐ฃ ๐ โ ๐ด, contradicting the fact that ideg ๐ฃ ๐ = 1. By definition of ๐, we have a directed cycle ๐ถ โถ ๐ฃ 1 , ๐ฃ 2 , . . . , ๐ฃ๐โ1 . Furthermore, no vertex of ๐ถ can be involved in another arc since that would make its out-degree or in-degree too large. Continuing in this manner, we can decompose ๐ท into disjoint directed cycles. โก Sometimes it is useful to allow loops in a graph which are edges of the form ๐ = ๐ฃ๐ฃ. Similarly, we can permit loops as arcs ๐ = ๐ฃโ๐ฃ in a digraph. Another possibility is that we would want multiple edges, meaning that one could have more than one edge between a given pair of vertices, making ๐ธ into a multiset. Multiple arcs are defined similarly. If we make no specification for our (di)graph, then we are assuming that it has neither loops nor multiple edges. We will now prove Theorem 1.5.1. Proof (of Theorem 1.5.1). To any ๐ โ ๐๐ we associate its functional digraph ๐ท๐ which has ๐ = [๐] and an arc ๐ค๐ฅโ โ ๐ด if and only if ๐(๐) = ๐. Now ๐ท๐ is a digraph with loops. Because ๐ is a function we have odeg ๐ = 1 for all ๐ โ [๐]. And because ๐ is a bijection we also have ideg ๐ = 1 for all ๐. The proof of the previous lemma works equally well if one allows loops. So ๐ท๐ is a disjoint union of cycles. But cycles of the digraph ๐ท๐ correspond to cycles of the permutation ๐. Thus the cycle decomposition of ๐ exists. It is also easy to check that the cycles of ๐ท๐ produced by the algorithm in the demonstration of necessity in Lemma 1.9.5 are unique. This implies the uniqueness statement about the cycles of ๐ and so we are done. โก
1.10. Trees Trees are a type of graph which often occurs in practice, even in domains outside of mathematics. For example, trees are used as data structures in computer science, or to model evolution in genetics. A graph ๐บ is connected if, for every pair of vertices ๐ฃ, ๐ค โ ๐, there is a walk in ๐บ from ๐ฃ to ๐ค. By Lemma 1.9.1(a), this is equivalent to there being a path from ๐ฃ to ๐ค in ๐บ. The connected components of ๐บ are the maximal connected subgraphs. If ๐บ is connected, there is only one component. Call ๐บ acyclic if it contains no cycles. A forest is another name for an acyclic graph. The connected components of a forest are called trees. So a graph ๐ is a tree if it is both connected and acyclic. Figure 1.9 contains five trees ๐1 , . . . , ๐5 . Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.10. Trees
23
1
1
1
4
6
5
3 2 ๐1 ๐ค1 = 4 ๐1 = 5
6
4
3 2 ๐2 ๐ค2 = 6 ๐2 = 3
1 6
4
2 ๐3 ๐ค3 = 1 ๐3 = 6
4
1 4
2 ๐4 ๐ค4 = 4 ๐4 = 2
๐5 ๐ค1 = 4 ๐2 = 3
Figure 1.9. The Prรผfer algorithm
A leaf in a graph ๐บ is a vertex ๐ฃ having deg ๐ฃ = 1. The next result will show that nontrivial trees have leaves (regardless of the time of year). Further, it should be clear from this lemma why leaves are a useful tool for induction in trees. In order to state it, we need the following notation. If ๐บ is a graph and ๐ โ ๐, then ๐บ โ ๐ is the graph on the vertex set ๐ โ ๐ whose edge set consists of all edges in ๐ธ with both endpoints in ๐ โ ๐. If ๐ = {๐ฃ} for some ๐ฃ, then we write ๐บ โ ๐ฃ for ๐บ โ {๐ฃ}. In Figure 1.9, ๐2 = ๐1 โ 5. Similarly, if ๐น โ ๐ธ, then ๐บ โ ๐น is the graph with ๐(๐บ โ ๐น) = ๐(๐บ) and ๐ธ(๐บ โ ๐น) = ๐ธ(๐บ) โ ๐ธ(๐น). If ๐น consists of a single edge, then we use a similar abbreviation as for subtracting vertices. Lemma 1.10.1. Let ๐ be a tree with #๐ โฅ 2. (a) ๐ has (at least) 2 leaves. (b) If ๐ฃ is a leaf of ๐, then ๐ โฒ = ๐ โ ๐ฃ is also a tree. Proof. (a) Let ๐ โถ ๐ฃ 0 , . . . , ๐ฃ โ be a path of maximum length in ๐. Since ๐ is nontrivial, ๐ฃ 0 โ ๐ฃ โ . We claim that ๐ฃ 0 , ๐ฃ โ are leaves and we will prove this for ๐ฃ 0 as the same proof works for ๐ฃ โ . Suppose, towards a contradiction, that deg ๐ฃ 0 โฅ 2. Then there must be a vertex ๐ค โ ๐ฃ 1 such that ๐ฃ 0 ๐ค โ ๐ธ. We now have two possibilities. If ๐ค is not a vertex of ๐, then the path ๐ โฒ โถ ๐ค, ๐ฃ 0 , . . . , ๐ฃ โ is longer than ๐, a contradiction to the definition of ๐. If ๐ค = ๐ฃ ๐ for some 2 โค ๐ โค โ, then the portion of ๐ from ๐ฃ 0 to ๐ฃ ๐ together with the edge ๐ฃ 0 ๐ฃ ๐ forms a cycle in ๐, again a contradiction. (b) It is clear that ๐ โฒ is still acyclic since removing vertices cannot create a cycle. To show it is connected, take ๐ฅ, ๐ฆ โ ๐(๐ โฒ ). So ๐ฅ, ๐ฆ are also vertices of ๐. Since ๐ is connected, Lemma 1.9.1(a) implies that there is a path ๐ from ๐ฅ to ๐ฆ in ๐. If this path is also in ๐ โฒ , then we will be done. But if ๐ goes through ๐ฃ, then, since there is a unique vertex ๐ฃโฒ adjacent to ๐ฃ, ๐ would have to pass through ๐ฃโฒ just before and just after ๐ฃ. This contradicts the fact that the vertices of ๐ are distinct. โก There are a number of characterizations of trees. We collect some of them here as they will be useful in the sequel. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
24
1. Basic Counting
Theorem 1.10.2. Let ๐ be a graph with #๐ = ๐ and #๐ธ = ๐. The following are equivalent conditions for ๐ to be a tree: (a) ๐ is connected and acyclic. (b) ๐ is acyclic and ๐ = ๐ + 1. (c) ๐ is connected and ๐ = ๐ + 1. (d) For every pair of vertices ๐ข, ๐ฃ there is a unique path from ๐ข to ๐ฃ. Proof. We will prove the equivalence of (a), (b), and (c). The equivalence of (a) and (d) is left as an exercise. To prove that (a) implies (b), it suffices to show by induction on ๐ that ๐ = ๐ + 1. This is trivial if ๐ = 1. If ๐ โฅ 2, then, by Lemma 1.10.1, ๐ has a leaf ๐ฃ. Induction applies to ๐ โฒ = ๐ โ ๐ฃ so that its vertex and edge cardinalities are related by ๐โฒ = ๐โฒ + 1. But ๐ = ๐โฒ + 1 and ๐ = ๐โฒ + 1 so that ๐ = ๐ + 1. To see why (b) implies (c), consider the connected components ๐1 , . . . , ๐๐ of ๐. Since ๐ is acyclic, each of these components is a tree. Also, from the implication (a) โน (b), we have that ๐๐ = ๐๐ + 1 for 1 โค ๐ โค ๐ where ๐๐ = #๐(๐๐ ) and ๐๐ = #๐ธ(๐๐ ). Adding these equations together and using the fact that โ๐ ๐๐ = ๐ and โ๐ ๐๐ = ๐ we obtain ๐ = ๐ + ๐. But we are given that ๐ = ๐ + 1. So we must have ๐ = 1 . This means that ๐ only has one component and so is connected. We prove that (c) implies (a) by contradiction. So suppose that ๐ contains a cycle ๐ถ and let ๐ = ๐ข๐ฃ โ ๐ธ(๐ถ). We claim that ๐ โ ๐ is still connected. For if ๐ฅ, ๐ฆ are any two vertices of ๐ โ ๐, then there is a walk ๐ from ๐ฅ to ๐ฆ in ๐. If ๐ does not contain ๐, then ๐ is still in ๐ โ ๐. If ๐ does contain ๐, then replace ๐ in ๐ with the path ๐ถ โ ๐ to form a new walk ๐ โฒ from ๐ฅ to ๐ฆ in ๐ โ ๐. We can keep removing edges in this way until the resulting graph ๐ โฒ is acyclic. Since ๐ โฒ is still connected, it is a tree. And by the first implication we have ๐โฒ = ๐โฒ + 1. But ๐โฒ = ๐ and ๐โฒ < ๐ so that ๐ < ๐ + 1, the desired contradiction. โก Let ๐ฏ(๐) be the set of all trees on the vertex set ๐. There are quite a number of different proofs of the beautiful formula below for #๐ฏ(๐), many of which are in Moonโs book on the subject [64]. Theorem 1.10.3. For ๐ โฅ 1 we have #๐ฏ([๐]) = ๐๐โ2 . Proof. The result is trivial if ๐ = 1, so assume ๐ โฅ 2. By Theorem 1.2.2 it suffices to find a bijection ๐ โถ ๐ฏ([๐]) โ ๐(([๐], ๐ โ 2)). There is a famous algorithm for constructing ๐ which is called the Prรผfer algorithm. An example will be found in Figure 1.9. Given ๐ โ ๐ฏ([๐]), to determine ๐(๐) = ๐ค 1 . . . ๐ค ๐โ2 we will build a sequence of trees ๐ = ๐1 , ๐2 , . . . , ๐๐โ1 by removing vertices from ๐ as follows. Since the vertices of ๐ are labeled 1, . . . , ๐ it makes sense to talk about, e.g., a maximum vertex because of the ordering on the integers. Given ๐๐ , we find the leaf ๐๐ โ ๐(๐๐ ) such that ๐๐ is maximum and let ๐๐+1 = ๐๐ โ ๐๐ . By the previous lemma, ๐๐+1 will also be a tree. Since ๐๐ is a leaf, it is adjacent to a unique vertex ๐ค ๐ in ๐๐ and we let ๐ค ๐ be the ๐th element of ๐(๐). Now each ๐ค ๐ โ [๐] and ๐(๐) has length ๐ โ 2 by definition. So ๐(๐) โ ๐(([๐], ๐ โ 2)). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.11. Lattice paths
25
To show that ๐ is a bijection, we find its inverse. Given ๐ค โ ๐(([๐], ๐ โ 2)), we will first construct a permutation ๐ = ๐1 . . . ๐๐โ2 โ ๐([๐], ๐ โ 2) where ๐๐ will turn out to be the leaf removed from ๐๐ to form ๐๐+1 . We construct the ๐๐ inductively by letting (1.10)
๐๐ = max([๐] โ {๐1 , . . . , ๐๐โ1 , ๐ค ๐ , . . . , ๐ค ๐โ2 }).
Finally we construct ๐โ1 (๐ค) = ๐ by letting ๐ have edges ๐ ๐ = ๐๐ ๐ค ๐ for 1 โค ๐ โค ๐ โ 2 as well as the edge ๐ ๐โ1 = ๐๐โ1 ๐๐ where [๐] โ {๐1 , . . . , ๐๐โ2 } = {๐๐โ1 , ๐๐ }. To show that ๐โ1 (๐ค) = ๐ is a tree, note first that ๐1 is a leaf of ๐ because ๐1 is attached to ๐ค 1 but to none of the other vertices of ๐ by (1.10) and the definition of ๐ ๐โ1 . Consider ๐คโฒ = ๐ค 2 . . . ๐ค ๐โ2 and apply the algorithm for ๐โ1 to ๐คโฒ using the ground set [๐] โ {๐1 } instead of [๐]. By induction, the result is a tree ๐ โฒ . And ๐ is formed by adding ๐1 as a leaf to ๐ โฒ , which makes ๐ a tree as well. To show that ๐ and ๐โ1 are inverses we will show that ๐โ1 โ ๐ is the identity map, leaving the proof for ๐ โ ๐โ1 to the reader. Suppose ๐(๐) = ๐ค 1 . . . ๐ค ๐โ2 . Also let โฒ the sequence of leaves removed during the construction of ๐(๐) be ๐1โฒ . . . ๐๐โ2 . Then โฒ by definition of the algorithm, the edges of ๐ are exactly ๐๐ ๐ค ๐ for 1 โค ๐ โค ๐ โ 2 โฒ โฒ โฒ } = {๐๐โ1 , ๐๐โฒ }. Comparing this with the definition ๐๐โฒ where [๐] โ {๐1โฒ , . . . , ๐๐โ2 and ๐๐โ1 โ1 of ๐ we see that it suffices to show that ๐๐ = ๐๐โฒ for all ๐ and that this will follow if one can prove the equality holds for 1 โค ๐ โค ๐ โ 2. Since ๐๐โฒ is a leaf in ๐๐ , it cannot โฒ . Of the remaining vertices, those be any of the previously removed leaves ๐1โฒ , . . . , ๐๐โ1 which are among ๐ค ๐ , . . . , ๐ค ๐โ2 are not currently leaves since they are attached to future leaves which are to be removed. And conversely those not among the ๐ค ๐ , . . . , ๐ค ๐โ2 must be leaves; otherwise, they would be listed as some ๐ค๐ for ๐ โฅ ๐ once all their adjacent leaves were removed. Hence the leaves of ๐๐ are precisely the elements of โฒ [๐] โ {๐1โฒ , . . . , ๐๐โ1 , ๐ค ๐ , . . . , ๐ค ๐โ2 }. Since we always remove the leaf of maximum value, we see that the rule for choosing ๐๐โฒ is exactly the same as the one in (1.10). So ๐๐ = ๐๐โฒ as desired. โก
1.11. Lattice paths Lattice paths lead to many interesting counting problems in combinatorics. They are also important in probability and statistics; see the book of Mohanty [63] for examples. Consider the integer lattice in the plane โค2 = {(๐ฅ, ๐ฆ) | ๐ฅ, ๐ฆ โ โค}. A lattice path is a sequence of elements of โค2 written ๐ โถ (๐ฅ0 , ๐ฆ0 ), (๐ฅ1 , ๐ฆ1 ), . . . , (๐ฅโ , ๐ฆโ ). Just as in graph theory, we say the path has length โ and goes from (๐ฅ0 , ๐ฆ0 ) to (๐ฅโ , ๐ฆโ ), which are called its endpoints. Unlike graph-theoretic paths, we do not assume the (๐ฅ๐ , ๐ฆ ๐ ) are distinct. To illustrate the notation, if we assume that the left-hand path in Figure 1.10 starts at the origin, then it would be written ๐ โถ (0, 0), (0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (3, 3), (3, 4), (4, 4). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
26
1. Basic Counting
Figure 1.10. Dyck paths
The step between (๐ฅ๐โ1 , ๐ฆ ๐โ1 ) and (๐ฅ๐ , ๐ฆ ๐ ) on ๐ is the vector ๐ ๐ = [๐ฅ๐ โ ๐ฅ๐โ1 , ๐ฆ ๐ โ ๐ฆ ๐โ1 ]. Note the use of square versus round brackets to distinguish steps from vertices of the path. Note that ๐ is determined up to translation by its steps and that it is determined completely by its steps and initial vertex. If no initial vertex is specified, it is assumed to be the origin. We let ๐ธ = [1, 0] and ๐ = [0, 1], calling these east and north steps, respectively. The path on the left in Figure 1.10 could also be represented ๐ โถ ๐๐๐ธ๐๐ธ๐ธ๐๐ธ. For our first enumerative result, we use the notation ๐ฉโฐ(๐, ๐) for the set of lattice paths from (0, 0) to (๐, ๐) only using steps north and east. We call lattice paths using only ๐ and ๐ธ steps northeast paths. Theorem 1.11.1. For ๐, ๐ โฅ 0 we have #๐ฉโฐ(๐, ๐) = (
๐+๐ ). ๐
Proof. Let ๐ be a northeast lattice path from (0, 0) to (๐, ๐). Then ๐ has ๐ + ๐ total steps. And once ๐ of them are chosen to be ๐ธ, the rest must be ๐. The result follows. โก
We will be particularly concerned with a special type of northeast path. A Dyck path of semilength ๐ is a northeast lattice path which begins at (0, 0), ends at (๐, ๐), and never goes below the line ๐ฆ = ๐ฅ. The first path in Figure 1.10 is of this type. Note that ๐ is called the semilength because the Dyck path itself has 2๐ steps. We let ๐(๐) denote the set of Dyck paths of semilength ๐. This should cause no confusion with the notation ๐(๐) for the set of digraphs on the vertex set ๐ because in the former notation ๐ is a nonnegative integer while in the latter it is a set. We now define that Catalan numbers to be ๐ถ(๐) = #๐(๐). The Catalan numbers are ubiquitous in combinatorics. In fact, Stanley has written a book [92] containing 214 different combinatorial interpretations of ๐ถ(๐). A few of these are listed in the exercises. The Catalan numbers satisfy a nice recursion. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.11. Lattice paths
27
Theorem 1.11.2. We have the initial condition ๐ถ(0) = 1 and recurrence relation ๐ถ(๐) = ๐ถ(0)๐ถ(๐ โ 1) + ๐ถ(1)๐ถ(๐ โ 2) + ๐ถ(2)๐ถ(๐ โ 3) + โฏ + ๐ถ(๐ โ 1)๐ถ(0) for ๐ โฅ 1. Proof. The initial condition counts the trivial path of a single vertex. For the recursion, take ๐ โถ ๐ฃ 0 , . . . , ๐ฃ 2๐ โ ๐(๐) where ๐ฃ ๐ = (๐ฅ๐ , ๐ฆ ๐ ) for all ๐. Let ๐ > 0 be the smallest index such that ๐ฃ 2๐ is on the line ๐ฆ = ๐ฅ. Such an index exists since ๐ฃ 2๐ = (๐, ๐) satisfies this condition. Also note that no vertex of odd subscript is on ๐ฆ = ๐ฅ since the number of north steps and the number of east steps preceding that vertex cannot be equal. It follows that ๐1 , the portion of ๐ from ๐ฃ 1 to ๐ฃ 2๐โ1 , stays above ๐ฆ = ๐ฅ + 1. So the number of choices for ๐1 is ๐ถ(๐ โ 1). Furthermore, if ๐2 is the portion of ๐ from ๐ฃ 2๐ to ๐ฃ 2๐ , then ๐2 is (a translation of) a Dyck path of semilength ๐ โ ๐. So the number of choices for ๐2 is ๐ถ(๐ โ ๐). Thus the total number of such ๐ is ๐ถ(๐ โ 1)๐ถ(๐ โ ๐). Summing over 1 โค ๐ โค ๐ finishes the proof. โก There is an explicit expression for the Catalan numbers. But to derive this formula it will be convenient to use a second set of paths counted by ๐ถ(๐). Call the steps ๐ = [1, 1] and ๐ท = [1, โ1] up and down, respectively. An updown path is one using only ฬ such steps. It should be clear that if we let ๐(๐) be the set of updown lattice paths from ฬ (0, 0) to (2๐, 0) never going below the ๐ฅ-axis, then #๐(๐) = #๐(๐) = ๐ถ(๐). In fact one can get from the paths in one set to those in the other by rotation and dilation of the plane. The two paths in Figure 1.10 correspond under this map and the second one would be represented as ๐ โถ ๐๐๐ท๐๐ท๐ท๐๐ท. Theorem 1.11.3. For ๐ โฅ 0 we have ๐ถ(๐) =
1 2๐ ( ). ๐+1 ๐
Proof. We rewrite the right-hand side as 1 2๐ (2๐)! 1 2๐ + 1 = ( )= ( ). ๐+1 ๐ 2๐ + 1 ๐ ๐! (๐ + 1)! Let ๐ซ be the set of all updown paths starting at (0, 0) and ending at (2๐ + 1, โ1). Such paths have 2๐ + 1 steps of which ๐ are up (forcing the other ๐ + 1 to be down) so that #๐ซ = (2๐+1 ). Our strategy will be to find a partition ๐ of ๐ซ such that ๐ (1) #๐ต = 2๐ + 1 for every block ๐ต of ๐ and ฬ (2) there is a bijection between the blocks of ๐ and the paths in ๐(๐). ฬ It will then follow that #๐(๐) is equal to the number of blocks of ๐, which is #๐ซ/(2๐ + 1), giving the desired equality. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
28
1. Basic Counting
To determine ๐, we will take any ๐ โ ๐ซ and describe the block ๐ต containing ๐. We will refer to the ๐ฆ-coordinate of a vertex ๐ฃ of ๐ as its height, written ht ๐ฃ. Suppose ๐ has step representation ๐ โถ ๐ 1 ๐ 2 . . . ๐ 2๐+1 . Define the ๐th rotation of ๐ to be the path ๐๐ โถ ๐ ๐+1 ๐ ๐+2 . . . ๐ 2๐+1 ๐ 1 ๐ 2 . . . ๐ ๐ where all paths start at the origin. Let ๐ต = {๐0 , . . . , ๐2๐ }. So to show that ๐ต has the correct cardinality, we must prove that the ๐๐ are all distinct. Suppose to the contrary that two are equal. By renumbering if necessary, we can assume that ๐0 = ๐๐ for some 1 โค ๐ โค 2๐. Take ๐ be be minimum. Iterating this equality, we get ๐0 = ๐๐ = ๐2๐ = . . . . These equalities and the fact that ๐ is as small as possible imply that ๐ = ๐0 is the concatenation of ๐โฒ โถ ๐ 1 . . . ๐ ๐ with itself, say ๐ times for some ๐ โฅ 2. Suppose ๐ โฒ ends at height โ. Then ๐ must end at height ๐โ and so ๐โ = โ1. This forces ๐ = 1, which is a contradiction. To finish the proof, we must show that the blocks of ๐ are in bijection with the ฬ paths in ๐(๐). Let ๐ฬ โฒ (๐) denote the set of paths obtained by appending a down step to ฬ each path in ๐(๐). So ๐ partitions ๐ซ โ ๐ฬ โฒ (๐). Thus it suffices to show that there is a ฬ unique path from ๐ โฒ (๐) in each block ๐ต of ๐. Let ๐ต be generated by rotating a path ๐ as in the previous paragraph and let ๐ โถ ๐ฃ 0 . . . ๐ฃ 2๐+1 be the lattice point representation of ๐. Let โ be the minimum height of a vertex of ๐, and among all vertices of ๐ of height โ let ๐ฃ ๐ be the left most. We claim that ๐๐ โ ๐ฬ โฒ (๐) and no other ๐๐ is in this set for ๐ โ {0, 1, . . . , ๐} โ {๐}. We will prove the first of these two claims and leave the second, whose demonstration is similar, as an exercise. Since ๐ฃ ๐ is translated to the origin and has smallest height in ๐, the translations of all ๐ฃ ๐ for ๐ โฅ ๐ will lie weakly above the ๐ฅaxis. As for the ๐ฃ ๐ with ๐ < ๐, they must be translated so the ๐ฃ ๐ becomes the last vertex of ๐๐ which is of height โ1. But since ๐ฃ ๐ was the first vertex of minimum height in ๐, the vertices before it must be translated to have height greater than โ1 and so must also lie weakly above the ๐ฅ-axis. It follows that only the last vertex of ๐๐ is below the ๐ฅ-axis, which is what we wished to prove. โก
1.12. Pattern avoidance Pattern avoidance is a relatively recent area of study in combinatorics. It has seen strong growth in part because of its connections to algebraic geometry and computer science. For more information about this topic, see the books of Bรณna [18] or Kitaev [48]. Let ๐ be a set of integers with #๐ = ๐ and consider a permutation ๐ โ ๐(๐). The standardization of ๐ is the permutation std ๐ โ ๐([๐]) obtained by replacing the smallest element of ๐ by 1, the next smallest by 2, and so on. For example, if ๐ = 263, then std ๐ = 132. Given ๐ โ ๐๐ and ๐ โ ๐๐ in one-line notation, we say that ๐ contains a copy of ๐ if there is a subsequence ๐โฒ of ๐ such that std ๐โฒ = ๐. Note that a subsequence need not consist of consecutive elements of ๐. In this case, ๐ is called the pattern. To illustrate, ๐ = 425613 contains the pattern ๐ = 132 since ๐โฒ = 263 standardizes to ๐. On the other hand, we say that ๐ avoids ๐ if it has no subsequence ๐โฒ with std ๐ = ๐. Continuing our example, one can check that ๐ avoids 4321 since ๐ does not contain a decreasing subsequence of length four. There is an equivalent Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.12. Pattern avoidance
29
๐=
๐=
Figure 1.11. The diagrams for ๐ = 132 and ๐ = 425613
definition of pattern containment which the reader will see in the literature. If ๐, ๐ are sets with #๐ = #๐ = ๐, then call ๐ = ๐1 . . . ๐ ๐ โ ๐(๐) and ๐ = ๐1 . . . ๐๐ โ ๐(๐) order isomorphic if ๐ ๐ < ๐๐ is equivalent to ๐๐ < ๐๐ for all ๐, ๐. It is easy to see that ๐ contains a copy of ๐ if and only if ๐ contains a subsequence order isomorphic to ๐. To study patterns, it will be useful to have a geometric model of a permutation analogous to its permutation matrix. Again, the integer lattice will come into play. Given ๐ = ๐1 . . . ๐๐ โ ๐๐ , its diagram is the set of points (๐, ๐ ๐ ) โ โค2 for 1 โค ๐ โค ๐. In displaying the diagram, the lower-left corner is always assumed to have coordinates (1, 1). Using our running example, the diagrams for ๐ = 132 and ๐ = 425613 are shown in Figure 1.11. The points corresponding to the copy 263 of ๐ in ๐ have been enlarged to emphasize how easily one can see pattern containment using diagrams. From an enumerative point of view, avoidance often turns out to be easier to work with than containment. So given ๐ โ ๐๐ , we consider Av๐ (๐) = {๐ โ ๐๐ | ๐ avoids ๐}. Note that many authors use ๐๐ (๐) instead of Av๐ (๐) for this set. Call ๐ and ๐โฒ Wilf equivalent, written ๐ โก ๐โฒ , if # Av๐ (๐) = # Av๐ (๐โฒ ) for all ๐ โฅ 0. It is easy to see that this is an equivalence relation on ๐๐ . We will prove that any two permutations in ๐3 are Wilf equivalent, although this is not as startling as it might first sound. Certain Wilf equivalences follow easily from manipulation of diagrams. Consider the dihedral group of the square (1.11)
๐ท = {๐0 , ๐90 , ๐180 , ๐270 , ๐0 , ๐1 , ๐โ1 , ๐โ }
where ๐๐ is rotation by ๐ degrees counterclockwise and ๐๐ is reflection across a line of slope ๐. If ๐ contains a copy ๐โฒ of ๐ and ๐ โ ๐ท, then ๐(๐) contains a copy ๐(๐โฒ ) of ๐(๐). Using ๐โ1 , we see that the converse of the previous assertion is also true. It follows that ๐ avoids ๐ if and only if ๐(๐) avoids ๐(๐). We have proven the following result. Lemma 1.12.1. For any ๐ โ ๐๐ and any ๐ โ ๐ท we have ๐ โก ๐(๐). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
30
1. Basic Counting
๐โฒ ๐=
๐โณ
๐ Figure 1.12. Decomposing ๐ โ Av๐ (132)
The equivalences in this lemma are called trivial Wilf equivalences. In particular, in ๐3 one sees by repeatedly applying ๐90 that 132 โก 231 โก 213 โก 312 and 123 โก 321. In fact, all six permutations are Wilf equivalent and their avoidance sets are counted by the Catalan numbers. We start with 132 from the first set of equivalent permutations. Theorem 1.12.2. For ๐ โฅ 0 we have # Av๐ (132) = ๐ถ(๐). Proof. We will induct on ๐, using the initial condition and recurrence relation for ๐ถ(๐) given in Theorem 1.11.2. As usual, we concentrate on the latter. Pick ๐ = ๐1 . . . ๐๐ โ Av๐ (132) and suppose ๐๐ = ๐. So we can write ๐ = ๐โฒ ๐๐โณ where ๐โฒ = ๐1 . . . ๐๐โ1 and ๐โณ = ๐๐+1 . . . ๐๐ . Clearly ๐โฒ and ๐โณ must avoid 132 since they are subsequences of ๐. We also claim that min ๐โฒ > max ๐โณ so that we can think of the diagram of ๐ decomposing as in Figure 1.12. Indeed, if there is ๐ โ ๐โฒ and ๐ก โ ๐โณ with ๐ < ๐ก, then ๐ contains ๐ ๐๐ก, which is a copy of 132, a contradiction. Thus ๐โฒ and ๐โณ are permutations of {๐โ1, ๐โ2, . . . , ๐โ๐+1} and [๐โ๐], respectively, both of which avoid 132. Conversely, if the diagram of ๐ has the form given in Figure 1.12 with ๐โฒ , ๐โณ avoiding 132, then ๐ must avoid 132. This is a case-by-case proof by contradiction, considering where the elements of a copy of 132 could lie in the diagram if one existed. We leave the details to the reader. To finish the count, from what we have shown and induction there are ๐ถ(๐ โ 1) choices for ๐โฒ and ๐ถ(๐ โ ๐) for ๐โณ . Taking their product and summing over ๐ โ [๐] shows that there are ๐ถ(๐) choices for ๐. โก Next we will tackle 123, but to do so we will need some new concepts. The leftright minima of ๐ = ๐1 . . . ๐๐ โ ๐๐ are the ๐ ๐ satisfying ๐ ๐ < min{๐1 , ๐2 , . . . , ๐ ๐โ1 }. For example ๐ = 698371542 has left-right minima ๐1 = 6, ๐4 = 3, and ๐6 = 1. The indices ๐ such that ๐ ๐ is a left-right minimum are called the left-right minimum positions. If necessary to distinguish from the positions, the ๐๐ themselves are called the left-right Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
1.12. Pattern avoidance
31
minimum values. Reading the left-right minima in order from left to right, the positions and values always satisfy (1.12)
1 = ๐ 1 < ๐ 2 < โฏ < ๐๐
and
๐1 > ๐ 2 > โฏ > ๐ ๐ = 1
for some ๐ โฅ 1. We will need to determine, given a set of values and positions, whether a permutation exists with left-right minima having these values and positions. To do this, we introduce the dominance order on compositions, which is also useful in other areas of combinatorics and representation theory. A weak composition of ๐ is a sequence ๐ผ = [๐ผ1 , . . . , ๐ผ๐ ] of nonnegative integers with โ๐ ๐ผ๐ = ๐. So in weak compositions zero is permitted as a part and we will use 0 subscripts on notation for compositions when used for weak compositions. If ๐ผ, ๐ฝ โง0 ๐, then ๐ผ is dominated by ๐ฝ, written ๐ผ โด ๐ฝ, if we have ๐ผ1 + ๐ผ2 + โฏ + ๐ผ๐ โค ๐ฝ1 + ๐ฝ2 + โฏ + ๐ฝ๐ for all ๐ โฅ 1, where ๐ผ๐ = 0 if ๐ > โ(๐ผ) and similarly for ๐ฝ. To illustrate, [2, 2, 1, 1] โด [3, 1, 2] because 2 โค 3, 2+2 โค 3+1, 2+2+1 โค 3+1+2, and 2+2+1+1 = 3+1+2+0. Since ๐ผ, ๐ฝ โง0 ๐ the last inequality always becomes an equality. In the next result, the reader will notice a similarity between the construction of ๐ and ๐ and the map ๐ defined by (1.8). Lemma 1.12.3. Let ๐ โ ๐๐ . (a) We have ๐ โ Av๐ (123) if and only if its subsequence of non-left-right minima is decreasing. (b) There exists ๐ โ Av๐ (123) with left-right minima positions and values given by (1.12) if and only if ๐ โด ๐ where ๐ = (๐2 โ ๐1 โ 1, ๐3 โ ๐2 โ 1, . . . , ๐๐+1 โ ๐๐ โ 1), ๐ = (๐0 โ ๐1 โ 1, ๐1 โ ๐2 โ 1, . . . , ๐๐โ1 โ ๐๐ โ 1), and ๐๐+1 = ๐0 = ๐ + 1. In this case, ๐ is unique. Proof. (a) We will prove this statement in its contrapositive form. Suppose first that ๐ contains a copy ๐ ๐ ๐๐ ๐ ๐ of 123. Then ๐๐ , ๐ ๐ cannot be left-right minima since ๐ ๐ is smaller than both and to their left in ๐. Since ๐๐ < ๐ ๐ , the non-left-right minima subsequence contains an increase. Conversely, suppose ๐๐ < ๐ ๐ with ๐ < ๐ and both non-left-right minima. Let ๐ ๐ be the left-right minimum closest to ๐๐ on its left. We have that ๐ ๐ exists since ๐ begins with a left-right minimum. Then ๐ ๐ < ๐๐ < ๐ ๐ , giving a copy of 123. (b) Clearly if ๐ exists, then it must be unique since the positions and values of its left-right minima are given by (1.12) and the rest of the elements can only be arranged in one way by (a). We can attempt to build ๐ satisfying the given conditions as follows. An example will be found following the proof. Start with a row of ๐ blank positions. Now fill in the values ๐1 > โฏ > ๐๐ at the positions ๐1 < โฏ < ๐๐ . Filling in the rest of the positions with the elements of ๐ = [๐] โ {๐1 , . . . , ๐๐ } (the set of non-left-right minima) in decreasing order gives a ๐ avoiding 123 since ๐ is a union of two decreasing subsequences. So the only question is whether doing this will result in a permutation Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
32
1. Basic Counting
having the ๐๐ as its left-right minima. We have that ๐1 is always a left-right minimum regardless of the other entries. Now ๐๐+1 will be the next left-right minimum after ๐๐ if and only if the blanks before position ๐๐+1 are filled with elements larger than ๐๐ . Note that ๐๐ = ๐๐+1 โ ๐๐ โ 1 is the number of spaces between positions ๐๐ and ๐๐+1 . Also ๐๐ = ๐๐โ1 โ๐๐ โ1 is the number of ๐ โ ๐ with ๐๐ < ๐ < ๐๐โ1 . It follows that ๐1 +โฏ+๐๐ is the number of blanks before position ๐๐+1 and ๐1 + โฏ + ๐๐ is the number of elements of ๐ greater than ๐๐ . So filling in the spaces preserves the left-right minima if and only if the inequalities for ๐ โด ๐ are satisfied. This completes the proof. โก Suppose we want to see if there is ๐ โ Av9 (123) with left-right minima 6 > 3 > 1 in positions 1 < 4 < 6. We start off with the diagram (1.13)
๐=6
3 1
.
We wish to check whether filling the blanks with the remaining elements of [9] in decreasing order will result in a permutation which has the initial elements as leftright minima. One way to do this is just to fill the blanks and verify that the desired elements become left-right minima: ๐ = 6 9 8 3 7 1 5 4 2. Another way is to use the ๐ and ๐ compositions. Note that ๐1 = 4 โ 1 โ 1 = 2 is the number of blanks between ๐1 = 6 and ๐2 = 3 in the original diagram. Similarly ๐1 = 10โ6โ1 = 3 is the number of elements of ๐ = [9]โ{6, 3, 1} greater than ๐1 = 6. In order to fill the blanks between 6 and 3 so that 6 is a left-right minimum, the numbers used must all be greater than 6. This is possible exactly when ๐1 โค ๐1 . Similarly ๐1 + ๐2 โค ๐1 + ๐2 ensures that one can fill the blanks to the left of ๐3 = 1 with numbers greater than ๐2 = 3, and so forth. So checking whether ๐ โด ๐ also determines whether ๐ has the correct left-right minima. We will need an analogue of Lemma 1.12.3 for elements of Av๐ (132). To state it, we define the reversal of a weak composition ๐ผ = [๐ผ1 , ๐ผ2 , . . . , ๐ผ๐ ] to be ๐ผ๐ = [๐ผ๐ , ๐ผ๐โ1 , . . . , ๐ผ1 ]. Lemma 1.12.4. Let ๐ โ ๐๐ . (a) We have ๐ โ Av๐ (132) if and only if, for every left-right minimum ๐, the elements of ๐ to the right of and greater than ๐ form an increasing subsequence. (b) There exists ๐ โ Av๐ (132) with left-right minima positions and values given by (1.12) if and only if ๐๐ โด ๐๐ where ๐, ๐ are as given in Lemma 1.12.3. In this case, ๐ is unique Proof. Much of the proof of this result is similar to the demonstration of Lemma 1.12.3 and so will be left as an exercise. Here we will only present the construction of ๐ โ Av๐ (132) from its diagram of left-right minima and blanks. Again, an example follows the explanation. We keep the notation of the proof of the previous lemma. We start by filling the blanks to the right of ๐๐ = 1 with the elements ๐ โ ๐ such that ๐๐ < ๐ < ๐๐โ1 in increasing order and as far left as possible (so they will be consecutive). Next we fill in the remaining blanks to the right of ๐๐โ1 with those ๐ โ ๐ such that ๐๐โ1 < ๐ < ๐๐โ2 so that they form an increasing subsequence which is as far left as possible given the spaces already filled. Continue in this manner until all blanks are occupied. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
33
Suppose we wish to fill in the diagram (1.13) so that ๐ avoids 132. If ๐3 < ๐ < ๐2 , 3 1 2 . Similarly, then ๐ = 2, so we put 2 just to the right of ๐3 = 1 to get ๐ = 6 ๐1 < ๐ < ๐2 is satisfied by ๐ = 4, 5 so we put these elements following ๐2 = 3 in increasing order using the left-most blanks available to obtain ๐ = 6 34125 . Finally, we do the same for the elements greater than ๐1 = 6 to get the end result ๐ = 6 7 8 3 4 1 2 5 9. We need one last observation before we achieve our goal of showing all elements of ๐3 are Wilf equivalent. Suppose ๐ผ = [๐ผ1 , . . . , ๐ผ๐ ] and ๐ฝ = [๐ฝ1 , . . . , ๐ฝ ๐ ] are weak compositions of ๐. We claim ๐ผ โด ๐ฝ if and only if ๐ฝ๐ โด ๐ผ๐ . To see this, note that the inequality ๐ผ1 +โฏ+๐ผ๐ โค ๐ฝ1 +โฏ+๐ฝ๐ is equivalent to ๐โ(๐ฝ1 +โฏ+๐ฝ๐ ) โค ๐โ(๐ผ1 +โฏ+๐ผ๐ ). But ๐โ(๐ผ1 +โฏ+๐ผ๐ ) = ๐ผ๐ +๐ผ๐โ1 +โฏ+๐ผ๐+1 and similarly for ๐ฝ. Making this substitution we get the necessary inequalities for ๐ฝ๐ โด ๐ผ๐ and all steps are reversible. Finally, we say that a bijection ๐ โถ ๐ โ ๐ preserves property ๐ if ๐ โ ๐ having property ๐ is equivalent to ๐(๐ ) having property ๐ for all ๐ โ ๐. Theorem 1.12.5. For ๐ โฅ 0 and any ๐ โ ๐3 we have # Av๐ (๐) = ๐ถ(๐). Proof. By Theorem 1.12.2 and the discussion just before it, it suffices to show that we have # Av๐ (123) = ๐ถ(๐). This will be true if we can find a bijection ๐ โถ Av๐ (123) โ Av๐ (132). In fact, ๐ will preserve the values and positions of left-right minima. Suppose ๐ โ Av๐ (123) has its positions and values given by (1.12). By Lemma 1.12.3 there is a unique such ๐ and we must also have ๐ โด ๐. But, as noted just before this theorem, this is equivalent to ๐๐ โด๐๐ . So, using Lemma 1.12.4, there is a unique ๐โฒ โ Av๐ (132) having the given positions and values of its left-right minima and we let ๐(๐) = ๐โฒ . Because of the existence and uniqueness of ๐ and ๐โฒ , this is a bijection. โก Note that the description of ๐ in the previous proof can be made constructive. Given ๐ โ Av๐ (123), we remove its non-left-right minima and rearrange them using the algorithm in the proof of Lemma 1.12.4. So, using our running example, ๐(698371542) = 678341259.
Exercises (1) Prove each of the following identities for ๐ โฅ 1 in two ways: one inductive and one combinatorial. ๐
(a) โ ๐น๐ = ๐น๐+2 โ 1. ๐=1 ๐
(b) โ ๐น2๐ = ๐น2๐+1 โ 1. ๐=1 ๐
(c) โ ๐น2๐โ1 = ๐น2๐ . ๐=1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
34
1. Basic Counting
(2) Prove that if ๐, ๐ โ โ with ๐ โฃ ๐ (meaning ๐ divides evenly into ๐), then ๐น ๐ โฃ ๐น๐ . (3) Given ๐ โ โ, show that the sequence of Fibonacci numbers is periodic modulo ๐; that is, there exists ๐ โ โ such that ๐น๐+๐ โก ๐น๐ (mod ๐) for all ๐ โฅ 0. The period modulo ๐ is the smallest ๐ such that this congruence holds. Note that it is an open problem to find the period of the Fibonacci sequence for an arbitrary ๐. (4) The Lucas numbers are defined by ๐ฟ0 = 2, ๐ฟ1 = 1, and ๐ฟ๐ = ๐ฟ๐โ1 + ๐ฟ๐โ2 for ๐ โฅ 2. Prove the following identities for ๐, ๐ โฅ 1. (a) ๐ฟ๐ = ๐น๐โ1 + ๐น๐+1 . (b) Let ๐๐ be the set of tilings of ๐ boxes arranged in a circle with dominos and monominos. Show that #๐๐ = ๐ฟ๐ . (c) ๐ฟ๐+๐ = ๐น๐โ1 ๐ฟ๐ + ๐น๐ ๐ฟ๐+1 . (d) ๐น2๐ = ๐น๐ ๐ฟ๐ . (5) Prove Theorem 1.2.2. (6) Check that the two maps defined in the proof of Theorem 1.3.1 are inverses. (7) (a) Prove Theorem 1.3.3(b) using equation (1.5). (b) Give an inductive proof of Theorem 1.3.3(c). (c) Give an inductive proof of Theorem 1.3.3(d). (8) Let ๐, ๐ be sets. (a) Show that ๐ ฮ ๐ = (๐ โช ๐) โ (๐ โฉ ๐). (b) Show that (๐ ฮ ๐) ฮ ๐ = ๐. (9) Given nonnegative integers satisfying ๐1 + ๐2 + โฏ + ๐๐ = ๐. the corresponding multinomial coefficient is (1.14)
(
๐ ๐! . )= ๐1 ! ๐ 2 ! . . . ๐ ๐ ! ๐1 , ๐2 , . . . , ๐๐
We extend this definition to negative ๐๐ by letting the multinomial coefficient be zero if any ๐๐ < 0. Note that when ๐ = 2 we recover the binomial coefficients as (
๐ ๐ ) = ( ). ๐, ๐ โ ๐ ๐
(a) Find and prove analogues of Theorem 1.3.3(a), (b), and (c) for multinomial coefficients. (b) A permutation of a multiset ๐ = {{1๐1 , 2๐2 , . . . , ๐๐๐ }} is a linear arrangement of the elements of ๐. Let ๐(๐) denote the set of permutations of ๐. For example ๐({{12 , 22 }}) = {1122, 1212, 1221, 2112, 2121, 2211}. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
35
1 1 1 1 1 1
0
0
1
1
1
1 1
1 1
0 0
1 1
1 0
0 0
1
1 0
1 1
1 1
1 0
1
1 1
1
Figure 1.13. Pascalโs triangle modulo 2
Prove that ๐ #๐({{1๐1 , 2๐2 , . . . , ๐๐๐ }}) = ( ) ๐1 , ๐ 2 , . . . , ๐ ๐ in three ways: (i) combinatorially, (ii) by induction on ๐, (iii) by proving that ๐ ๐ ๐ โ ๐1 ( ) = ( )( ) ๐1 , ๐ 2 , . . . , ๐ ๐ ๐1 ๐2 , . . . , ๐๐ and then inducting on ๐. (10) (a) Prove the Pascal triangle is fractal modulo 2. Specifically, if one replaces each binomial coefficient by its remainder on division by 2, then, for any ๐ โฅ 0, the triangle consisting of rows 0 through 2๐ โ 1 is repeated on the left and on the right in rows 2๐ through 2๐+1 โ1 with an inverted triangle of zeros in between. See Figure 1.13 for the first eight rows. Hint: Induct on ๐. (b) Formulate and prove an analogous result modulo ๐ for any prime ๐. (11) Find the inverse for the map in the proof of Theorem 1.3.4, proving that it is welldefined and the inverse to the given function. (12) For ๐ โฅ 0 define the ๐th Fibotorial to be the product ๐น๐! = ๐น1 ๐น2 . . . ๐น๐ . Also, for 0 โค ๐ โค ๐ define a Fibonomial coefficient by ๐น! ๐ ( ) = ! ๐! . ๐ ๐น๐ ๐น๐โ๐ ๐น Note that from this definition it is not clear that this is an integer. (a) Show that the Fibonomial coefficients satisfy the initial conditions (๐0) = ๐น (๐๐) = 1 and recurrence ๐น
๐ ๐โ1 ๐โ1 ( ) = ๐น๐โ๐+1 ( ) + ๐น ๐โ1 ( ) ๐ ๐โ1 ๐ ๐น
๐น
๐น
for 0 < ๐ < ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
36
1. Basic Counting
(b) Show that (๐๐) is an integer for all 0 โค ๐ โค ๐. ๐น (c) Find a combinatorial interpretation of (๐๐) . ๐น
(13) For ๐ โฅ 1 show that the Stirling numbers of the second kind have the following values. (a) ๐(๐, 1) = 1. (b) ๐(๐, 2) = 2๐โ1 โ 1. (c) ๐(๐, ๐) = 1. ๐ (d) ๐(๐, ๐ โ 1) = ( ). 2 ๐ ๐ (e) ๐(๐, ๐ โ 2) = ( ) + 3( ). 3 4 (14) For ๐ โฅ 1 show that the signless Stirling numbers of the first kind have the following values. (a) ๐(๐, 1) = (๐ โ 1)!. ๐ 1 (b) ๐(๐ + 1, 2) = ๐! โ . ๐ ๐=1 (c) ๐(๐, ๐) = 1. ๐ (d) ๐(๐, ๐ โ 1) = ( ). 2 ๐ ๐ (e) ๐(๐, ๐ โ 2) = 2( ) + 3( ). 3 4 (15) Call an integer partition ๐ self-conjugate if ๐๐ก = ๐. Show that the number of selfconjugate ๐ โข ๐ equals the number of ๐ โข ๐ having parts which are distinct (no part can be repeated) and odd. Hint: Use Young diagrams and try to guess a bijection inductively by first seeing what it has to be for small ๐. Then try to construct a bijection for ๐ + 1 which will be consistent in some way with the one for previous values. Finally try to describe your bijection in a noninductive manner. (16) The main diagonal of a Young diagram is the set of squares starting with the one at the top left and moving diagonally right and down. So in Figure 1.5, the main diagonal of ๐ consists of two squares. Prove the following. (a) If ๐ is self-conjugate as defined in the previous exercise, then |๐| โก ๐ (mod 2) where ๐ is the length (number of squares) of the main diagonal. (b) Let ๐ ๐ (๐) be the number of partitions of ๐ whose diagonal has length ๐. Then ๐ ๐ (๐) = โ ๐(๐, ๐)๐(๐ โ ๐ โ ๐ 2 , ๐). ๐โฅ0
(17) Define ๐๐ (๐, ๐) to be the number of ๐ โข ๐ having exactly ๐ parts. Prove the following under the assumption that ๐ โฅ 4, where โโ
โ is the round-down function. (a) ๐๐ (๐, ๐) = ๐(๐ โ ๐, ๐). (b) ๐๐ (๐, 1) = 1. (c) ๐๐ (๐, 2) = โ๐/2โ. (d) ๐๐ (๐, ๐ โ 2) = 2. (e) ๐๐ (๐, ๐ โ 1) = 1. (f) ๐๐ (๐, ๐) = 1. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
37
(18) Finish the proof of Theorem 1.7.1. (19) Prove Theorem 1.7.2. (20) Consider a line of ๐ copies of the integer 1. One can now put slashes in the spaces between the 1โs and count the number of 1โs between each pair of adjacent slashes to form a composition of ๐. For example, if ๐ = 6, then we start with 1 1 1 1 1 1. One way of inserting slashes is 1 1/1/1 1 1, which corresponds to the composition 2 + 1 + 3 = 6. Give alternate proofs of Theorems 1.7.1 and 1.7.2 using this idea. (21) A weak composition of ๐ into ๐ parts is a sequence of ๐ nonnegative integers summing to ๐. Find a formula for the number of weak compositions of ๐ into ๐ parts and then prove it in three different ways: (a) by using a variant of the map ๐ defined in (1.8), (b) by finding a relation between weak compositions and compositions and then using the statement of Theorem 1.7.2 (as opposed to their proofs as in part (a)), (c) by modifying the construction in the previous exercise. (22) Show that the last two columns in Table 1.1 agree when ๐ is bijective, that is, when ๐ = ๐. (23) Prove Lemma 1.9.1(b). (24) A graph ๐บ = (๐, ๐ธ) is regular if all of its vertices have the same degree. If deg ๐ฃ = ๐ for all vertices ๐ฃ, then ๐บ is regular of degree ๐. (a) Show that if ๐บ is regular of degree ๐, then ๐|๐| |๐ธ| = , 2 (b) Call ๐บ bipartite if there is a set partition of ๐ = ๐1 โ ๐2 such for all ๐ข๐ฃ โ ๐ธ we have ๐ข โ ๐1 and ๐ฃ โ ๐2 or vice versa. Show that a bipartite graph regular of degree ๐ โฅ 1 has |๐1 | = |๐2 |. (25) A graph ๐บ is planar if it can be drawn in the plane โ2 without edge crossings. In this case the regions of ๐บ are the topologically connected components of the settheoretic difference โ2 โ ๐บ. Let ๐
be the set of regions of ๐บ. If ๐ โ ๐
, then let deg ๐ be the number of edges on the boundary of ๐. Show that โ deg ๐ โค 2|๐ธ|. ๐โ๐
Find, with proof, a condition on the cycles of ๐บ which is equivalent to having equality. (26) Two graphs ๐บ, ๐ป are isomorphic, written ๐บ โ
๐ป, if they are equal as unlabeled graphs. The complement of a graph ๐บ = (๐, ๐ธ) is the graph ๐บฬ with vertices ๐ and with ๐ข๐ฃ an edge of ๐บฬ if and only if ๐ข๐ฃ โ ๐ธ. Call ๐บ self-complementary if ๐บ โ
๐บ.ฬ (a) Show that there exists a self-complementary graph with ๐ vertices if and only if ๐ โก 0 (mod 4) or ๐ โก 1 (mod 4). (b) Show that in a self-complementary graph with ๐ vertices where ๐ โก 1 (mod 4) there must be at least one vertex of degree (๐ โ 1)/2. Hint: Show that the number of vertices of degree (๐ โ 1)/2 must be odd. (27) Prove Theorem 1.9.4. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
38
1. Basic Counting
(28) Prove that in any digraph ๐ท = (๐, ๐ด) we have โ ideg ๐ฃ = โ odeg ๐ฃ = |๐ด|. ๐ฃโ๐
๐ฃโ๐
(29) Prove the equivalence of (a) and (d) in Theorem 1.10.2. Hint: Use Lemma 1.9.1(b). (30) Consider a sequence of nonnegative integers ๐ โถ ๐1 , . . . , ๐๐ . Call ๐ a degree sequence if there is a graph with vertices ๐ฃ 1 , . . . , ๐ฃ ๐ such that deg ๐ฃ ๐ = ๐๐ for all ๐. (a) Let ๐ be a tree with ๐ vertices and arrange its degree sequence in weakly decreasing order. Prove that for 1 โค ๐ โค ๐ we have ๐โ1 ๐๐ โค โ โ. ๐ (b) Let ๐ be a tree with ๐ vertices and let ๐ โฅ 2 be an integer. Suppose the degree sequence of ๐ satisfies ๐๐ = 1 or ๐ for all ๐. Prove that ๐๐ = ๐ for exactly (๐ โ 2)/(๐ โ 1) indices ๐. (31) Finish the proof of Theorem 1.10.3. (32) Consider ๐ cars ๐ถ1 , . . . , ๐ถ๐ passing in this order by a line of ๐ parking spaces numbered 1, . . . , ๐. Each car ๐ถ๐ has a preferred space number ๐ ๐ in which to park. If ๐ถ๐ gets to space ๐ ๐ and it is free, then it parks. Otherwise it proceeds to the next empty space (which will have a number greater than ๐ ๐ ) and parks there if such a space exists. If no such space exists, it does not park. Call ๐ = (๐ 1 , . . . , ๐๐ ) a parking function of length ๐ if all the cars end up in a parking space. (a) Show that ๐ is a parking function if and only if its unique weakly increasing rearrangement ๐ = (๐1 , . . . , ๐๐ ) satsifies ๐๐ โค ๐ for all ๐ โ [๐]. (b) Use a counting argument to show that the number of parking functions of length ๐ is (๐ + 1)๐โ1 . Hint: Consider parking where there are ๐ + 1 spaces arranged in a circular manner and ๐ + 1 is an allowed preference for cars. (c) Reprove (b) by finding a bijection between parking functions of length ๐ and trees on ๐ + 1 vertices. Hint: Let ๐ be a tree on ๐ + 1 vertices labeled 0, . . . , ๐ and call vertex 0 the root of the tree. Draw ๐ in the plane so that the vertices connected to the root, called the rootโs children, are in increasing order read left to right. Continue to do the same thing for the children of each child of the root, and so forth. Create a permutation ๐ by reading the children of the root left to right, then the grandchildren of the root left to right, etc. Finally, orient each edge of ๐ so that it points from a vertex to its parent and call this set of arcs ๐ด. Map ๐ to ๐ = (๐ 1 , . . . , ๐๐ ) where ๐๐ = {
if ๐ค0โ โ ๐ด, if ๐ค๐ โ๐ โ ๐ด.
1 1+๐
(33) Consider ๐ธ๐-lattice paths along the ๐ฅ-axis which are paths starting at the origin and using steps ๐ธ = [1, 0] and ๐ = [โ1, 0]. (a) Show that if an ๐ธ๐-lattice path has length ๐ and ends at (๐, 0), then ๐ and ๐ have the same parity and |๐| โค ๐. (b) Show that the number of ๐ธ๐-lattice paths of length ๐ ending at (๐, 0) is ๐ ( ๐+๐ ). 2
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
39
(c) Show that the number of ๐ธ๐-lattice paths of length 2๐ ending at the origin and always staying on the nonnegative side of the axis is ๐ถ(๐). (34) Show that the Catalan numbers ๐ถ(๐) also count the following objects: (a) ballot sequences which are words ๐ค = ๐ค 1 . . . ๐ค 2๐ containing ๐ ones and ๐ twos such that in any prefix ๐ค 1 . . . ๐ค ๐ the number of ones is always at least as great as the number of twos, (b) sequences of positive integers 1 โค ๐ 1 โค ๐ 2 โค . . . โค ๐๐ with ๐๐ โค ๐ for 1 โค ๐ โค ๐, (c) triangulations of a convex (๐ + 2)-gon using nonintersecting diagonals, (d) noncrossing partitions ๐ = ๐ต1 / . . . /๐ต๐ โข [๐] where a crossing is ๐ < ๐ < ๐ < ๐ such that ๐, ๐ โ ๐ต๐ and ๐, ๐ โ ๐ต๐ for ๐ โ ๐. (35) Fill in the details of the proof of Theorem 1.11.3. (36) A stack is a first-in first-out (FIFO) data structure with two operations. One can put something on the top of a stack, called pushing, or take something from the top of the stack, called popping. A permutation ๐ = ๐1 . . . ๐๐ โ ๐๐ is considered sorted if its elements have been rearranged to form the permutation ๐ = 12 . . . ๐. Consider the following algorithm for sorting ๐. Start with an empty stack and an empty output permutation ๐. At each stage there are two options. If the stack is empty or the current first element ๐ of ๐ is smaller than the top element of the stack, then one pushes ๐ onto the stack. If ๐ has become empty or the top element ๐ก of the stack is smaller than the first element of ๐, then one pops ๐ก from the stack and appends it to the end of ๐. An example showing the sorting of ๐ = 3124 will ๐
stack
๐
๐
๐
3124
๐
3
124
1 ๐
3
24
1
3
24
2 1
3
4
12
3
4
123
๐
4
123
4
๐
1234
๐
๐
Figure 1.14. A stack-sorting algorithm
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
40
1. Basic Counting
be found in Figure 1.14. Note that the input permutation ๐ is on the right and the output permutation ๐ is on the left so that the head of ๐ and the tail of ๐ are nearest the stack. (a) Show that this algorithm sorts ๐ if and only if ๐ โ Av๐ (231). (b) Show that if there is a sequence of pushes and pops which sorts ๐, then it must be the sequence given by the algorithm. (37) Suppose ๐ = ๐1 . . . ๐๐ โ ๐๐ . Prove the following descriptions of actions of elements of ๐ท in terms of one-line notation. (a) ๐โ (๐) = ๐๐ . . . ๐1 โ ๐๐ , the reversal of ๐. (b) ๐0 (๐) = (๐ + 1 โ ๐1 ) . . . (๐ + 1 โ ๐๐ ) โ ๐๐ , the complement of ๐. (c) ๐1 (๐) = ๐โ1 , the group-theoretic inverse of ๐. (38) Finish the proof of Theorem 1.12.2. (39) Given any set of permutations ฮ we let Av๐ (ฮ ) = {๐ โ ๐๐ โฃ ๐ avoids all ๐ โ ฮ }. If ๐ = ๐1 ๐2 . . . ๐๐ โ ๐๐ is a permutation and ๐ โ โ, then we can construct a new permutation ๐ + ๐ = ๐1 + ๐, ๐2 + ๐, . . . , ๐๐ + ๐. Given permutations ๐, ๐ of disjoint sets, we denote by ๐๐ the permutation obtained by concatenating them. Define two other concatenations on ๐ โ ๐๐ and ๐ โ ๐๐ , the direct sum ๐ โ ๐ = ๐(๐ + ๐) and skew sum ๐ โ ๐ = (๐ + ๐)๐. Finally for ๐ โฅ 0 we use the notation ๐๐ = 12 . . . ๐ for the increasing permutation of length ๐, and ๐ฟ๐ = ๐ . . . 21 for the decreasing one. Prove the following. (a) Av๐ (213, 321) = {๐๐1 โ (๐๐2 โ ๐๐3 ) โฃ ๐1 + ๐2 + ๐3 = ๐}. (b) Av๐ (132, 213) = {๐๐1 โ ๐๐2 โ โฏ โฃ โ๐ ๐๐ = ๐}. (c) Av๐ (132, 213, 321) = {๐๐1 โ ๐๐2 โฃ ๐1 + ๐2 = ๐}. (d) Av๐ (132, 231, 312) = {๐ฟ ๐1 โ ๐๐2 โฃ ๐1 + ๐2 = ๐}. (e) Av๐ (132, 231, 321) = {(1 โ ๐๐1 ) โ ๐๐2 โฃ ๐1 + ๐2 = ๐ โ 1}. (f) Av๐ (123, 132, 213) = {๐๐1 โ ๐๐2 โ โฏ โฃ โ๐ ๐๐ = ๐ and ๐๐ โค 2 for all ๐}. (40) Finish the proof of Lemma 1.12.4.
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/02
Chapter 2
Counting with Signs
In the previous chapter, we concentrated on counting formulae where all of the terms were positive. But there are interesting things to say when one permits negative terms as well. This chapter is devoted to some of the principal techniques which one can use in such a situation.
2.1. The Principle of Inclusion and Exclusion The Principle of Inclusion and Exclusion, or PIE, is one of the classical methods for counting using signs. After presenting the Principle itself, we will give an application to derangements which are permutations having no fixed points. In the Sum Rule, Lemma 1.1.1(a), we assumed that the sets ๐, ๐ are disjoint. Of course, it is easy to see that for any finite sets ๐, ๐ we have (2.1)
|๐ โช ๐| = |๐| + |๐| โ |๐ โฉ ๐|.
Indeed, |๐| + |๐| counts ๐ โฉ ๐ twice and so to count it only once we must subtract the cardinality of the intersection. But one could ask if there is a similar formula for the union of any number of sets. It turns out that it is often more useful to consider these sets as subsets of some universal set ๐ and count the number of elements in ๐ which are not in any of the subsets, similar to the viewpoint used in pattern avoidance. To set up notation, let ๐ be a set and let ๐ 1 , . . . , ๐๐ โ ๐. We wish to find a formula for |๐ โ โ๐ ๐ ๐ |. When ๐ = 1 we clearly have |๐ โ ๐ 1 | = |๐| โ |๐ 1 |. And for ๐ = 2 equation (2.1) yields |๐ โ (๐ 1 โช ๐ 2 )| = |๐| โ |๐ 1 | โ |๐ 2 | + |๐ 1 โฉ ๐ 2 |. 41 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
42
2. Counting with Signs
๐
๐ ๐1
๐1
๐2
Figure 2.1. The PIE for ๐ = 1, 2
Venn diagrams showing the shaded region counted for these two cases are given in Figure 2.1. The reader may have already guessed the generalization for arbitrary ๐. This type of enumeration where one alternately adds and subtracts cardinalities is sometimes called a sieve. Theorem 2.1.1 (Principle of Inclusion and Exclusion, PIE). If ๐ is a finite set with subsets ๐ 1 , . . . , ๐๐ , then (2.2)
๐ | | |๐ โ ๐ ๐ || = |๐| โ โ |๐ ๐ | + | โ | | 1โค๐โค๐ ๐=1
๐
โ
|๐ ๐ โฉ ๐๐ | โ โฏ + (โ1)๐ |
1โค๐ โฏ > ๐๐โ1 > ๐๐ = min ๐ต๐ . Now in ๐โฒ we have ๐ต๐โฒ = {๐๐ } for ๐ โค ๐ with ๐1 > โฏ > ๐๐ . As a consequence, no ๐ต๐โฒ โฒ can be split or merged for ๐ < ๐ and so ๐(๐โฒ ) will merge ๐ต๐โฒ into ๐ต๐+1 . Thus ๐(๐โฒ ) = ๐ as desired. It is clear that ๐ is sign reversing since ๐(๐) has one more or one fewer block than ๐. So we just need to find the fixed points. But if ๐ โ Fix ๐, then all ๐โs blocks contain a single element; otherwise one could be split. It follows that ๐ = ({๐1 }, . . . , {๐๐ }). Furthermore, none of the blocks can be merged and so ๐1 > โฏ > ๐๐ . But this forces our set composition to be ๐ = ({๐}, {๐ โ 1}, . . . , {1}) and sgn ๐ = (โ1)๐ , completing the proof. โก To illustrate, suppose ๐ = 8. As we have done previously, we will dispense with brackets and commas in sets. Consider ๐ = (๐ต1 , . . . , ๐ต5 ) = (5, 3, 147, 2, 68). Then ๐ต3 is splittable and splitting it results in ๐(๐) = (5, 3, 1, 47, 2, 68). Also, ๐ต4 can be merged into ๐ต5 in ๐ since ๐ต4 = {2} and 2 < min ๐ต5 = 6. Merging these two blocks gives ๐(๐) = (5, 3, 147, 268). To decide which operation to use we start with ๐ต1 . It cannot be split, having only one element. And it cannot be merged with ๐ต2 since 5 > min ๐ต2 = 3. Similarly ๐ต2 cannot be split or merged with ๐ต3 . But we have already seen that ๐ต3 can be split so that ๐(๐) = (5, 3, 1, 47, 2, 68) = ๐โฒ . To check that ๐(๐โฒ ) = ๐ is similar. Involutions involving merging and splitting often come up when finding formulae for antipodes in Hopf algebras. One can consult the papers of Benedetti-Bergeron [7], Benedetti-Hallam-Machacek [8], Benedetti-Sagan [9], or Bergeron-Ceballos [12] for examples. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.3. The GarsiaโMilne Involution Principle
49
2.3. The GarsiaโMilne Involution Principle So far we have used sign-reversing involutions to explain cancellation in alternating sums. But can they also furnish a bijection for proving that two given sets have the same cardinality? The answer in certain cases is โyesโ and the standard technique for doing this is called the GarsiaโMilne Involution Principle. Garsia and Milne [30] introduced this method to give the first bijective proof of the RogersโRemanujan identities, famous formulas which involve certain sets of integer partitions. Since then the Involution Principle has found a number of other applications. See, for example, the articles of Remmel [73] or Wilf [100]. In order to prove the GarsiaโMilne result, we will need a version of Lemma 1.9.5 which applies to a slightly wider class of digraphs. Since the demonstration of the next result is similar to that of the earlier one, we leave the pleasure of proving it to the reader. Lemma 2.3.1. Let ๐ท = (๐, ๐ด) be a digraph. We have odeg ๐ฃ, ideg ๐ฃ โค 1 for all ๐ฃ โ ๐ if and only if ๐ท is a disjoint union of directed paths and directed cycles. โก The basic idea of the Involution Principle is that, under suitable conditions, if one has two signed sets each with their own sign-reversing involution, then we can use a bijection between these sets to create a bijection between their fixed-point sets. So let ๐ and ๐ be disjoint signed sets with sign-reversing involutions ๐ โถ ๐ โ ๐ and ๐
โถ ๐ โ ๐ such that Fix ๐ โ ๐ + and Fix ๐
โ ๐ + . Furthermore, suppose we have a bijection ๐ โถ ๐ โ ๐ which preserves signs in that sgn ๐(๐ ) = sgn ๐ for all ๐ โ ๐. A picture of this setup can be found in Figure 2.3. Note that although all arrows are really doubleheaded, we have only shown them in one direction because of what is to come. And the circular arrows on the fixed points have been ignored. We now construct a map ๐น โถ Fix ๐ โ Fix ๐
as follows. To define ๐น(๐ ) for ๐ โ Fix ๐ we first compute ๐(๐ ) โ ๐ + . If ๐(๐ ) โ Fix ๐
, then we let ๐น(๐ ) = ๐(๐ ). If not, we apply the functional composition ๐ = ๐ โ ๐ โ ๐โ1 โ ๐
to ๐(๐ ). Remembering that we compose from right to left, this takes ๐(๐ ) to ๐ โ , ๐ โ , ๐ + , and ๐ + in that order. If this brings us to an element of Fix ๐
, then we let ๐น(๐ ) = ๐(๐(๐ )). Otherwise we apply ๐ as many times as necessary, say ๐, to arrive at an element of Fix ๐
and define ๐น(๐ ) = ๐๐ (๐(๐ )).
(2.8)
Continuing the example in Figure 2.3 we see that ๐(๐ ) = ๐ข โ Fix ๐
. So we apply ๐, which takes ๐ข to ๐ฃ, ๐, ๐, and ๐ก in turn. Since ๐ก โ Fix ๐
we let ๐น(๐ ) = ๐ก. Of course, we have to worry whether this is all well-defined; e.g., does ๐ always exist? And we also need to prove that ๐น is a bijection. This is taken care of by the next theorem. Theorem 2.3.2 (GarsiaโMilne Involution Principle). With the notation of the previous paragraph, the map ๐น โถ Fix ๐ โ Fix ๐
is a well-defined bijection. Proof. Recall the notion of a functional digraph as used in the proof from Section 1.9 of Theorem 1.5.1. Define the following functions by restriction of their domains: ๐ = ๐|๐+ ,
๐ = ๐โ1 |๐ โ ,
๐ = ๐|๐โ ,
๐
= ๐
|๐ + โFix ๐
.
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
50
2. Counting with Signs
๐+
๐+
๐
๐
๐
๐ Fix ๐
๐
๐ข
๐
๐
๐ก Fix ๐
๐ฃ
๐โ1 ๐โ
๐โ Figure 2.3. An example of the GarsiaโMilne construction
Consider ๐ท which is the union of the functional digraphs for ๐, ๐, ๐, and ๐
. It is easy to verify from the definitions that ๐ฅ โ ๐(๐ท) has in-degrees and out-degrees given by the following table depending on the subset of ๐ โช ๐ containing ๐ฅ: subset Fix ๐ Fix ๐
(๐ โ Fix ๐) โช (๐ โ Fix ๐
)
odeg ๐ฅ 1 0 1
ideg ๐ฅ 0 1 1
For example, if ๐ฅ โ Fix ๐, then the only arc containing ๐ฅ comes from ๐ and so odeg ๐ฅ = 1 and ideg ๐ฅ = 0. On the other hand, if ๐ฅ โ ๐ + โ Fix ๐, then ๐ฅ has an arc going out from ๐ and one coming in from ๐ giving odeg ๐ฅ = ideg ๐ฅ = 1. Now ๐ท satisfies the hypothesis of the forward direction of Lemma 2.3.1. It follows that ๐ท is a disjoint union of directed paths and directed cycles. Each directed path must start at a vertex with out-degree 1 and in-degree 0 and end at a vertex with these degrees switched. Furthermore, all other vertices have out-degree and in-degree both 1. From these observations and the chart, it follows that these paths define a 1-to-1 correspondence between the vertices of Fix ๐ and those of Fix ๐
. Furthermore, from the definition of ๐ท we see that each path corresponds exactly to a functional composition ๐๐ ๐(๐ ) for ๐ โ Fix ๐ and some ๐ โฅ 0. So ๐น is the bijection defined by these paths. โก
Before we give an application of the previous theorem, we should mention an approach which can be useful in setting up the necessary sets and bijections. Here is one way to try to find a bijection ๐น โถ ๐ โ ๐ between two finite sets ๐, ๐ . (i) As with the PIE, construct a set ๐ด with subsets ๐ด1 , . . . , ๐ด๐ such that ๐ = ๐ด โ โ ๐ด๐ . Similarly construct ๐ต and ๐ต1 , . . . , ๐ต๐ for ๐ . (ii) Use the method of our second proof of the PIE to set up a sign-reversing involution ๐ on the set ๐ as given by (2.6). Similarly construct ๐
on a set ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.3. The GarsiaโMilne Involution Principle
51
(iii) Find a bijection ๐ โถ ๐ โ ๐ of the form ๐(๐, ๐ผ) = (๐, ๐ผ) which is well-defined in that ๐ โ ๐ด๐ผ if and only if ๐ โ ๐ต๐ผ . Recall that Fix ๐ = (๐, โ
) where ๐ โ ๐ด โ โ ๐ด๐ . Thus Fix ๐ โ ๐ + as needed to apply the Involution Principle, and there is a natural bijection between Fix ๐ and ๐. Note also that ๐ is automatically sign preserving since sgn(๐, ๐ผ) = (โ1)#๐ผ = sgn(๐, ๐ผ). So once these three steps have been accomplished, Theorem 2.3.2 guarantees that we have a bijection ๐ โ ๐ . As already remarked, the Involution Principle is useful in proving integer partition identities. Say that partition ๐ = (๐1 , ๐2 , . . . , ๐๐ ) has distinct parts if ๐1 > ๐2 > โฏ > ๐๐ (as opposed to the usual weakly decreasing condition). On the other hand, say that ๐ has odd parts if all the ๐๐ are odd. The next result is a famous theorem of Euler. As has become traditional, an example follows the proof. Theorem 2.3.3 (Euler). Let ๐๐ (๐) be the set of partitions of ๐ with distinct parts and let ๐๐ (๐) be the set of partitions of ๐ with odd parts. For ๐ โฅ 0 we have #๐๐ (๐) = #๐๐ (๐).
Proof. It suffices to show that there is a bijection ๐๐ (๐) โ ๐๐ (๐). To apply the PIE to ๐๐ (๐) we can take ๐ด = ๐(๐), the set of all partitions of ๐, with subsets ๐ด1 , . . . , ๐ด๐ where ๐ด๐ = {๐ โข ๐ โฃ ๐ has (at least) two copies of the part ๐}. Note that ๐ด๐ = โ
if ๐ > ๐/2, but this does no harm and keeps the notation simple. It should be clear from the definitions that ๐๐ (๐) = ๐ด โ โ ๐ด๐ . Similarly, for ๐๐ (๐) we let ๐ต = ๐(๐) with subsets ๐ต๐ = {๐ โข ๐ โฃ ๐ has a part of the form 2๐} for 1 โค ๐ โค ๐. Again, it is easy to see that ๐๐ (๐) = ๐ต โ โ ๐ต๐ . The construction of ๐, ๐, ๐, and ๐
are now exactly the same as in the second proof of the PIE. So it suffices to construct an appropriate bijection ๐ โถ ๐ โ ๐. Given (๐, ๐ผ) โ ๐, we replace, for each ๐ โ ๐ผ, a pair of ๐โs in ๐ by a part 2๐ to form ๐. So if ๐ โ ๐ด๐ , then ๐ โ ๐ต๐ for all ๐ โ ๐ผ and the map ๐(๐, ๐ผ) = (๐, ๐ผ) is well-defined. It is also easy to construct ๐โ1 , taking an even part 2๐ in ๐ and replacing it with two copies of ๐ to form ๐ as ๐ runs over ๐ผ. Appealing to Theorem 2.3.2 finishes the proof. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
52
2. Counting with Signs
To illustrate this demonstration, suppose we start with (6, 2, 1) โ ๐๐ (9). For the pairs in ๐ and ๐, we will dispense with delimiters and commas as usual. So ๐
๐โ1
๐
๐
(621, โ
) โฆ (621, โ
) โฆ (621, 3) โฆ (3321, 3) โฆ (3321, โ
) ๐
๐
๐
๐
๐
๐
๐โ1
๐
โฆ (3321, โ
) โฆ (3321, 1) โฆ (33111, 1) โฆ (33111, 13) ๐โ1
๐
โฆ (621, 13) โฆ (621, 1) โฆ (6111, 1) โฆ (6111, โ
) ๐โ1
๐
โฆ (6111, โ
) โฆ (6111, 3) โฆ (33111, 3) โฆ (33111, โ
) ๐
โฆ (33111, โ
). ๐น
It follows that we should map (6, 2, 1) โฆ (3, 3, 1, 1, 1). Clearly one might like to find a more efficient bijection if one exists. This issue will be further explored in the exercises.
2.4. The Reflection Principle The Reflection Principle is a geometric method for working with certain combinatorial problems involving lattice paths. In particular, it will permit us to give a very simple proof of the binomial coefficient formula for the Catalan numbers. It is also useful in proving unimodality, an interesting property of real number sequences. Consider the integer lattice โค2 and northeast paths in this lattice. Suppose we are given a line in the plane of the form ๐ฟ โถ ๐ฆ = ๐ฅ + ๐ for some ๐ โ โค. Note that the reflection in ๐ฟ of any northeast path is again a northeast path. If ๐ is a path from ๐ข to ๐
๐ฃ, then we write ๐ โถ ๐ข โ ๐ฃ or ๐ข โ ๐ฃ. Suppose ๐ โถ ๐ข โ ๐ฃ intersects ๐ฟ and let ๐ฅ be its
๐ฃ
๐ฟ
๐ฟ
๐2 ๐ฃโฒ ๐ฅ
๐ฅ
ฮฅ๐ฟ
โ
๐ข
๐1
๐2โฒ
๐ข
Figure 2.4. The map ฮฅ๐ฟ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
๐1
2.4. The Reflection Principle
53
last (northeast-most) point of intersection. Then ๐ can be written as the concatenation ๐1
๐2
๐ โถ ๐ข โ ๐ฅ โ ๐ฃ. For example, on the left in Figure 2.4 we have the path ๐ = ๐ธ๐ธ๐ธ๐๐๐๐๐ธ๐ with ๐1 = ๐ธ๐ธ๐ธ๐๐ and ๐2 = ๐๐๐ธ๐. We now define a new path ๐1
๐2โฒ
ฮฅ๐ฟ (๐) โถ ๐ข โ ๐ฅ โ ๐ฃโฒ where ๐2โฒ and ๐ฃโฒ are the reflections of ๐2 and ๐ฃ in ๐ฟ, respectively. Returning to our example, ๐2โฒ = ๐ธ๐ธ๐๐ธ, which is obtained from ๐2 by merely interchanging north and east steps. So ฮฅ๐ฟ (๐) = ๐ธ๐ธ๐ธ๐๐๐ธ๐ธ๐๐ธ as on the right in Figure 2.4. This is the fundamental map for using the Reflection Principle. To state it precisely, let ๐ฉโฐ(๐ข; ๐ฃ) denote the set of northeast paths from ๐ข to ๐ฃ and let ๐ฉโฐ๐ฟ (๐ข; ๐ฃ) be the subset of paths which intersect ๐ฟ. If ๐ข is omitted, then it is assumed that ๐ข = (0, 0). Also, be sure to distinguish the notation ๐ฉโฐ(๐ข; ๐ฃ) for the northeast paths from ๐ข to ๐ฃ and ๐ฉโฐ(๐, ๐) for the northeast paths from (0, 0) to (๐, ๐). The former contains a semicolon where the latter has a comma. Theorem 2.4.1 (Reflection Principle). Given ๐ฟ โถ ๐ฆ = ๐ฅ + ๐ for ๐ โ โค and ๐ฃ โ โค2 , we let ๐ฃโฒ be the reflection of ๐ฃ in ๐ฟ. Then the map ฮฅ๐ฟ โถ ๐ฉโฐ๐ฟ (๐ข; ๐ฃ) โ ๐ฉโฐ๐ฟ (๐ข; ๐ฃโฒ ) is a bijection. Proof. In fact, we can show that ฮฅ๐ฟ is an involution on ๐ฉโฐ๐ฟ (๐ข; ๐ฃ) โช ๐ฉโฐ๐ฟ (๐ข; ๐ฃโฒ ). This follows from the fact that reflection in ๐ฟ is an involution and that the set of intersection points does not change when passing from ๐ โฉ ๐ฟ to ฮฅ๐ฟ (๐) โฉ ๐ฟ. โก As a first application of Theorem 2.4.1, we will give a simpler, although not as purely combinatorial, proof of Theorem 1.11.3. We restate the formula here for reference: 1 2๐ ๐ถ(๐) = ( ). ๐+1 ๐ Proof. Recall that ๐ถ(๐) counts the set ๐(๐) of northeast Dyck paths from (0, 0) to (๐, ๐). From Theorem 1.11.1 we know that the total number of all northeast paths ๐ from the origin to (๐, ๐) is #๐ฉโฐ(๐, ๐) = (
2๐ ). ๐
Note that ๐ does not stay weakly above ๐ฆ = ๐ฅ if and only if ๐ intersects the line ๐ฟ โถ ๐ฆ = ๐ฅ โ 1. And by the Reflection Principle, such paths are in bijection with ๐ฉโฐ๐ฟ ((0, 0); (๐ + 1, ๐ โ 1)) since (๐ + 1, ๐ โ 1) is the reflection of (๐, ๐) in ๐ฟ. But all paths from (0, 0) to (๐ + 1, ๐ โ 1) cross ๐ฟ since these two points are on opposite sides of the line. Thus, using Theorem 1.11.1 again, #๐ฉโฐ๐ฟ ((0, 0); (๐ + 1, ๐ โ 1)) = #๐ฉโฐ(๐ + 1, ๐ โ 1) = (
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2๐ ). ๐+1
54
2. Counting with Signs
So subtracting the number of non-Dyck paths from the total number of paths in ๐ฉโฐ(๐, ๐) gives ๐ถ(๐) = ( =
2๐ 2๐ )โ( ) ๐ ๐+1
(2๐)! (2๐)! โ ๐! ๐! (๐ + 1)! (๐ โ 1)!
= (1 โ
=
2๐ ๐ )( ) ๐+1 ๐
1 2๐ ( ) ๐+1 ๐ โก
as desired.
The Reflection Principle can also be used to prove that certain sequences have a property called unimodality. A sequence of real numbers ๐0 , ๐1 , . . . , ๐๐ is said to be unimodal if there is an index ๐ such that ๐0 โค ๐1 โค โฏ โค ๐๐ โฅ ๐๐+1 โฅ โฏ โฅ ๐๐ . So this is the next most complicated behavior after being weakly increasing or weakly decreasing. In fact the latter are the special cases of unimodality where ๐ = ๐ or ๐ = 0. Many sequences arising in combinatorics, algebra, and geometry are unimodal. See the survey articles of Stanley [89], Brenti [20], or Brรคndรฉn [19] for more details. The term โunimodalโ comes from probability and statistics where one thinks of the ๐๐ as giving you the distribution of a random variable taking values in {0, 1, . . . , ๐}. Then a unimodal distribution has only one hump. We have already met a number of unimodal sequences, although we have not remarked on the fact. Here is the simplest. Theorem 2.4.2. For ๐ โฅ 0 the sequence ๐ ๐ ๐ ( ), ( ), . . . , ( ) 0 1 ๐ is unimodal. Proof. Because the binomial coefficients are symmetric, Theorem 1.3.3(b), it suffices to prove that this sequence is increasing up to its halfway point. So we want to show ๐ ๐ ( )โค( ) ๐ ๐+1 for ๐ < โ๐/2โ. From Theorem 1.11.1, we know that ๐ ( ) = #๐ฉโฐ(๐, ๐ โ ๐) ๐
and
(
๐ ) = #๐ฉโฐ(๐ + 1, ๐ โ ๐ โ 1). ๐+1
So it suffices to find an injection ๐ โถ ๐ฉโฐ(๐, ๐ โ ๐) โ ๐ฉโฐ(๐ + 1, ๐ โ ๐ โ 1). Let ๐ฟ be the perpendicular bisector of the line segment from (๐, ๐โ๐) to (๐+1, ๐โ๐โ1). It is easy to Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.5. The LindstrรถmโGesselโViennot Lemma
55
check that ๐ฟ has the form ๐ฆ = ๐ฅ + ๐ for ๐ โ โค. From the Reflection Principle, we have a bijection ฮฅ๐ฟ โถ ๐ฉโฐ๐ฟ (๐, ๐ โ ๐) โ ๐ฉโฐ๐ฟ (๐ + 1, ๐ โ ๐ โ 1). But since ๐ < โ๐/2โ the lattice points (0, 0) and (๐, ๐โ๐) are on opposite sides of ๐ฟ so that ๐ฉโฐ๐ฟ (๐, ๐โ๐) = ๐ฉโฐ(๐, ๐โ๐). Furthermore ๐ฉโฐ๐ฟ (๐ + 1, ๐ โ ๐ โ 1) โ ๐ฉโฐ(๐ + 1, ๐ โ ๐ โ 1). So extending the range of ฮฅ๐ฟ provides the desired injection. โก It turns out that the Stirling number sequences ๐(๐, 0), ๐(๐, 1), . . . , ๐(๐, ๐)
and
๐(๐, 0), ๐(๐, 1), . . . , ๐(๐, ๐)
are also unimodal. But this is not so easy to prove directly. One reason for this is that these sequences are not symmetric like the one for the binomial coefficients. And there is no known simple expression for the index ๐ where they achieve their maxima. Instead it is better to use another property of real sequences, called log-concavity, which can imply unimodality. This is one of the motivations for the next section.
2.5. The LindstrรถmโGesselโViennot Lemma The lemma in question is a powerful technique for dealing with certain determinantal identities. It was first discovered by Lindstrรถm [57] and then used to great effect by Gessel and Viennot [31] as well as many other authors. Like the Reflection Principle, this method uses directed paths. On the other hand, it uses multiple paths and is not restricted to the integer lattice. In particular, when there are two paths, then log-concavity results can be obtained. A sequence of real numbers ๐0 , ๐1 , . . . , ๐๐ is called log-concave if, for all 0 < ๐ < ๐, we have (2.9)
๐2๐ โฅ ๐๐โ1 ๐๐+1 .
As usual, we can extend this to all ๐ โ โค by letting ๐๐ = 0 for ๐ < 0 or ๐ > ๐. Logconcave sequences, like unimodal ones, are ubiquitous in combinatorics, algebra, and geometry. See the previously cited survey articles of Stanley, Brenti, and Brรคndรฉn for details. For example, a row of Pascalโs triangle or either of the Stirling triangles is logconcave. The name โlog-concaveโ comes from the following scenario. Suppose that we have a function ๐ โถ โ โ โ which is concave down. So if one takes any two points on the graph of ๐, then the line segment connecting them lies weakly below ๐. Taking the points to be (๐ โ 1, ๐(๐ โ 1)) and (๐ + 1, ๐(๐ + 1)) and comparing the ๐ฆ-coordinate of the midpoint of the corresponding line segment with that coordinate on ๐ gives (๐(๐ โ 1) + ๐(๐ + 1))/2 โค ๐(๐). Now if ๐(๐ฅ) > 0 for all ๐ฅ and the function log ๐(๐ฅ) is concave down, then substituting into the previous inequality and exponentiating gives ๐(๐ โ 1)๐(๐ + 1) โค ๐(๐)2 just like the definition of log-concavity for sequences. It turns out that log-concavity and unimodality are related. Proposition 2.5.1. Suppose that ๐0 , ๐1 , . . . , ๐๐ is a sequence of positive reals. If the sequence is log-concave, then it is unimodal. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
56
2. Counting with Signs
Proof. To show a sequence is unimodal it suffices to show that after its first strict decrease, then it continues to weakly decrease. But ๐๐โ1 > ๐๐ is equivalent to ๐๐โ1 /๐๐ > 1 for positive ๐๐ . Rewriting (2.9) as ๐๐ /๐๐+1 โฅ ๐๐โ1 /๐๐ we see that if ๐๐โ1 /๐๐ > 1, then ๐๐โ1 /๐๐ > 1 for all ๐ โฅ ๐. So the sequence is unimodal. โก Even though log-concavity implies unimodality for positive sequences, it is paradoxically often easier to prove log-concavity rather than proving unimodality directly. This comes in part from the fact that the log-concave condition is a uniform one for all ๐, as opposed to unimodality where one must know where the maximum of the sequence occurs. We can rewrite (2.9) as ๐2๐ โ ๐๐โ1 ๐๐+1 โฅ 0, or in terms of determinants as | ๐๐ | | ๐๐โ1
(2.10)
๐๐+1 | | โฅ 0. ๐๐ |
To prove that the determinant is nonnegative, we could show that it counts something and that is exactly what the LindstrรถmโGesselโViennot Lemma is set up to do. We will first consider the case of 2 ร 2 determinants and at the end of the section indicate how to do the general case. As a running example, we will show how to prove log-concavity of the sequence of binomial coefficients considered in Theorem 2.4.2. Let ๐ท be a digraph which is acyclic in that it contains no directed cycles. Given two vertices of ๐ข, ๐ฃ โ ๐(๐ท), we let ๐ซ(๐ข; ๐ฃ) denote the set of directed paths from ๐ข to ๐ฃ. We will assume that ๐ข, ๐ฃ are always chosen so that ๐(๐ข; ๐ฃ) = #๐ซ(๐ข; ๐ฃ) is finite even if ๐ท itself is not. To illustrate, let ๐ท be the digraph with vertices โค2 and arcs from (๐, ๐) to (๐ + 1, ๐) and to (๐, ๐ + 1) for all ๐, ๐ โ โค. Then ๐ซ(๐ข; ๐ฃ) is just the set of northeast lattice paths from ๐ข to ๐ฃ, denoted ๐ฉโฐ(๐ข; ๐ฃ) in the previous section. We will continue to use the notation for general paths from that section for any acyclic digraph. We also extend that notation as follows. Given a directed path ๐ โถ ๐ข โ ๐ฃ and vertices ๐ฅ coming ๐
before ๐ฆ on ๐, we let ๐ฅ โ ๐ฆ be the portion of ๐ between ๐ฅ and ๐ฆ. Continuing the general exposition, suppose we are given ๐ข1 , ๐ข2 โ ๐ called the initial vertices and ๐ฃ 1 , ๐ฃ 2 โ ๐ which are the final vertices. We wish to consider determinants of the form (2.11)
| ๐(๐ข1 ; ๐ฃ 1 ) ๐(๐ข1 ; ๐ฃ 2 ) | | | = ๐(๐ข1 ; ๐ฃ 1 )๐(๐ข2 ; ๐ฃ 2 ) โ ๐(๐ข1 ; ๐ฃ 2 )๐(๐ข2 ; ๐ฃ 1 ). | ๐(๐ข2 ; ๐ฃ 1 ) ๐(๐ข2 ; ๐ฃ 2 ) |
Note that ๐(๐ข1 ; ๐ฃ 1 )๐(๐ข2 ; ๐ฃ 2 ) counts pairs of paths (๐1 , ๐2 ) โ ๐ซ(๐ข1 ; ๐ฃ 1 ) ร ๐ซ(๐ข2 ; ๐ฃ 2 ) โ ๐ซ12 and similarly for ๐(๐ข1 ; ๐ฃ 2 )๐(๐ข2 ; ๐ฃ 1 ) and ๐ซ(๐ข1 ; ๐ฃ 2 ) ร ๐ซ(๐ข2 ; ๐ฃ 1 ) โ ๐ซ21 . Returning to our example, if we wish to show 2
๐ ๐ ๐ ( ) โ( )( ) โฅ 0, ๐ ๐โ1 ๐+1 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.5. The LindstrรถmโGesselโViennot Lemma
57
๐ฃ2
๐ฃ2 ๐ฃ1
๐ฃ1
โฆ
โ
๐ฅ
๐ข2
๐ฅ
๐ข2 ๐ข1
๐ข1 Figure 2.5. The LindstrรถmโGesselโViennot Involution
then we could take ๐ข1 = (1, 0), ๐ข2 = (0, 1), ๐ฃ 1 = (๐ + 1, ๐ โ ๐), ๐ฃ 2 = (๐, ๐ โ ๐ + 1). ๐ It follows from Theorem 1.11.1 that ๐(๐ข1 ; ๐ฃ 1 ) = ๐(๐ข2 ; ๐ฃ 2 ) = (๐๐), while ๐(๐ข1 ; ๐ฃ 2 ) = (๐โ1 ) ๐ and ๐(๐ข2 ; ๐ฃ 1 ) = (๐+1). More specifically, if ๐ = 7 and ๐ = 3, then in Figure 2.5 we have a pair of paths in ๐ซ21 counted by (27)(47) on the left and another pair in ๐ซ12 counted by 2
(37) on the right. For readablity, the grid for the integer lattice has been suppressed, leaving only the vertices of โค2 . To prove that the determinant (2.11) is nonnegative, we will construct a signreversing involution ฮฉ on the set ๐ซ โ ๐ซ12 โช ๐ซ21 where sgn(๐1 , ๐2 ) = {
+1 if (๐1 , ๐2 ) โ ๐ซ12 , โ1 if (๐1 , ๐2 ) โ ๐ซ21 .
We will construct ฮฉ so that every pair in ๐ซ21 is in a 2-cycle with a pair in ๐ซ12 . Furthermore, the remaining fixed points in ๐ซ12 will be exactly the path pairs in ๐ซ which do not intersect. It follows that (2.11) is just the number of nonintersecting path pairs in ๐ซ and therefore must be nonnegative. To define ฮฉ, consider a path pair (๐1 , ๐2 ) โ ๐ซ. If ๐1 โฉ ๐2 is empty, then this pair is in ๐ซ12 , since every pair in ๐ซ21 intersects. So in this case we let ฮฉ(๐1 , ๐2 ) = (๐1 , ๐2 ), a fixed point. If ๐1 โฉ ๐2 โ โ
, then consider the list of intersections ๐ฅ1 , . . . , ๐ฅ๐ก in the order in which they are encountered on ๐1 . We claim they must also be encountered in this order on ๐2 . For if there were intersections ๐ฅ, ๐ฆ such that ๐ฅ comes before ๐ฆ on ๐1 and ๐ฆ ๐1
๐2
comes before ๐ฅ on ๐2 , then one can show that the directed walk ๐ฅ โ ๐ฆ โ ๐ฅ contains a directed cycle, as the reader will be asked to do in the exercises. This contradicts the assumption that ๐ท is acyclic. So there is a well-defined notion of a first intersection Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
58
2. Counting with Signs
๐ฅ = ๐ฅ1 . We now let ฮฉ(๐1 , ๐2 ) = (๐1โฒ , ๐2โฒ ) where ๐1
๐2
๐2
๐1
๐1โฒ = ๐ข1 โ ๐ฅ โ ๐ฃ 2 , ๐2โฒ = ๐ข2 โ ๐ฅ โ ๐ฃ 1 , if (๐1 , ๐2 ) โ ๐ซ12 , and similarly if (๐1 , ๐2 ) โ ๐ซ21 with ๐ฃ 1 and ๐ฃ 2 reversed. An illustration of this map is shown in Figure 2.5. Because the set of intersections in (๐1 , ๐2 ) is the same as in (๐1โฒ , ๐2โฒ ), the first intersection remains the same and this makes ฮฉ an involution. It is also clear from its definition that it changes sign. We have proved the following lemma and corollary. Lemma 2.5.2. Let ๐ท be an acyclic digraph. Let ๐ข1 , ๐ข2 , ๐ฃ 1 , ๐ฃ 2 โ ๐(๐ท) be such that each pair of paths (๐1 , ๐2 ) โ ๐ซ21 intersects. Then | ๐(๐ข1 ; ๐ฃ 1 ) ๐(๐ข1 ; ๐ฃ 2 ) | | | = number of nonintersecting pairs (๐1 , ๐2 ) โ ๐ซ12 . | ๐(๐ข2 ; ๐ฃ 1 ) ๐(๐ข2 ; ๐ฃ 2 ) | โก
In particular, the determinant is nonnegative. Corollary 2.5.3. For ๐ โฅ 0 the sequence ๐ ๐ ๐ ( ), ( ), . . . , ( ) 0 1 ๐ is log-concave.
Lemma 2.5.2 can be extended to ๐ ร ๐ determinants as follows. Let ๐ข1 , . . . , ๐ข๐ and ๐ฃ 1 , . . . , ๐ฃ ๐ be ๐-tuples of distinct vertices in an acyclic digraph. For ๐ โ ๐๐ , we let ๐ซ๐ = {(๐1 , . . . , ๐๐ ) โฃ ๐๐ โถ ๐ข๐ โ ๐ฃ ๐(๐) for all ๐ โ [๐]} and ๐ซ=
โ
๐ซ๐ .
๐โ๐๐
To make ๐ซ into a signed set, recall from abstract algebra that the sign of ๐ โ ๐๐ is sgn ๐ = (โ1)๐โ๐ if ๐ has ๐ cycles in its disjoint cycle decomposition. There are other ways to define sgn ๐, but they are all equivalent. One crucial property of this sign function is that if ๐ด = [๐๐,๐ ] is a matrix, then det ๐ด = โ (sgn ๐)๐1,๐(1) ๐2,๐(2) . . . ๐๐,๐(๐) . ๐โ๐๐
Now if (๐1 , . . . , ๐๐ ) โ ๐ซ๐ , then we let sgn(๐1 , . . . , ๐๐ ) = sgn ๐. To extend the involution ฮฉ, call ๐ = (๐1 , . . . , ๐๐ ) intersecting if there is some pair ๐๐ , ๐๐ which intersects. Given an intersecting ๐, we find the smallest ๐ such that ๐๐ intersects another path of ๐ and let ๐ฅ be the first intersection of ๐๐ with another path. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.6. The Matrix-Tree Theorem
59
Now take the smallest ๐ > ๐ such that ๐๐ goes through ๐ฅ. We now let ฮฉ(๐) = ๐ โฒ where ๐ โฒ is ๐ with ๐๐ , ๐๐ replaced by (2.12)
๐๐
๐๐
๐๐
๐๐
๐๐โฒ
= ๐ข๐ โ ๐ฅ โ ๐ฃ ๐(๐) ,
๐๐โฒ
= ๐ข๐ โ ๐ฅ โ ๐ฃ ๐(๐) ,
respectively. One now needs to check that ฮฉ is a sign-reversing involution. As before, nonintersecting path families ๐ are fixed points of ฮฉ. Modulo the details about ฮฉ, we have now proved the following. Lemma 2.5.4 (LindstrรถmโGessleโViennot). Let ๐ท be an acyclic digraph. Consider two sequences of vertices ๐ข1 , . . . , ๐ข๐ , ๐ฃ 1 , . . . , ๐ฃ ๐ โ ๐(๐ท) such that every ๐ โ ๐ซ๐ is intersecting for ๐ โ id, the identity permutation. We have det[๐(๐ข๐ ; ๐ฃ๐ )]1โค๐,๐โค๐ = number of nonintersecting ๐ โ ๐ซid . โก
In particular, the determinant is nonnegative.
This theorem also has something to say about real sequences. Any sequence ๐0 , . . . , ๐๐ has a corresponding Toeplitz matrix which is the infinite matrix ๐ด = [๐๐โ๐ ]๐,๐โฅ0 . So ๐ โก 0 0 โข ๐ด=โข โข 0 โฃ โฎ
๐1 ๐0 0 โฎ
๐2 ๐1 ๐0 โฎ
โฏ ๐2 ๐1 โฎ
๐๐ โฏ ๐2 โฎ
0 ๐๐ โฏ โฎ
0 0 ๐๐ โฎ
0 ... โค 0 ... โฅ . 0 ... โฅ โฅ โฎ โฎ โฆ
The sequence is called Pรณlya frequency, or PF for short, if every square submatrix of ๐ด has a nonnegative determinant. Notice that, in particular, we get the determinants in (2.10) so that PF implies log-concave. Lemma 2.5.4 can be used to prove that a sequence is PF in much the same way that Lemma 2.5.2 can be used to prove that it is log-concave. The reader should now have no difficulty in proving the following result. Theorem 2.5.5. For ๐ โฅ 0 the sequence ๐ ๐ ๐ ( ), ( ), . . . , ( ) 0 1 ๐ is PF.
โก
2.6. The Matrix-Tree Theorem We end this chapter with another application of determinants. There are many places where these animals abide in enumerative combinatorics and a good survey will be found in the articles of Krattenthaler [54,55]. Here we will be concerned with counting spanning trees using a famous result of Kirchhoff called the Matrix-Tree Theorem. A subgraph ๐ป โ ๐บ is called spanning if ๐(๐ป) = ๐(๐บ). So a spanning subgraph is completely determined by its edge set. A spanning tree ๐ of ๐บ is a spanning subgraph which is a tree. Clearly for a spanning tree to exist, ๐บ must be connected. Let ๐ฎ๐(๐บ) be the set of spanning trees of ๐บ. If one considers the graph ๐บ on the left in Figure 2.6, Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
60
2. Counting with Signs
๐ฃ
๐ ๐
๐
๐ฆ
๐ค
๐
โ
๐ฅ ๐
๐ฃ
๐ค ๐
๐
๐ฆ
โ
๐ฅ
๐
Figure 2.6. A graph ๐บ, its spanning trees, and an orientation
then the list of its eight spanning trees is in the middle of the figure (shrunk to half size so they will fit and without the vertex and edge labels). To develop the tools needed to prove our main theorem, we first need to make some remarks about combinatorial matrices. We will often have occasion to create matrices whose rows and columns are indexed by sets rather than numbers. If ๐, ๐ are sets, then an ๐ ร ๐ matrix ๐ is constructed by giving a linear order to the elements of ๐ and to those of ๐ and using them to index the rows and columns of ๐, respectively. So if (๐ , ๐ก) โ ๐ ร ๐, then ๐๐ ,๐ก is the entry in ๐ in the row indexed by ๐ and the column indexed by ๐ก. The reader may have noted that such a matrix depends not just on ๐, ๐, but also on their linear orderings. However, changing these orderings merely permutes rows and columns in ๐ which will usually have no effect on the information we wish to extract from it. If ๐บ = (๐, ๐ธ) is a graph, then there are several important matrices associated with it. The adjacency matrix of ๐บ is the ๐ ร ๐ matrix ๐ด = ๐ด(๐บ) with ๐๐ฃ,๐ค = {
1 if ๐ฃ๐ค โ ๐ธ, 0 otherwise.
Using the ordering ๐ฃ, ๐ค, ๐ฅ, ๐ฆ, the graph on the left in Figure 2.6 has adjacency matrix
๐ด=
๐ฃ ๐ค ๐ฅ ๐ฆ
โก โข โข โข โฃ
๐ฃ 0 1 1 1
๐ค 1 0 1 0
๐ฅ 1 1 0 1
๐ฆ 1 0 1 0
โค โฅ . โฅ โฅ โฆ
The adjacency matrix is always symmetric since ๐ฃ๐ค and ๐ค๐ฃ denote the same edge. It also has zeros on the diagonal since our graphs are (usually) loopless. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.6. The Matrix-Tree Theorem
61
A second matrix associated with ๐บ is its incidence matrix, ๐ต = ๐ต(๐บ), which is the ๐ ร ๐ธ matrix with entries ๐๐ฃ,๐ = {
1 if ๐ฃ is an endpoint of ๐, 0 otherwise.
Returning to our example, the graph has
๐ต=
๐ฃ ๐ค ๐ฅ ๐ฆ
โก โข โข โข โฃ
๐ 1 1 0 0
๐ 1 0 0 1
๐ 1 0 1 0
โ 0 1 1 0
๐ 0 0 1 1
โค โฅ . โฅ โฅ โฆ
By construction, row ๐ฃ of ๐ต contains deg ๐ฃ ones, and every column contains 2 ones. We will also need the diagonal ๐ ร ๐ matrix ๐ถ(๐บ) which has diagonal entries ๐๐ฃ,๐ฃ = deg ๐ฃ. These three matrices are nicely related. Proposition 2.6.1. For any graph ๐บ we have ๐ต๐ต ๐ก = ๐ด + ๐ถ. Proof. The (๐ฃ, ๐ค) entry of ๐ต๐ต๐ก is the inner product of rows ๐ฃ and ๐ค of ๐ต. If ๐ฃ = ๐ค, then this is, using the notation (1.9), 2 โ ๐๐ฃ,๐ = โ ๐ฟ(๐ฃ is an endpoint of ๐)2 = deg ๐ฃ = ๐๐ฃ,๐ฃ ๐
๐
since 02 = 0 and 12 = 1. Similarly, if ๐ฃ โ ๐ค, then the entry is โ ๐๐ฃ,๐ ๐๐ค,๐ = โ ๐ฟ(๐ฃ is an endpoint of ๐) โ
๐ฟ(๐ค is an endpoint of ๐) ๐
๐
= ๐ฟ(๐ฃ๐ค โ ๐ธ) = ๐๐ฃ,๐ค , โก
which completes the proof.
Interestingly, to compute the number of spanning trees of ๐บ we will have to turn ๐บ into a digraph. An orientation of ๐บ is a digragh ๐ท with ๐(๐ท) = ๐(๐บ) and, for each edge ๐ฃ๐ค โ ๐ธ(๐บ), either the arc ๐ฃ๐ค โ or the arc ๐ค๐ฃ โ in ๐ด(๐ท). In this case ๐บ is called the underlying graph of ๐ท. The digraph on the right in Figure 2.6 is an orientation of our running example graph ๐บ. The adjacency matrix of a digraph is defined just as for graphs and will not concern us here. But we will need the directed incidence matrix, ๐ต = ๐ต(๐ท), defined by
๐๐ฃ,๐ =
โ for some ๐ค, โงโ1 if ๐ = ๐ฃ๐ค 1 if ๐ = ๐ค๐ฃ โ for some ๐ค, โจ 0 otherwise. โฉ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
62
2. Counting with Signs
For the digraph in Figure 2.6 we have
๐ต=
๐ฃ ๐ค ๐ฅ ๐ฆ
โก โข โข โข โฃ
๐ ๐ ๐ โ ๐ โ1 โ1 1 0 0 โค 1 0 0 1 0 โฅ 0 0 โ1 โ1 1 โฅ โฅ 0 1 0 0 โ1 โฆ
.
Here are the two properties of ๐ต(๐ท) which will be important for us. Proposition 2.6.2. Let ๐ท be a digraph and let ๐ต = ๐ต(๐ท). (a) If the rows of ๐ต are ๐1 , . . . , ๐๐ , then ๐1 + โฏ + ๐ ๐ = ๐ where ๐ is the zero vector. (b) If ๐ท is an orientation of a graph ๐บ, then (2.13)
๐ต๐ต ๐ก = ๐ถ(๐บ) โ ๐ด(๐บ).
Proof. For (a), just note that every column of ๐ต contains a single 1 and a single โ1, which will cancel in the sum. The proof of (b) is similar to that for Proposition 2.6.1 and so is left to the reader. โก It is interesting to note that although the matrix ๐ต on the left-hand side of (2.13) depends on ๐ท, the right-hand side only depends on the underlying graph ๐บ. The matrix ๐ฟ(๐บ) = ๐ถ(๐บ) โ ๐ด(๐บ) is called the Laplacian of ๐บ and controls many combinatorial aspects of the graph. Returning to our example, we have 3 โ1 โ1 โ1 โก โค โ1 2 โ1 0 โฅ โข ๐ฟ(๐บ) = โข . 3 โ1 โฅ โข โ1 โ1 โฅ 0 โ1 2 โฆ โฃ โ1 Note that the sum of the rows of ๐ฟ = ๐ฟ(๐บ) is zero since, for all ๐ฃ โ ๐, column ๐ฃ contains deg ๐ฃ on the diagonal and then deg ๐ฃ other nonzero entries which are all โ1. So det ๐ฟ = 0. But removing the last row and column of the previous displayed matrix and taking the determinant gives 3 โ1 โ1 2 โ1 ] = 8. det[ โ1 โ1 โ1 3 The reader may recall that 8 was also the number of spanning trees of ๐บ. This is not a coincidence! But before we can prove the implied theorem, we need one more result. Let ๐ be an ๐ ร ๐ matrix and let ๐ผ โ ๐ and ๐ฝ โ ๐. Let ๐๐ผ,๐ฝ denote the submatrix of ๐ whose rows are indexed by ๐ผ and columns by ๐ฝ. In ๐ต(๐บ) for our example graph ๐บ with ๐ผ = {๐ฃ, ๐ฅ} and ๐ฝ = {๐, ๐, ๐} we would have ๐ต๐ผ,๐ฝ = [
1 0
1 1
0 ]. 1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
2.6. The Matrix-Tree Theorem
63
If ๐ผ = ๐โ{๐ } for some ๐ โ ๐ and ๐ฝ = ๐ โ{๐ก} for some ๐ก โ ๐, then we use the abbreviation ๐๐ ,ฬ ๐ก ฬ for ๐๐ผ,๐ฝ . In this case when ๐ = ๐ = [๐], the (๐, ๐) cofactor of ๐ is ๐๐,ฬ ๐ ฬ = (โ1)๐+๐ det ๐๐,ฬ ๐ .ฬ We will need the following famous result about determinants called the Cauchyโ Binet Theorem. Since this is really a statement about linear algebra rather than combinatorics, we will just outline a proof in the exercises. Theorem 2.6.3 (CauchyโBinet Theorem). Let ๐ be an [๐] ร [๐] matrix and let ๐
be [๐] ร [๐]. Then det ๐๐
=
โ det ๐ [๐],๐พ โ
det ๐
๐พ,[๐] . ๐พโ([๐] ) ๐
โก
Note that in the special case ๐ = ๐ this reduces to the well-known statement that det ๐๐
= det ๐ โ
det ๐
. Theorem 2.6.4 (Matrix-Tree Theorem). Let ๐บ be a graph with ๐ = [๐], ๐ธ = [๐], and let ๐ฟ = ๐ฟ(๐บ). We have for any ๐, ๐ โ [๐] #๐ฎ๐(๐บ) = โ๐,ฬ ๐ .ฬ Proof. We will do the case when ๐ = ๐ = ๐ as the other cases are similar. So โ๐,ฬ ๐ฬ = (โ1)๐+๐ det ๐ฟ๐,ฬ ๐ฬ = det ๐ฟ๐,ฬ ๐ฬ . Let ๐ท be any orientation of ๐บ and ๐ต = ๐ต(๐ท). By Proposition 2.6.2(b), we have that ๐ฟ = ๐ถ(๐บ) โ ๐ด(๐บ) = ๐ต๐ต ๐ก . It follows that ๐ฟ๐,ฬ ๐ฬ = ๐ต๐ ,๐ธ (๐ต๐ ,๐ธ )๐ก where ๐ = [๐ โ 1]. Applying the CauchyโBinet Theorem we get โ๐,ฬ ๐ฬ =
โ det ๐ต๐ ,๐น โ
det(๐ต๐ ,๐น )๐ก = โ (det ๐ต๐ ,๐น )2 . ๐ธ ๐ธ ๐นโ(๐โ1 ๐นโ(๐โ1 ) )
So the theorem will be proved if we can show that (2.14)
det ๐ต๐ ,๐น = {
ยฑ1 0
if the edges of ๐น are a spanning tree of ๐บ, otherwise.
Note that ๐ต๐ ,๐น is the incidence matrix of the digraph ๐ท๐น having ๐(๐ท๐น ) = ๐ and ๐ด(๐ท๐น ) = ๐น but with the row of vertex ๐ removed. We say that ๐ท๐น is a tree if its underlying graph is one. We first consider the case when ๐ท๐น is not a tree. We know #๐น = ๐ โ 1 so, by Theorem 1.10.2, ๐ท๐น must be disconnected. Thus there is a component of ๐ท๐น not containing the vertex ๐. And the sum of the row vectors of ๐ต๐ ,๐น corresponding to that component is ๐ by Proposition 2.6.2(a). Thus det ๐ต๐ ,๐น = 0 in this case. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
64
2. Counting with Signs
Now suppose that ๐ท๐น is a tree. To prove this case of (2.14), it suffices to permute the rows and columns of ๐ต๐ ,๐น so that the matrix becomes lower triangular with ยฑ1 on the diagonal. Such a permutation corresponds to a relabeling of the vertices and edges of ๐ท๐น . If ๐ = 1, then ๐ต๐ ,๐น is the empty matrix which has determinant 1. If ๐ > 1, then, by Lemma 1.10.1, ๐ท๐น has at least two leaves. So in particular there is a leaf in ๐ = [๐ โ 1]. By relabeling ๐ท๐น we can assume that ๐ฃ = 1 is the leaf and ๐ = 1 is the sole arc containing ๐ฃ. It follows that the first row of ๐ต๐ ,๐น has ยฑ1 in the (1, 1) position and zeros elsewhere. Now we consider ๐ท๐น โ ๐ฃ and recurse to finish constructing the matrix. โก We can use this theorem to rederive Cayleyโs result, Theorem 1.10.3, enumerating all trees on a given vertex set. To do so, consider the complete graph ๐พ๐ with vertex set ๐ = [๐]. Clearly the number of trees on ๐ vertices is the same as the number of spanning trees of ๐พ๐ . The Laplacian ๐ฟ(๐พ๐ ) consists of ๐ โ 1 down the diagonal with โ1 everywhere else. So ๐ฟ๐,ฬ ๐ฬ is the same matrix but with dimensions (๐ โ 1) ร (๐ โ 1). Add all the rows of this matrix to the first row. The result is a first row which is all ones since every column consists of an ๐ โ 1 as well as ๐ โ 2 minus ones in some order. Next add the first row to each of the other rows. This will cancel all the minus ones in those rows as well as changing each diagonal entry from ๐ โ 1 to ๐. Now the matrix is upper triangular and, since elementary row operations do not change the determinant, we have that โ๐,ฬ ๐ฬ is the product of the diagonal entries which consist of a one and ๐ โ 2 copies of ๐. Cayleyโs Theorem follows.
Exercises (1) Let ๐ be a positive integer and let ๐1 , . . . , ๐ ๐ be distinct primes. Prove that the number of integers between 1 and ๐ not divisible by any of the ๐ ๐ is ๐โ โ โ 1โค๐โค๐
๐ ๐ ๐ โ โ โฏ + (โ1)๐ โ โ+ โ โ โ. ๐๐ ๐ ๐ ๐ ๐ . . . ๐๐ ๐ ๐ 1 2 1โค๐ ๐. For example [
[4]! 4 ]= 2 [2]! [2]! =
[4][3] [2][1]
=
(1 + ๐ + ๐2 + ๐3 )(1 + ๐ + ๐2 ) (1 + ๐)
= 1 + ๐ + 2๐2 + ๐3 + ๐4 .
(3.5)
It is not at all clear from the definition just given that this is actually a polynomial in ๐ rather than just a rational function. But this follows easily using induction and our next result. Note that this theorem gives two ๐-analogues for the ordinary binomial recursion. This illustrates a general principle that ๐-analogues are not necessarily unique as we have also seen in the inv and maj interpretations of [๐]๐ !. Theorem 3.2.3. We have [
0 ] = ๐ฟ0,๐ ๐ ๐
and, for ๐ โฅ 1, [
๐ ๐โ1 ๐โ1 ] = ๐๐ [ ] +[ ] ๐ ๐ ๐ ๐โ1 ๐ ๐ =[
๐โ1 ๐โ1 ] + ๐๐โ๐ [ ] . ๐ ๐โ1 ๐ ๐
Proof. The initial condition is trivial. We will prove the first recursion for the ๐binomial, leaving the other as an exercise. Using the definition in terms of ๐-factorials and finding a common denominator gives ๐๐ [
[๐ โ 1]! ๐โ1 ๐โ1 ]+[ ]= (๐๐ [๐ โ ๐] + [๐]) ๐ ๐โ1 [๐]! [๐ โ ๐]! =
[๐ โ 1]! โ
[๐] [๐]! [๐ โ ๐]!
=[
๐ ] ๐
as desired. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
78
3. Counting with Ordinary Generating Functions
Figure 3.1. The Young diagrams for (5, 5, 2, 1) โ (3, 2, 2)
We will now give a ๐-analogue of the Binomial Theorem (Theorem 3.1.1). Let ๐, ๐ก be two variables. Theorem 3.2.4. For ๐ โฅ 0 we have ๐
๐ ๐ (1 + ๐ก)(1 + ๐๐ก)(1 + ๐2 ๐ก) โฏ (1 + ๐๐โ1 ๐ก) = โ ๐( 2 ) [ ] ๐ก๐ . ๐ ๐=0 ๐
(3.6)
Proof. We will induct on ๐ where the case ๐ = 0 is easy to check. For ๐ > 0 we can use the second recursion in the previous result and the induction hypothesis to write โ ๐( 2 ) [ ๐
๐
๐ ๐ ๐ ๐โ1 ๐โ1 ] ๐ก ๐ = โ ๐( 2 ) [ ] ๐ก๐ + โ ๐( 2 )+๐โ๐ [ ] ๐ก๐ ๐ ๐ ๐ ๐โ1 ๐ ๐ ๐ ๐
๐โ1 ๐โ1 = (1 + ๐ก)(1 + ๐๐ก) โฏ (1 + ๐๐โ2 ๐ก) + ๐๐โ1 ๐ก โ ๐( 2 ) [ ] ๐ก๐โ1 ๐ โ 1 ๐ ๐
= (1 + ๐ก)(1 + ๐๐ก) โฏ (1 + ๐๐โ2 ๐ก) + ๐๐โ1 ๐ก(1 + ๐ก)(1 + ๐๐ก) โฏ (1 + ๐๐โ2 ๐ก) = (1 + ๐ก)(1 + ๐๐ก) โฏ (1 + ๐๐โ1 ๐ก), which is what we wished to prove.
โก
There are many combinatorial interpretations of the ๐-binomial coefficients. We will content ourselves with presenting two of them here. If ๐ = (๐1 , . . . , ๐๐ ) and ๐ = (๐1 , . . . , ๐๐ ) are integer partitions, then we say that ๐ contains ๐, written ๐ โ ๐, if ๐ โฅ ๐ and ๐๐ โฅ ๐๐ for ๐ โค ๐. Equivalently, the Young diagram of ๐ contains the Young diagram of ๐ if they are placed so that their northwest corners align. As an example, (5, 5, 2, 1) โ (3, 2, 2) and Figure 3.1 shows the diagram of ๐ with the squares of ๐ shaded inside. The notation ๐ โ ๐ should be self-explanatory. Given ๐ โ ๐, one also has the corresponding skew partition (3.7)
๐/๐ = {(๐, ๐) โ ๐ โฃ (๐, ๐) โ ๐}.
The cells of the skew partition in Figure 3.1 are white. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.2. Statistics and ๐-analogues
79
The ๐ ร ๐ rectangle is the integer partition whose multiplicity notation is (๐๐ ). Consider the set of partitions contained in this rectangle โ(๐, ๐) = {๐ โฃ ๐ โ (๐๐ )}. Recalling that |๐| is the sum of the parts of ๐, we consider the generating function โ๐โโ(๐,๐) ๐|๐| . For example, if ๐ = ๐ = 2, then we have ๐ โ (22 ) ๐|๐|
โ
1
(1) ๐
(2) ๐2
(12 ) ๐2
(2, 1) ๐3
(22 ) , ๐4
which gives ๐|๐| = 1 + ๐ + 2๐2 + ๐3 + ๐4 .
โ ๐โโ(2,2)
The reader will have noticed the similarity to (3.5), which is not an accident. Theorem 3.2.5. For ๐, ๐ โฅ 0 we have ๐|๐| = [
โ ๐โโ(๐,๐)
๐+๐ ] . ๐ ๐
Proof. We induct on ๐ where the case ๐ = 0 is left to the reader. If ๐ > 0 and ๐ โ (๐๐ ), then there are two possibilities. Either ๐1 < ๐ in which case ๐ โ ((๐ โ 1)๐ ) or ๐1 = ๐ so that ๐ can be written as ๐ = (๐, ๐โฒ ) where ๐โฒ is the partition containing the parts of ๐ other than ๐1 . So ๐โฒ โ (๐๐โ1 ). Notice that in this case |๐| = |๐โฒ | + ๐. We now use induction and Theorem 3.2.3 to obtain โ
๐|๐| =
๐โโ(๐,๐)
โ
๐|๐| +
๐โโ(๐โ1,๐)
โ
โฒ
๐|๐ |+๐
๐โฒ โโ(๐,๐โ1)
=[
๐+๐โ1 ๐+๐โ1 ] + ๐๐ [ ] ๐โ1 ๐
=[
๐+๐ ], ๐ โก
which finishes the proof.
For our second combinatorial interpretation of the Gaussian polynomials we will need some linear algebra. Let ๐ be a prime power and let ๐ฝ๐ be the Galois field with ๐ elements. Let ๐ be a vector space of dimension dim ๐ = ๐ over ๐ฝ๐ . We will use ๐ โค ๐ to indicate that ๐ is a subspace of ๐. Let [
๐ ] = {๐ โค ๐ โฃ dim ๐ = ๐}. ๐
The subspaces of dimension ๐ are in bijective correspondence with ๐ ร ๐ row-reduced echelon matrices of full rank, that is, with no zero rows. For example, if ๐ = 4 and Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
80
3. Counting with Ordinary Generating Functions
๐ = 2, then the possible matrices are [
0 0 0 0
1 0
0 0 1 ], [ 1 0 0
โ 0
0 0 1 ], [ 1 0 0
0 1
โ ], โ
[
1 0
โ 0 1 โ ], [ 0 1 0 0
0 1
โ 1 ], [ โ 0
โ โ
โ ], โ
โ 0
0 1
where the stars represent arbitrary elements of ๐ฝ๐ . So the number of subspaces corresponding to one of these star diagrams is ๐๐ where ๐ is the number of stars. Thus #[
๐ฝ4๐ ] = 1 + ๐ + 2๐2 + ๐3 + ๐4 , 2
which should look very familiar at this point! Note however that, in contrast to previous cases, this actually represents an integer rather than a polynomial since ๐ is a prime power. Of course, this example generalizes. Because of this result people sometimes talk half-jokingly about sets being vector spaces over the (nonexistent) Galois field with one element. Theorem 3.2.6. If ๐ is a vector space over ๐ฝ๐ of dimension ๐, then #[
๐ ๐ ]=[ ] . ๐ ๐ ๐
Proof. Given ๐ โค ๐ with dim ๐ = ๐, we first count the number of possible ordered bases (๐ฏ1 , ๐ฏ2 , . . . , ๐ฏ๐ ) for ๐. Note that since dim ๐ = ๐ we have #๐ = #๐ฝ๐๐ = ๐๐ . We can pick any nonzero vector for ๐ฏ1 so the number of choices is ๐๐ โ 1. For ๐ฏ2 we can choose any vector in ๐ which is not in the span of ๐ฏ1 , which gives ๐๐ โ ๐ possibilities. Continuing in this way, the total count will be (๐๐ โ 1)(๐๐ โ ๐)(๐๐ โ ๐2 ) . . . (๐๐ โ ๐๐โ1 ). By a similar argument, the number of different ordered bases which span a given ๐ of dimension ๐ is (๐๐ โ 1)(๐๐ โ ๐)(๐๐ โ ๐2 ) . . . (๐๐ โ ๐๐โ1 ). So the number of possible ๐โs is ๐ (๐๐ โ 1)(๐๐ โ ๐) . . . (๐๐ โ ๐๐โ1 ) ๐( 2 ) (๐๐ โ 1)(๐๐โ1 โ 1) . . . (๐๐โ๐+1 โ 1) = ๐ (๐๐ โ 1)(๐๐ โ ๐) . . . (๐๐ โ ๐๐โ1 ) ๐( 2 ) (๐๐ โ 1)(๐๐โ1 โ 1) . . . (๐ โ 1)
=
(๐ โ 1)๐ [๐][๐ โ 1] . . . [๐ โ ๐ + 1] (๐ โ 1)๐ [๐][๐ โ 1] . . . [1]
=[
๐ ], ๐
as advertised. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
3.3. The algebra of formal power series
81
There is a beautiful proof of this result due to Knuth [50] using row-reduced echelon matrices as in the previous example. The reader will be asked to supply the details in the exercises.
3.3. The algebra of formal power series We now wish to generalize the concept of generating function from finite to countably infinite sequences. To do so, we will have to use power series. But we wish to avoid the questions of convergence which come up when using analytic power series. Instead, we will work in the algebra of formal power series. This will mean that we have to be careful since, in an algebra, one is only permitted to apply an operation like addition or multiplication a finite number of times. But there is another concept of convergence which will take care of this issue. We should note that there is a whole branch of combinatorics which uses analytic techniques to extract useful information about a sequence, such as its rate of growth, from the corresponding power series. For information about this approach, see the book of Flajolet and Sedgewick [25]. A formal power series is an expression of the form โ
๐(๐ฅ) = ๐0 + ๐1 ๐ฅ + ๐2 ๐ฅ2 + โฏ = โ ๐๐ ๐ฅ๐ , ๐=0
where the ๐๐ are complex numbers. We also say that ๐(๐ฅ) is the ordinary generating function or ogf for the sequence ๐๐ , ๐ โฅ 0. Often we will leave out the adjective โordinaryโ in this chapter since we will not have met any other type of generating function yet. Note that these series are considered formal in the sense that the powers of ๐ฅ are just place holders and we are not permitted to substitute a value for ๐ฅ. Because of this rule, analytic convergence is not an issue and we can happily talk about formal power series such as โ๐โฅ0 ๐! ๐ฅ๐ which converge nowhere except at ๐ฅ = 0. We will use the notation โ[[๐ฅ]] = { โ ๐๐ ๐ฅ๐ โฃ ๐๐ โ โ for all ๐ โฅ 0} . ๐โฅ0
The set is an algebra, the algebra of formal power series, under the three operations of addition, scalar multiplication, and multiplication defined by โ ๐๐ ๐ฅ๐ + โ ๐๐ ๐ฅ๐ = โ (๐๐ + ๐๐ )๐ฅ๐ , ๐โฅ0
๐โฅ0
๐โฅ0
๐ โ ๐๐ ๐ฅ๐ = โ (๐๐๐ )๐ฅ๐ , ๐โฅ0
๐โฅ0
โ ๐๐ ๐ฅ๐ โ
โ ๐๐ ๐ฅ๐ = โ ๐๐ ๐ฅ๐ , ๐โฅ0
where ๐ โ โ and
๐โฅ0
๐โฅ0 ๐
๐๐ = โ ๐๐ ๐๐โ๐ . ๐=0
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
82
3. Counting with Ordinary Generating Functions
The reader may object that, as mentioned earlier, in an algebra one is only permitted a finite number of additions yet the very elements of โ[[๐ฅ]] seem to involve infinitely many. But this is an illusion. Remember that ๐ฅ is a formal parameter so that the expression โ๐ ๐๐ ๐ฅ๐ is only meant to be a mnemonic device which gives intuition to the definitions of the three algebra operations, especially that of multiplication. We could just as easily have defined โ[[๐ฅ]] to be the set of all complex vectors (๐0 , ๐1 , ๐2 , . . . ) subject to the operation of vector addition (๐0 , ๐1 , ๐2 , . . . ) + (๐0 , ๐1 , ๐2 , . . . ) = (๐0 + ๐0 , ๐1 + ๐1 , ๐2 + ๐2 , . . . ) and similarly for the other two. What is true is that one is only permitted to add or multiply a finite number of elements of โ[[๐ฅ]]. So one can only perform operations which will alter the coefficient of a given power of ๐ฅ a finite number of times. Now given a sequence of complex numbers ๐0 , ๐1 , ๐2 , . . . , we associate with it the ordinary generating function ๐(๐ฅ) = ๐0 + ๐1 ๐ฅ + ๐2 ๐ฅ2 + โฏ โ โ[[๐ฅ]]. We will sometimes say that this series counts the objects enumerated by the ๐๐ if appropriate. As with generating polynomials, the reason for doing so is to exploit properties of โ[[๐ฅ]] to obtain information about the original sequence. We will often write this generating function as โ๐ ๐๐ ๐ฅ๐ , assuming the that range of indices is ๐ โฅ 0. Let us start with a simple example. Consider the sequence 1, 1, 1, . . . with generating function โ๐ ๐ฅ๐ . We would like to simplify this as a geometric series to (3.8)
1 + ๐ฅ + ๐ฅ2 + โฏ =
1 . 1โ๐ฅ
But what does the right-hand side even mean since 1/(1 โ ๐ฅ) appears to be a rational function and so not an element of โ[[๐ฅ]]? The way out of this conundrum is to remember that given an element ๐ in an algebra ๐ด, it is possible for ๐ to have an inverse, namely an element ๐โ1 such that ๐ โ
๐โ1 = 1 where 1 is the identity element of ๐ด. So to prove (3.8) in this setting we must show that โ๐ ๐ฅ๐ and 1 โ ๐ฅ are inverses. This is easily done by using the distributive law: (1 โ ๐ฅ)(1 + ๐ฅ + ๐ฅ2 + โฏ) = (1 + ๐ฅ + ๐ฅ2 + โฏ) โ ๐ฅ(1 + ๐ฅ + ๐ฅ2 + โฏ) = (1 + ๐ฅ + ๐ฅ2 + โฏ) โ (๐ฅ + ๐ฅ2 + ๐ฅ3 + โฏ) = 1. This example illustrates a general principle that often well-known results about analytic power series carry over to their formal counterparts, although some work may be required to check that this is true. For the most part, we will assume the truth of a standard formula in this setting without further comment. But it would be wise to also give a couple of examples to show that caution may be needed. One illustration is that the expression 1/๐ฅ has no meaning in โ[[๐ฅ]] because ๐ฅ does not have an inverse. For suppose we have ๐ฅ๐(๐ฅ) = 1 for some formal power series ๐(๐ฅ). Then on the left-hand side the constant coefficient is 0 while on the right it is 1, a contradiction. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.3. The algebra of formal power series
83
As another example, consider the sequence 1/๐! for ๐ โฅ 0. We would like to write ๐ฅ๐ ๐! ๐โฅ0
๐๐ฅ = โ
for the corresponding generating function but, again, run into the problem that ๐๐ฅ is not a priori an element of โ[[๐ฅ]]. The solution this time is to define ๐๐ฅ to be a formal symbol which stands for this power series. Then, of course, to be complete we would need to verify formally that all the usual rules of exponents hold such as ๐2๐ฅ = (๐๐ฅ )2 . We will not take the time to do this. But we will point out a case where the rules do not hold. In particular, in โ[[๐ฅ]] one cannot write ๐1+๐ฅ = ๐๐๐ฅ . This is because the left-hand side is not well-defined. Indeed, when expanding โ๐ (1 + ๐ฅ)๐ /๐! there are infinitely many additions needed to compute the coefficient of any given power of ๐ฅ which, as we have already noted, is not permitted. Although we will not verify every specific analytic identity needed for formal power series in this text, it would be good to have some general results about which operations are permitted in โ[[๐ฅ]]. First we deal with the issue of when a formal power series is invertible. Theorem 3.3.1. If ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ , then ๐(๐ฅ)โ1 exists in โ[[๐ฅ]] if and only if ๐0 โ 0. Proof. For the forward direction, suppose ๐(๐ฅ)๐(๐ฅ) = 1 where ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ . Taking the constant coefficient on both sides gives ๐0 ๐0 = 1. So ๐0 โ 0. Now assume ๐0 โ 0. We will construct an inverse ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ . We want ๐(๐ฅ)๐(๐ฅ) = 1. Comparing coefficients of ๐ฅ๐ on both sides we see that we wish to have ๐0 ๐0 = 1 and, for ๐ โฅ 1, ๐0 ๐๐ + ๐1 ๐๐โ1 + โฏ + ๐๐ ๐0 = 0. Since ๐0 โ 0 we can take ๐0 = 1/๐0 . By the same token, when ๐ โฅ 1 we can solve for ๐๐ in the previous displayed equation giving a recursive formula for its value. Thus we can construct such a ๐(๐ฅ) and are done. โก Our example with ๐๐ฅ shows that we also need to be careful about substitution. We wish to define the substitution of ๐(๐ฅ) into ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ to be ๐(๐(๐ฅ)) = โ ๐๐ ๐(๐ฅ)๐ . ๐โฅ0
But now the right-hand side is an infinite sum of formal power series, not just formal variables. To be able to talk about such sums, we need to introduce a notion of convergence in โ[[๐ฅ]]. It will be convenient to have the notation that for a formal power series ๐(๐ฅ) [๐ฅ๐ ]๐(๐ฅ) = the coefficient of ๐ฅ๐ in ๐(๐ฅ), which we have usually been calling ๐๐ . Suppose that we have a sequence ๐0 (๐ฅ), ๐1 (๐ฅ), ๐2 (๐ฅ), . . . of formal power series. We say that this sequence converges to ๐(๐ฅ) โ โ[[๐ฅ]] Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
84
3. Counting with Ordinary Generating Functions
and write lim ๐๐ (๐ฅ) = ๐(๐ฅ),
๐โโ
if, for any ๐, the coefficient of ๐ฅ๐ in the sequence is eventually constant and equals the coefficient of ๐ฅ๐ in ๐(๐ฅ). Formally, given ๐, there exists a corresponding ๐พ such that [๐ฅ๐ ]๐๐ (๐ฅ) = [๐ฅ๐ ]๐(๐ฅ) for all ๐ โฅ ๐พ. Otherwise we say that the sequence diverges or that the limit does not exist. As an illustration, consider the sequence ๐0 (๐ฅ) = 1, ๐1 (๐ฅ) = 1 + ๐ฅ, ๐2 (๐ฅ) = 1 + ๐ฅ + ๐ฅ2 , . . . so that ๐๐ (๐ฅ) = 1 + ๐ฅ + โฏ + ๐ฅ๐ . Then this sequence has a limit; namely lim ๐๐ (๐ฅ) = โ ๐ฅ๐ =
๐โโ
๐โฅ0
1 . 1โ๐ฅ
To prove this, note that given ๐ we can let ๐พ = ๐. So for ๐ โฅ ๐ we have [๐ฅ๐ ]๐๐ = [๐ฅ๐ ]๐๐ = 1. On the other hand, consider the sequence ๐0 (๐ฅ) = 1 + ๐ฅ, ๐1 (๐ฅ) = 1/2 + ๐ฅ/2, ๐2 (๐ฅ) = 1/4 + ๐ฅ/4, . . . and in general ๐๐ (๐ฅ) = 1/2๐ + ๐ฅ/2๐ . This sequence does not converge in โ[[๐ฅ]] since for any ๐ we have that [๐ฅ]๐๐ (๐ฅ) is always different for different ๐. This is in contrast to the analytic situation where this sequence converges to zero. As in analysis, we now use convergence of sequences to define convergence of series. Given ๐0 (๐ฅ), ๐1 (๐ฅ), ๐2 (๐ฅ), . . . , we say that their sum exists and converges to ๐(๐ฅ), written โ๐โฅ0 ๐๐ (๐ฅ) = ๐(๐ฅ), if lim ๐ ๐ (๐ฅ) = ๐(๐ฅ)
๐โโ
where (3.9)
๐ ๐ (๐ฅ) = ๐0 (๐ฅ) + ๐1 (๐ฅ) + โฏ + ๐๐ (๐ฅ)
is the ๐th partial sum. Divergence is defined as expected. Note that this definition is consistent with our notation for formal power series since given a sequence ๐0 , ๐1 , ๐2 , . . . , we can let ๐๐ (๐ฅ) = ๐๐ ๐ฅ๐ and then prove that โ๐โฅ0 ๐๐ (๐ฅ) = ๐(๐ฅ) where ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ . To state a criterion for convergence of series, it will be useful to define the minimum degree of ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ to be mdeg ๐(๐ฅ) = smallest ๐ such that ๐๐ โ 0 if ๐(๐ฅ) โ 0, and let mdeg ๐(๐ฅ) = โ if ๐(๐ฅ) = 0. It turns out that to show a sum of power series converges, it suffices to take a limit of integers. Theorem 3.3.2. Given ๐0 (๐ฅ), ๐1 (๐ฅ), ๐2 (๐ฅ), . . . โ โ[[๐ฅ]], then โ๐โฅ0 ๐๐ (๐ฅ) exists if and only if lim (mdeg ๐๐ (๐ฅ)) = โ.
๐โโ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.3. The algebra of formal power series
85
Proof. We will prove the forward direction, leaving the other implication as an exercise. We are given that the sequence ๐ ๐ (๐ฅ) as defined by (3.9) converges. So given ๐, there is a ๐พ such that [๐ฅ๐ ]๐ ๐พ (๐ฅ) = [๐ฅ๐ ]๐ ๐พ+1 (๐ฅ) = [๐ฅ๐ ]๐ ๐พ+2 (๐ฅ) = โฏ . But for ๐ โฅ 0 we have ๐ ๐พ+๐ (๐ฅ) = ๐ ๐พ (๐ฅ) + ๐๐พ+1 (๐ฅ) + ๐๐พ+2 (๐ฅ) + โฏ + ๐๐พ+๐ (๐ฅ). It follows that [๐ฅ๐ ]๐๐ (๐ฅ) = 0 for ๐ > ๐พ. Now given ๐, take ๐ to be the maximum of all the ๐พ-values associated to integers less than or equal to ๐. From what we have shown, this forces mdeg ๐๐ (๐ฅ) > ๐ for ๐ > ๐. But by definition of a limit of real numbers, this means lim๐โโ (mdeg ๐๐ (๐ฅ)) = โ. โก We are now on a firm footing with our definition of substitution as we know what it means for a sum of power series to converge. We can use the previous result to give a simple criterion for convergence when substituting one generating function into another. Theorem 3.3.3. Given ๐(๐ฅ), ๐(๐ฅ) โ โ[[๐ฅ]], then the composition ๐(๐(๐ฅ)) exists if and only if (1) ๐(๐ฅ) is a polynomial or (2) ๐(๐ฅ) has zero constant term. Proof. If ๐(๐ฅ) is a polynomial, then ๐(๐(๐ฅ)) is a finite sum and so obviously converges. So assume ๐(๐ฅ) = โ๐ ๐๐ ๐ฅ๐ is not polynomial. If ๐(๐ฅ) has no constant term, we have mdeg ๐๐ ๐(๐ฅ)๐ โฅ ๐. So the limit in the previous theorem is infinity and ๐(๐(๐ฅ)) is well-defined. To finish the proof, consider the remaining case where [๐ฅ0 ]๐(๐ฅ) โ 0. Since ๐(๐ฅ) is not a polynomial, there are an infinite number of ๐ such that ๐๐ โ 0. But for these ๐ we have mdeg ๐๐ ๐(๐ฅ)๐ = 0. So the desired limit cannot be infinity and ๐(๐(๐ฅ)) does not exist in โ[[๐ฅ]]. โก We will also find it useful to consider certain infinite products. We approach their convergence just as we did for infinite sums. Given a sequence ๐0 (๐ฅ), ๐1 (๐ฅ), ๐2 (๐ฅ), . . . , we say that their product exists and converges to ๐(๐ฅ), written โ๐โฅ0 ๐๐ (๐ฅ) = ๐(๐ฅ), if lim ๐ ๐ (๐ฅ) = ๐(๐ฅ)
๐โโ
where ๐ ๐ (๐ฅ) = ๐0 (๐ฅ)๐1 (๐ฅ) . . . ๐๐ (๐ฅ). We have the following result whose proof is similar enough to that of Theorem 3.3.2 that we will leave it to the reader. Theorem 3.3.4. Let ๐0 (๐ฅ), ๐1 (๐ฅ), ๐2 (๐ฅ), . . . be power series with zero constant terms. Then โ๐โฅ0 (1 + ๐๐ (๐ฅ)) exists if and only if lim (mdeg ๐๐ (๐ฅ)) = โ.
๐โโ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
86
3. Counting with Ordinary Generating Functions
Let us end this section by showing how the previous result can give simple verifications that a product does or does not exist. Consider โ๐โฅ1 (1 + ๐ฅ๐ ). In this case ๐๐ (๐ฅ) = ๐ฅ๐ and mdeg ๐ฅ๐ = ๐. So the desired limit is infinity and this product exists. As we will see in Section 3.5, it counts integer partitions with distinct parts. By contrast, the product โ๐โฅ0 (1 + ๐ฅ/2๐ ) does not converge since mdeg ๐ฅ/2๐ = 1.
3.4. The Sum and Product Rules for ogfs Just as for sets there is a Sum Rule and a Product Rule for ordinary generating functions. In order to state these results, we need the idea of a weight-generating function. This approach makes it possible to construct generating functions for various sequences in a very combinatorial manner. As a first application, we make a more deep exploration of the Binomial Theorem. Let ๐ be a set. Then a weighting of ๐ is a function wt โถ ๐ โ โ[[๐ฅ]]. Most often if ๐ โ ๐, then wt ๐ will just be a monomial reflecting some property of ๐ . For example, if st is any statistic on ๐, then we could take wt ๐ = ๐ฅst ๐ . For a more concrete illustration which we will continue to use throughout this section, let ๐ = 2[๐] and define for ๐ โ ๐ wt ๐ = ๐ฅ|๐| .
(3.10)
Given a weighted set ๐, we can form the corresponding weight-generating function ๐(๐ฅ) = ๐๐ (๐ฅ) = โ wt ๐ . ๐ โ๐
We must be careful that this sum exists in โ[[๐ฅ]], and if it does, then we say ๐ is a summable set. Of course, when ๐ is finite then it is automatically summable. To illustrate for ๐ = 2[3] we have ๐
โ
{1}
{2}
{3}
{1, 2}
{1, 3}
{2, 3}
{1, 2, 3}
wt ๐
1
๐ฅ
๐ฅ
๐ฅ
๐ฅ2
๐ฅ2
๐ฅ2
๐ฅ3
so that ๐๐ (๐ฅ) = 1 + 3๐ฅ + 3๐ฅ2 + ๐ฅ3 . More generally, for ๐ = 2[๐] we have ๐๐ (๐ฅ) = โ ๐ฅ|๐| ๐โ2[๐] ๐
= โ
โ ๐ฅ๐
๐=0 ๐โ([๐]) ๐ ๐
๐ = โ ( )๐ฅ๐ ๐ ๐=0 and we have recovered the generating function for a row of Pascalโs triangle. The following theorem will permit us to manipulate weight-generating functions with ease. For the Sum Rule, if ๐, ๐ are disjoint weighted sets, then we weight ๐ข โ ๐ โ๐ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.4. The Sum and Product Rules for ogfs
87
using ๐ขโs weight in ๐ or in ๐ depending on whether ๐ข โ ๐ or ๐ข โ ๐, respectively. For arbitrary ๐, ๐ we weight ๐ ร ๐ by letting wt(๐ , ๐ก) = wt ๐ โ
wt ๐ก. Lemma 3.4.1. Let ๐, ๐ be summable sets. (a) (Sum Rule) The set ๐ โช ๐ is summable. If ๐ โฉ ๐ = โ
, then ๐๐โ๐ (๐ฅ) = ๐๐ (๐ฅ) + ๐๐ (๐ฅ). (b) (Product Rule) The set ๐ ร ๐ is summable and ๐๐ร๐ (๐ฅ) = ๐๐ (๐ฅ) โ
๐๐ (๐ฅ). Proof. (a) Since ๐ is summable, given any ๐ โ โ, there are only a finite number of ๐ โ ๐ such that wt ๐ has a nonzero coefficient of ๐ฅ๐ . And the same is true of ๐. It follows that only finitely many elements of ๐ โช ๐ have such a coefficient, which mean this set is summable. To prove the desired equality, we compute as follows: ๐๐โ๐ (๐ฅ) = โ wt ๐ข = โ wt ๐ข + โ wt ๐ข = ๐๐ (๐ฅ) + ๐๐ (๐ฅ). แตโ๐โ๐
แตโ๐
แตโ๐
(b) The statement about summability of ๐ ร ๐ is safely left as an exercise. Computing the weight-generating function gives ๐๐ร๐ (๐ฅ) =
โ
wt(๐ , ๐ก) = โ wt ๐ โ
โ wt ๐ก = ๐๐ (๐ฅ) โ
๐๐ (๐ฅ), ๐ โ๐
(๐ ,๐ก)โ๐ร๐
๐กโ๐
โก
so we are done.
We can now use these rules to derive various generating functions in a straightforward manner. We begin by reproving the Binomial Theorem as stated in Theorem 3.1.1. We have already seen that the summation side is the weight-generating function for ๐ = 2[๐] . For the product side, it will be useful to reformulate ๐ in terms of multiplicity notation. Specifically, consider ๐ โฒ = {๐ โฒ = (1๐1 , 2๐2 , . . . , ๐๐๐ ) โฃ ๐๐ = 0 or 1 for all ๐} weighted by wt ๐ โฒ = ๐ฅโ๐ ๐๐ . Clearly we have a bijection ๐ โถ ๐ โ ๐โฒ given by ๐(๐) = (1๐1 , 2๐2 , . . . , ๐๐๐ ) where ๐๐ = {
0 if ๐ โ ๐, 1 if ๐ โ ๐.
(In fact, this is the map used in the proof of Theorem 1.3.1.) Furthermore, this bijection is weight preserving in that wt ๐(๐) = wt ๐. As a concrete example, if ๐ = 5 and ๐ = {2, 4, 5}, then ๐(๐) = (10 , 21 , 30 , 41 , 51 ) and wt ๐(๐) = ๐ฅ3 = wt ๐. The advantage of using ๐ โฒ is that it is clearly a weighted product of the sets {๐0 , ๐1 } for ๐ โ [๐] where wt ๐0 = 1 and wt ๐1 = ๐ฅ. So we can write, where for distinct elements ๐ and ๐ we use the shorthand ๐ โ ๐ for {๐} โ {๐}, ๐ โฒ = {10 , 11 } ร {20 , 21 } ร โฏ ร {๐0 , ๐1 } = (10 โ 11 ) ร (20 โ 21 ) ร โฏ ร (๐0 โ ๐1 ). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
88
3. Counting with Ordinary Generating Functions
Translating this expression using both parts of Lemma 3.4.1, we obtain ๐
๐ โ ( )๐ฅ๐ = ๐๐ (๐ฅ) ๐ ๐=0 = ๐๐โฒ (๐ฅ) = (wt 10 + wt 11 )(wt 20 + wt 21 ) โฏ (wt ๐0 + wt ๐1 ) = (1 + ๐ฅ)๐ . Since this was the readerโs first example of the use of weight-generating functions, we were careful to write out all the details. However, in practice one is usually more concise, for example, making no distinction between ๐ and ๐ โฒ with the understanding that they yield the same weight-generating function and so can be considered the same set in this situation. We also usually omit checking summability, assuming that such details could be filled in if necessary. We are now ready for a more substantial example, namely the Binomial Theorem for negative exponents. Theorem 3.4.2. If ๐ โ โ, then 1 ๐ = โ (( ))๐ฅ๐ . (1 โ ๐ฅ)๐ ๐โฅ0 ๐ Proof. The summation side suggests that we should consider ๐ = {๐ โฃ ๐ is a multiset on [๐]} with weight function given by (3.10). We are rewarded for our choice since ๐๐ (๐ฅ) = โ wt ๐ = โ ๐โ๐
๐โฅ0
๐ โ ๐ฅ๐ = โ (( ))๐ฅ๐ . ๐ ๐โฅ0 ๐โ(([๐] )) ๐
We now write ๐ = {(1๐1 , 2๐2 , . . . , ๐๐๐ ) โฃ ๐๐ โฅ 0 for all ๐} = (10 โ 11 โ 12 โ . . . ) ร (20 โ 21 โ 22 โ . . . ) ร โฏ ร (๐0 โ ๐1 โ ๐2 โ . . . ) with weight function wt ๐๐ = ๐ฅ๐ . Using Lemma 3.4.1 yields ๐๐ (๐ฅ) = (wt 10 + wt 11 + wt 12 + โฏ) โฏ (wt ๐0 + wt ๐1 + wt ๐2 + โฏ) = (1 + ๐ฅ + ๐ฅ2 + โฏ)๐ 1 = (1 โ ๐ฅ)๐ and the theorem is proved.
โก
There are several remarks which should be made about this result. First of all, contrast it with our first version of the Binomial Theorem. In Theorem 3.1.1 we are counting subsets of [๐] where repeated elements are not allowed and the resulting generating function is (1 + ๐ฅ)๐ . In Theorem 3.4.2 we are counting multisets on [๐] so that repetitions are allowed and these are counted by 1/(1 โ ๐ฅ)๐ . We will see another example of this in the next section. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.5. Revisiting integer partitions
89
We can also make Theorem 3.4.2 look almost exactly like Theorem 3.1.1. Indeed, if ๐ โค 0, then by Theorem 3.4.2 and equation (1.6) (with โ๐ substituted for ๐) we have (1 + ๐ฅ)๐ =
1 โ๐ ๐ = โ (( ))(โ๐ฅ)๐ = โ ( )๐ฅ๐ . ๐ (1 โ (โ๐ฅ))โ๐ ๐โฅ0 ๐ ๐โฅ0
This is exactly like Theorem 3.1.1 except that we have an infinite series whereas for positive ๐ we have a polynomial. Analytically, the Binomial Theorem makes sense for any ๐ โ โ as long as |๐ฅ| < 1 so that the series converges. In โ[[๐ฅ]] one can make sense of (1 + ๐ฅ)๐ for any rational ๐ โ โ; see Exercise 12 of this chapter, and prove the following. Theorem 3.4.3. For any ๐ โ โ we have ๐ (1 + ๐ฅ)๐ = โ ( )๐ฅ๐ . ๐ ๐โฅ0
โก
3.5. Revisiting integer partitions The theory of integer partitions is one place where ordinary generating functions have played a central role. In this context and others it will be necessary to consider infinite products. But then, as we have seen in the previous section, we must take care that these products converge. There is a corresponding restriction on the sets which we can use to construct weight-generating functions. We begin by discussing this matter. Let ๐ be a weighted set. We say that ๐ is rooted if there is an element ๐ โ ๐ called the root satisfying (1) wt ๐ = 1 and (2) if ๐ โ ๐ โ {๐}, then wt ๐ has zero constant term. For example, the sets (๐0 , ๐1 , ๐2 , . . . ) used in the proof of Theorem 3.4.2 were rooted with ๐ = ๐0 since wt ๐0 = 1 and wt ๐๐ = ๐ฅ๐ for ๐ โฅ 1. Given a sequence ๐ 1 , ๐ 2 , ๐ 3 . . . of rooted sets with ๐ ๐ having root ๐ ๐ , their direct sum is defined to be ๐1 โ ๐2 โ ๐3 โ โฏ = {(๐ 1 , ๐ 2 , ๐ 3 , . . . ) โฃ ๐ ๐ โ ๐ ๐ for all ๐ and ๐ ๐ โ ๐ ๐ for only finitely many ๐}. Note that when the number of ๐ ๐ is finite, then their direct sum is the same as their product. But when their number is infinite the root condition kicks in. Note that, because of this condition, we have a well-defined weighting on โ๐โฅ1 ๐ ๐ given by wt(๐ 1 , ๐ 2 , ๐ 3 , . . . ) = โ wt ๐ ๐ ๐โฅ1
since the product has only finitely many factors not equal to 1. In addition, the Product Rule in Lemma 3.4.1 has to be modified appropriately to get convergence. But the proof is similar to the former result and so is left as an exercise. Theorem 3.5.1. Let ๐ 1 , ๐ 2 , ๐ 3 , . . . be a sequence of summable, rooted sets such that lim [mdeg(๐๐๐ (๐ฅ) โ 1)] = โ.
๐โโ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
90
3. Counting with Ordinary Generating Functions
Then the direct sum ๐ 1 โ ๐ 2 โ ๐ 3 โ โฏ is summable and ๐๐1 โ๐2 โ๐3 โโฏ (๐ฅ) = โ ๐๐๐ (๐ฅ).
โก
๐โฅ1
We will now prove a theorem of Euler giving the generating function for ๐(๐), the number of integer partitions of ๐. The reader should contrast the proof with that given for counting multisets in Theorem 3.4.2, which has evident parallels. Theorem 3.5.2. We have โ ๐(๐)๐ฅ๐ = โ ๐โฅ0
๐โฅ1
1 . 1 โ ๐ฅ๐
Proof. Motivated by the sum side we consider the set ๐ of all integer partitions ๐ of all numbers ๐ โฅ 0 with weight wt ๐ = ๐ฅ|๐| ,
(3.11)
recalling that |๐| is the sum of the parts of ๐. It follows that ๐๐ (๐ฅ) = โ wt ๐ = โ โ ๐ฅ๐ = โ ๐(๐)๐ฅ๐ . ๐โ๐
๐โฅ0 |๐|=๐
๐โฅ0
We now express ๐ as a direct sum, using multiplicity notation, as ๐ = {(1๐1 , 2๐2 , 3๐3 , . . . ) โฃ ๐๐ โฅ 0 for all ๐ and only finitely many ๐๐ โ 0} = (10 โ 11 โ 12 โ โฏ) โ (20 โ 21 โ 22 โ โฏ) โ (30 โ 31 โ 32 โ โฏ) โ โฏ . Note that since we want the exponent on wt ๐ to be the sum of its parts, and ๐๐ represents a part ๐ repeated ๐ times, we must take wt ๐๐ = ๐ฅ๐๐ in contrast to the weight used in the proof of Theorem 3.4.2. Translating into generating functions by using the previous theorem gives ๐๐ (๐ฅ) = โ(wt ๐0 + wt ๐1 + wt ๐2 + wt ๐3 + โฏ) ๐โฅ1
= โ(1 + ๐ฅ๐ + ๐ฅ2๐ + ๐ฅ3๐ + โฏ) ๐โฅ1
=โ ๐โฅ1
1 , 1 โ ๐ฅ๐
which is the desired result.
โก
The reader will notice that the previous proof actually shows much more. In particular, the factor 1/(1 โ ๐ฅ๐ ) is responsible for keeping track of the parts equal to ๐ in ๐. We can make this precise as follows. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.5. Revisiting integer partitions
91
Proposition 3.5.3. Given ๐ โ โ and ๐ โ โ, let ๐๐ (๐) be the number of partitions of ๐ all of whose parts are in ๐. (a) We have โ ๐๐ (๐)๐ฅ๐ = โ ๐โฅ0
๐โ๐
1 . 1 โ ๐ฅ๐
(b) In particular, for ๐ โ โ, โ ๐ [๐] (๐)๐ฅ๐ = ๐โฅ0
1 . (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ )
Proof. For (a), one uses the ideas in the proof of Theorem 3.5.2 except that the elements of ๐ only contain components of the form ๐๐๐ for ๐ โ ๐. And (b) follows immediately from (a). โก Instead of restricting the set of parts of a partition, we can restrict the number of parts. Recall that ๐(๐, ๐) is the number of ๐ โข ๐ with length โ(๐) โค ๐. Corollary 3.5.4. For ๐ โฅ 0 we have โ ๐(๐, ๐)๐ฅ๐ = ๐โฅ0
1 . (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ )
Proof. From the previous result, it suffices to show that there is a size-preserving bijection between the partitions counted by ๐ [๐] (๐) and those counted by ๐(๐, ๐). The map ๐ โ ๐๐ก is such a map. Indeed, ๐ only uses parts in [๐] if and only if ๐1 โค ๐. In terms of Young diagrams, this means that the first row of ๐ has length at most ๐. It follows that the first column of ๐๐ก has length at most ๐, which is equivalent to ๐๐ก having at most ๐ parts. โก In the previous section we pointed out a relationship between the generating functions for sets and for multisets. The same holds for integer partitions. Let ๐ ๐ (๐) be the number of partitions of ๐ into distinct parts as defined in Section 2.3. Theorem 3.5.5. We have โ ๐ ๐ (๐)๐ฅ๐ = โ(1 + ๐ฅ๐ ). ๐โฅ0
๐โฅ1
Proof. Up to now we have been writing out most of the gory details of our proofs by weight-generating function as the reader gets familiar with the method. But by now it should be sufficient just to write out the highlights. We begin by letting ๐ be all partitions of all ๐ โ โ into distinct parts and using the weighting in (3.11). It is routine to show that ๐๐ (๐ฅ) results in the sum side of the theorem. To get the product side we write ๐ = {(1๐1 , 2๐2 , 3๐3 , . . . ) โฃ ๐๐ = 0 or 1 for all ๐, only finitely many ๐๐ โ 0} =
โจ
(๐0 โ ๐1 ).
๐โฅ1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
92
3. Counting with Ordinary Generating Functions
The generating function translation is ๐๐ (๐ฅ) = โ(1 + ๐ฅ๐ ) ๐โฅ1
โก
and we are done.
As mentioned in the introduction to this chapter, one of the reasons for using generating functions is that they can give quick and easy proofs for various results. Here is an example where we reprove Eulerโs distinct parts-odd parts result, Theorem 2.3.3, which we restate here for convenience. Let ๐๐ (๐) be the number of partitions of ๐ into parts all of which are odd. Theorem 3.5.6 (Euler). For all ๐ โฅ 0, ๐๐ (๐) = ๐ ๐ (๐). Proof. It suffices to show that these two sequence have the same generating function. Using Theorems 3.5.3(a) and 3.5.5 as well as multiplying by a strange name for one, we get โ ๐ ๐ (๐)๐ฅ๐ = (1 + ๐ฅ)(1 + ๐ฅ2 )(1 + ๐ฅ3 ) โฏ ๐โฅ0
= (1 + ๐ฅ)(1 + ๐ฅ2 )(1 + ๐ฅ3 ) โฏ
(1 โ ๐ฅ)(1 โ ๐ฅ2 )(1 โ ๐ฅ3 ) โฏ (1 โ ๐ฅ)(1 โ ๐ฅ2 )(1 โ ๐ฅ3 ) โฏ
=
(1 โ ๐ฅ2 )(1 โ ๐ฅ4 )(1 โ ๐ฅ6 ) โฏ (1 โ ๐ฅ)(1 โ ๐ฅ2 )(1 โ ๐ฅ3 ) โฏ
=
1 (1 โ ๐ฅ)(1 โ ๐ฅ3 )(1 โ ๐ฅ5 ) โฏ
= โ ๐๐ (๐)๐ฅ๐ , ๐โฅ0
which completes this short and slick proof.
โก
3.6. Recurrence relations and generating functions The reader may have noticed that many of the combinatorial sequences described in Chapter 1 satisfy recurrence relations. If one has a sequence defined by a recursion, then generating functions can often be used to find an explicit expression for the terms of the sequence. It is also possible to glean information from the generating function derived from a recurrence which is hard to extract from the recurrence itself. This section is devoted to exploring these ideas. We start with a simple algorithm using generating functions to solve a recurrence relation. Given a sequence ๐0 , ๐1 , ๐2 , . . . defined by a recursion and boundary conditions, we wish to find a self-contained formula for the ๐th term. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.6. Recurrence relations and generating functions
93
(1) Multiply the recurrence by ๐ฅ๐ ; usually a good choice for ๐ is the largest index of all the terms in the recurrence. Sum over all ๐ โฅ ๐ where ๐ is the smallest index for which the recurrence is valid. (2) Let ๐(๐ฅ) = โ ๐๐ ๐ฅ๐ ๐โฅ0
and express the equation in step (1) in terms of ๐(๐ฅ) using the boundary conditions. (3) Solve for ๐(๐ฅ). (4) Find ๐๐ as the coefficient of ๐ฅ๐ in ๐(๐ฅ). We note that partial fraction expansion can be a useful way to accomplish step (4). For a simple example, suppose that our sequence is defined by ๐0 = 2 and ๐๐ = 3๐๐โ1 for ๐ โฅ 1. Calculating the first few values we get ๐1 = 2 โ
3, ๐2 = 2 โ
32 , ๐3 = 2 โ
33 . So it is easy to guess and then prove by induction that ๐๐ = 2 โ
3๐ . We would now like to obtain this result using generating functions. Step (1) is easy as we just write ๐๐ ๐ฅ๐ = 3๐๐โ1 ๐ฅ๐ and then sum to get โ ๐๐ ๐ฅ๐ = โ 3๐๐โ1 ๐ฅ๐ . ๐โฅ1
๐โฅ1
Letting ๐(๐ฅ) be as in step (2) we see that โ ๐๐ ๐ฅ๐ = ๐(๐ฅ) โ ๐0 = ๐(๐ฅ) โ 2 ๐โฅ1
and โ 3๐๐โ1 ๐ฅ๐ = 3๐ฅ โ ๐๐โ1 ๐ฅ๐โ1 = 3๐ฅ๐(๐ฅ) ๐โฅ1
๐โฅ1
where the last equality is obtained by substituting ๐ for ๐ โ 1 in the sum. For step (3) we have 2 . (3.12) ๐(๐ฅ) โ 2 = 3๐ฅ๐(๐ฅ) โน ๐(๐ฅ) โ 3๐ฅ๐(๐ฅ) = 2 โน ๐(๐ฅ) = 1 โ 3๐ฅ As far as step (4), we can now expand 1/(1 โ 3๐ฅ) as a geometric series (that is, use (3.8) and substitute 3๐ฅ for ๐ฅ) to obtain ๐(๐ฅ) = 2 โ 3๐ ๐ฅ๐ = โ 2 โ
3๐ ๐ฅ๐ . ๐โฅ0
๐โฅ0
๐
Extracting the coefficient of ๐ฅ we see that ๐๐ = 2 โ
3๐ as expected. In the previous example, it was easier to guess the formula for ๐๐ and then prove it by induction rather than use generating functions. However, there are times when it is impossible to guess the solution this way, but generating functions still give a straightforward method for obtaining the answer. An example of this is given by the Fibonacci sequence. Our result will be slightly nicer if we use the definition of this sequence given by (1.1). Following the algorithm, we write โ ๐น๐ ๐ฅ๐ = โ (๐น๐โ1 + ๐น๐โ2 )๐ฅ๐ . ๐โฅ2
๐โฅ2
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
94
3. Counting with Ordinary Generating Functions
Writing ๐(๐ฅ) = โ๐โฅ0 ๐น๐ ๐ฅ๐ we obtain โ ๐น๐ ๐ฅ๐ = ๐(๐ฅ) โ ๐น0 โ ๐น1 ๐ฅ = ๐(๐ฅ) โ ๐ฅ ๐โฅ2
and โ (๐น๐โ1 + ๐น๐โ2 )๐ฅ๐ = ๐ฅ(๐(๐ฅ) โ ๐น0 ) + ๐ฅ2 ๐(๐ฅ) = (๐ฅ + ๐ฅ2 )๐(๐ฅ). ๐โฅ2
Setting the expressions for the left and right sides equal and solving for ๐(๐ฅ) yields ๐ฅ ๐(๐ฅ) = . 1 โ ๐ฅ โ ๐ฅ2 For the last step we wish to use partial fractions and so must factor 1 โ ๐ฅ โ ๐ฅ2 . Using the quadratic formula, we see that the denominator has roots ๐1 =
โ1 + โ5 2
and
๐2 =
โ1 โ โ5 . 2
It follows that 1 โ ๐ฅ โ ๐ฅ2 = (1 โ
๐ฅ ๐ฅ )(1 โ ) ๐1 ๐2
since both sides vanish at ๐ฅ = ๐1 , ๐2 and both sides have constant term 1. So we have the partial fraction decomposition ๐ฅ ๐ด ๐ต (3.13) ๐(๐ฅ) = = + (1 โ
๐ฅ )(1 ๐1
โ
๐ฅ ) ๐2
(1 โ
๐ฅ ) ๐1
(1 โ
๐ฅ ) ๐2
for constants ๐ด, ๐ต. Clearing denominators gives ๐ฅ = ๐ด(1 โ
๐ฅ ๐ฅ ) + ๐ต(1 โ ). ๐2 ๐1
Setting ๐ฅ = ๐1 reduces this equation to ๐1 = ๐ด(1 โ ๐1 /๐2 ) and solving for ๐ด shows that ๐ด = 1/โ5. Similarly letting ๐ฅ = ๐2 yields ๐ต = โ1/โ5. Plugging these values back into (3.13) and expanding the series, ๐(๐ฅ) =
1 ๐ฅ๐ ๐ฅ๐ โ
โ ๐. ๐ โ โ5 ๐โฅ0 ๐1 โ5 ๐โฅ0 ๐2 1
โ
โ
By rationalizing denominators one can check that 1/๐1 = (1 + โ5)/2 and 1/๐2 = (1 โ โ5)/2. So taking the coefficient of ๐ฅ๐ on both sides of the previous displayed equation gives (3.14)
๐น๐ =
๐
๐
1 + โ5 1 1 โ โ5 ) โ ) . ( 2 2 โ5 โ5 1
(
This example shows the true power of the generating function method. It would be impossible to guess the formula in (3.14) from just computing values of ๐น๐ . In fact, it is not even obvious that the right-hand side is an integer! Our algorithm can be used to derive generating functions in the case where one has a triangle of numbers rather than just a sequence. Here we illustrate this using the Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.6. Recurrence relations and generating functions
95
Stirling numbers. Recall that the signless Stirling numbers of the first kind satisfy the recurrence relation and boundary conditions in Theorem 1.5.2. Translating these to the signed version gives ๐ (0, ๐) = ๐ฟ0,๐ and ๐ (๐, ๐) = ๐ (๐ โ 1, ๐ โ 1) โ (๐ โ 1)๐ (๐ โ 1, ๐) for ๐ โฅ 1. We wish to find the generating function ๐๐ (๐ฅ) = โ๐ ๐ (๐, ๐)๐ฅ๐ where we are using the fact that ๐ (๐, ๐) = 0 for ๐ < 0 or ๐ > ๐ to sum over all integers ๐. Applying our algorithm we have ๐๐ (๐ฅ) = โ ๐ (๐, ๐)๐ฅ๐ ๐
= โ[๐ (๐ โ 1, ๐ โ 1) โ (๐ โ 1)๐ (๐ โ 1, ๐)]๐ฅ๐ ๐
= ๐ฅ๐๐โ1 (๐ฅ) โ (๐ โ 1)๐๐โ1 (๐ฅ) = (๐ฅ โ ๐ + 1)๐๐โ1 (๐ฅ), giving us a recursion for the sequence of generating functions ๐๐ (๐ฅ). From the boundary condition for ๐ (0, ๐) we have ๐0 (๐ฅ) = 1. It is now easy to guess a formula for ๐๐ (๐ฅ) by writing out the first few values and proving that pattern holds by induction to obtain the theorem below, which also follows easily from Theorem 3.1.2. Theorem 3.6.1. For ๐ โฅ 0 we have โ ๐ (๐, ๐)๐ฅ๐ = ๐ฅ(๐ฅ โ 1) โฏ (๐ฅ โ ๐ + 1).
โก
๐
In an entirely analogous manner, one can obtain a generating function for the Stirling numbers of the second kind. Because of the similarity, the proof is left to the reader. Theorem 3.6.2. For ๐ โฅ 0 we have โ ๐(๐, ๐)๐ฅ๐ = ๐
๐ฅ๐ . (1 โ ๐ฅ)(1 โ 2๐ฅ) โฏ (1 โ ๐๐ฅ)
โก
Comparing the previous two results, the reader will note a similar relationship as between generating functions for objects without repetitions (sets, distinct partitions) and those where repetitions are allowed (multisets, ordinary partitions). As already mentioned, this will be explained in Section 3.9. So far, all the generating functions we have derived from recurrences have been rational functions. This is because the recursions are linear and we will prove a general result to this effect in the next section. We will end this section by illustrating that more complicated generating functions, for example algebraic ones, do arise in practice. Let us consider the Catalan numbers ๐ถ(๐) and the generating function ๐(๐ฅ) = โ๐โฅ0 ๐ถ(๐)๐ฅ๐ . Using the recursion and boundary condition in Theorem 1.11.2 and computing in the way we have become accustomed to, we obtain ๐(๐ฅ) = 1 + โ ๐ถ(๐)๐ฅ๐ = 1 + โ ( ๐โฅ1
โ
๐ถ(๐)๐ถ(๐))๐ฅ๐ = 1 + ๐ฅ๐(๐ฅ)2 .
๐โฅ1 ๐+๐=๐โ1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
96
3. Counting with Ordinary Generating Functions
Writing ๐ฅ๐(๐ฅ)2 โ ๐(๐ฅ) + 1 = 0 and solving for ๐(๐ฅ) using the quadratic formula yields ๐(๐ฅ) =
1 ยฑ โ1 โ 4๐ฅ . 2๐ฅ
Two things seem to be wrong with this formula for ๐(๐ฅ). First of all, we donโt know whether the plus or minus solution is the correct one. And second, we seem to have left the ring of formal power series because we are dividing by ๐ฅ which has no inverse. Both of these can be solved simultaneously by choosing the sign so that the numerator has no constant term. Then one can divide by ๐ฅ simply by reducing the power of each term in the top by one. By Theorem 3.4.3 we see that the generating function for โ1 โ 4๐ฅ = (1 โ 4๐ฅ)1/2 has constant term (1/2 ) = 1. So the correct sign is 0 negative and we have proved the following. Theorem 3.6.3. We have โ ๐ถ(๐)๐ฅ๐ = ๐โฅ0
1 โ โ1 โ 4๐ฅ . 2๐ฅ
โก
One can use this generating function to rederive the explicit expression for ๐ถ(๐) in Theorem 1.11.3, and the reader will be asked to carry out the details in the exercises.
3.7. Rational generating functions and linear recursions The reader may have noticed in the previous section that, both in the initial example and for the Fibonacci sequence, the solution of the recursion for ๐๐ was a linear combination of functions of the form ๐๐ where ๐ varied over the reciprocals of the roots of the denominator of the corresponding generating function. This happens for a wide variety of recursions which we will study in this section. Before giving a theorem which characterizes this situation, we will study one more example to illustrate what can happen. Consider the sequence defined by ๐0 = 1, ๐1 = โ4, and (3.15)
๐๐ = 4๐๐โ1 โ 4๐๐โ2
for ๐ โฅ 2.
Following the usual four-step program, we have, for ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ , ๐(๐ฅ) โ 1 + 4๐ฅ = โ ๐๐ ๐ฅ๐ ๐โฅ2
= 4๐ฅ โ ๐๐โ1 ๐ฅ๐โ1 โ 4๐ฅ2 โ ๐๐โ2 ๐ฅ๐โ2 ๐โฅ2
๐โฅ2 2
= 4๐ฅ(๐(๐ฅ) โ 1) โ 4๐ฅ ๐(๐ฅ). Solving for ๐(๐ฅ) and evaluating the constants in the partial fraction expansion yields ๐(๐ฅ) =
1 โ 8๐ฅ 1 โ 8๐ฅ 3 4 = โ = . 1 โ 2๐ฅ (1 โ 2๐ฅ)2 1 โ 4๐ฅ + 4๐ฅ2 (1 โ 2๐ฅ)2
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.7. Rational generating functions and linear recursions
97
Taking the coefficient of ๐ฅ๐ on both sides using the Theorem 3.4.2 (interchanging the roles of ๐ and ๐) together with the fact that ๐ ๐+๐โ1 ๐+๐โ1 (( )) = ( )=( ) ๐ ๐ ๐โ1
(3.16) gives a final answer of
๐+1 ๐ ๐๐ = 4 โ
2๐ โ 3( )2 = (1 โ 3๐)2๐ . 1
(3.17)
So now, instead of a constant times ๐๐ we have a polynomial in ๐ as the coefficient. And that polynomial has degree less than the multiplicity of 1/๐ as a root of the denominator. These observations generalize. Consider a sequence of complex numbers ๐๐ for ๐ โฅ 0. We say that the sequence satisfies a (homogeneous) linear recursion of degree ๐ with constant coefficients if there is a ๐ โ โ and constants ๐ 1 , . . . , ๐ ๐ โ โ with ๐ ๐ โ 0 such that (3.18)
๐๐+๐ + ๐ 1 ๐๐+๐โ1 + ๐ 2 ๐๐+๐โ2 + โฏ + ๐ ๐ ๐๐ = 0.
To simplify things later, we have put all the terms of the recursion on the left-hand side of the equation and made ๐๐+๐ the term of highest index rather than ๐๐ . One can also consider the nonhomogeneous case where one has a summand ๐ ๐+1 which does not multiply any term of the sequence, but we will have no cause to do so here. It turns out that the sequences satisfying a recursion (3.18) are exactly the ones having rational generating functions. Theorem 3.7.1. Given a sequence ๐๐ for ๐ โฅ 0 and ๐ โ โ, the following are equivalent. (a) The sequence satisfies (3.18). (b) The generating function ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ has the form (3.19)
๐(๐ฅ) =
๐(๐ฅ) ๐(๐ฅ)
where ๐(๐ฅ) = 1 + ๐ 1 ๐ฅ + ๐ 2 ๐ฅ2 + โฏ + ๐ ๐ ๐ฅ๐
(3.20)
and deg ๐(๐ฅ) < ๐. (c) We can write ๐
๐๐ = โ ๐ ๐ (๐)๐๐๐ ๐=1
where the ๐ ๐ are distinct, nonzero complex numbers satisfying ๐
(3.21)
1 + ๐ 1 ๐ฅ + ๐ 2 ๐ฅ2 + โฏ + ๐ ๐ ๐ฅ๐ = โ(1 โ ๐ ๐ ๐ฅ)๐๐ ๐=1
and ๐ ๐ (๐) is a polynomial with deg ๐ ๐ (๐) < ๐๐ for all ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
98
3. Counting with Ordinary Generating Functions
Proof. We first prove the equivalence of (a) and (b). Showing that (a) implies (b) is essentially an application of our algorithm. Multiplying (3.18) by ๐ฅ๐+๐ and summing over ๐ โฅ 0 gives 0 = โ ๐๐+๐ ๐ฅ๐+๐ + ๐ 1 ๐ฅ โ ๐๐+๐โ1 ๐ฅ๐+๐โ1 + โฏ + ๐ ๐ ๐ฅ๐ โ ๐๐ ๐ฅ๐ ๐โฅ0
๐โฅ0
๐โฅ0 ๐โ2
๐โ1
= [๐(๐ฅ) โ โ ๐๐ ๐ฅ๐ ] + ๐ 1 ๐ฅ [๐(๐ฅ) โ โ ๐๐ ๐ฅ๐ ] + โฏ + ๐ ๐ ๐ฅ๐ ๐(๐ฅ) ๐=0
๐=0
= ๐(๐ฅ)๐(๐ฅ) โ ๐(๐ฅ) where ๐(๐ฅ) is given by (3.20) and ๐(๐ฅ) is the sum of the remaining terms, which implies deg ๐(๐ฅ) < ๐. Solving for ๐(๐ฅ) completes this direction. To prove (b) implies (a), cross multiply (3.19) and use (3.20) to write ๐(๐ฅ) = ๐(๐ฅ)๐(๐ฅ) = (1 + ๐ 1 ๐ฅ + ๐ 2 ๐ฅ2 + โฏ + ๐ ๐ ๐ฅ๐ )๐(๐ฅ). Since deg ๐(๐ฅ) < ๐ we have that [๐ฅ๐+๐ ]๐(๐ฅ) = 0 for all ๐ โฅ 0. So taking the coefficient of ๐ฅ๐+๐ on both sides of the previous displayed equation gives the recursion (3.18). We now show that (b) and (c) are equivalent. The fact that (b) implies (c) again follows from the algorithm. Specifically, using equations (3.19), (3.20), and (3.21), as well as partial fraction expansion, we have (3.22)
๐(๐ฅ) =
๐(๐ฅ) ๐ โ๐=1 (1
โ ๐ ๐ ๐ฅ)๐๐
๐
๐๐
=โโ ๐=1 ๐=1
๐ด๐,๐ (1 โ ๐ ๐ ๐ฅ)๐
for certain constants ๐ด๐,๐ . But by Theorem 3.4.2 and equation (3.16) we have that [๐ฅ๐ ]
1 ๐ ๐+๐โ1 ๐ = (( ))๐๐๐ = ( )๐๐ ๐ ๐โ1 (1 โ ๐ ๐ ๐ฅ)๐
where (๐ + ๐ โ 1)(๐ + ๐ โ 2) โฏ (๐ + 1) ๐+๐โ1 )= ๐โ1 (๐ โ 1)! is a polynomial in ๐ of degree ๐ โ 1 for any given ๐. Now taking the coefficient of ๐ฅ๐ on both sides of (3.22) gives (
๐
๐
๐ ๐+๐โ1 ๐๐ = โ [ โ ๐ด๐,๐ ( )] ๐๐๐ . ๐โ1 ๐=1 ๐=1
Calling the polynomial inside the brackets ๐ ๐ (๐), we have derived the desired expansion. The proof that (c) implies (b) essentially reverses the steps of the forward direction. So it is left as an exercise. โก We note that the preceding theorem is not just of theoretical significance but is also very useful computationally. In particular, because of the equivalence of (a) and (c), one can solve a linear, constant coefficient recursion in a more direct manner without having to deal with generating functions. To illustrate, suppose we have a sequence Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.8. Chromatic polynomials
99
satisfying (3.18). Then we know that the solution in (c) is in terms of the ๐ ๐ which are the reciprocals of the roots of ๐(๐ฅ) as given by (3.20). To simplify things, we consider the polynomial ๐(๐ฅ) = ๐ฅ๐ ๐(1/๐ฅ) = ๐ฅ๐ + ๐ 1 ๐ฅ๐โ1 + ๐ 2 ๐ฅ๐โ2 + โฏ + ๐ ๐ . Comparison with (3.21) shows that the ๐ ๐ are the roots of ๐(๐ฅ). We now find the ๐ ๐ (๐) by solving for the coefficients of these polynomials using the initial conditions. To be quite concrete, consider again the example (3.15) with which we began this section. Since ๐๐ โ4๐๐โ1 +4๐๐โ2 = 0 for ๐ โฅ 2 we factor ๐(๐ฅ) = ๐ฅ2 โ4๐ฅ+4 = (๐ฅโ2)2 . So ๐๐ = ๐(๐)2๐ where deg ๐(๐) < 2. It follows that ๐(๐) = ๐ด + ๐ต๐ for constants ๐ด, ๐ต. Plugging in ๐ = 0 we get 1 = ๐0 = ๐ด20 = ๐ด. Now letting ๐ = 1 gives โ4 = ๐1 = (1 + ๐ต)21 or ๐ต = โ3. Thus ๐๐ is again given as in (3.17). But this solution is clearly simpler than the first one given. This is called the method of undetermined coefficients. Of course, the advantage of using generating functions is that they can be used to solve recursions even when they are not linear and constant coefficient. There is a striking resemblance between the theory we have developed in this section and the method of undetermined coefficients for solving linear differential equations with constant coefficients. This is not an accident and the material in this section may be considered as part of the theory of finite differences which is a discrete analogue of the theory of differential equations. We will have more to say about finite differences when we study Mรถbius inversion in Section 5.5.
3.8. Chromatic polynomials Sometimes generating functions or polynomials appear in unexpected ways. We now illustrate this phenomenon using the chromatic polynomial of a graph. Let ๐บ = (๐, ๐ธ) be a graph. A (vertex) coloring of ๐บ from a set ๐ is a function ๐ โถ ๐ โ ๐. We refer to ๐ as the color set. Figure 3.2 contains a graph which we will be using as our running example together with two colorings using the set ๐ = {white, gray, black}. We say that ๐ is proper if, for all edges ๐ข๐ฃ โ ๐ธ we have ๐(๐ข) โ ๐(๐ฃ). The first coloring in Figure 3.2 is proper while the second is not since the edge ๐ฃ๐ฅ has both endpoints colored gray. The chromatic number of ๐บ, denoted ๐(๐บ), is the minimum cardinality of a set ๐ such that there is a proper coloring ๐ โถ ๐ โ ๐. In our example, ๐(๐บ) = 3 because we have displayed a proper coloring with three colors in Figure 3.2 (black, white, and gray), and one cannot use fewer colors because of the triangle ๐ข๐ฃ๐ฅ.
๐ข
๐ฃ
๐ฅ
๐ค
๐บ=
Figure 3.2. A graph and two colorings
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
100
3. Counting with Ordinary Generating Functions
The chromatic number is an important invariant in graph theory. But by its definition, it belongs more to extremal combinatorics (which studies structures which minimize or maximize a constraint) than the enumerative side of the subject. Although we will not have much more to say about ๐(๐บ) here, we would be remiss if we did not state one of the most famous mathematical theorems in which it plays a part. Call a graph planar if it can be drawn in the plane without any pair of edges crossing. Theorem 3.8.1 (The Four Color Theorem). If ๐บ is planar, then ๐(๐บ) โค 4.
โก
Note that this result is in stark contrast to ordinary graphs which can have arbitrarily large chromatic number. Complete graphs, for example, have ๐(๐พ๐ ) = ๐. The Four Color Theorem caused quite a stir when it was proved in 1977 by Appel and Haken (with the help of Koch) [1, 2]. For one thing, it had been the Four Color Conjecture for over 100 years. Also their proof was the first to make heavy use of computers to do the calculations for all the various cases and the demonstration could not be completely checked by a human. We now turn to the enumerating graph colorings. Let ๐ก โ โ. The chromatic polynomial of ๐บ is defined to be ๐(๐บ; ๐ก) = the number of proper colorings ๐ โถ ๐ โ [๐ก]. This concept was introduced by George Birkhoff [13]. It is not clear at this point why ๐(๐บ; ๐ก) should be called a polynomial, but let us compute it for the graph in Figure 3.2. Consider coloring the vertices of ๐บ in the order ๐ข, ๐ฃ, ๐ค, ๐ฅ. There are ๐ก choices for the color of ๐ข. This leaves ๐ก โ 1 possibilities for ๐ฃ since it cannot be the same color as ๐ข. By the same token, the number of choices for ๐ค is ๐ก โ 1. Finally, ๐ฅ can be colored in ๐ก โ 2 ways since it cannot have the colors of ๐ข or ๐ฃ and these are different. So the final count is (3.23)
๐(๐บ) = ๐(๐บ; ๐ก) = ๐ก(๐ก โ 1)(๐ก โ 1)(๐ก โ 2) = ๐ก4 โ 4๐ก3 + 5๐ก2 โ 2๐ก.
This is a polynomial in ๐ก, the number of colors! Before proving that this is always the case, we have a couple of remarks. First of all, there is a close relationship between ๐(๐บ; ๐ก) and ๐(๐บ); namely ๐(๐บ; ๐ก) = 0 if 0 โค ๐ก < ๐(๐บ) but ๐(๐บ; ๐(๐บ)) > 0. This follows from the definitions of ๐ and ๐ since the latter is the smallest nonnegative integer for which proper colorings of ๐บ exist and the former counts such colorings. Secondly, it is not always possible to compute ๐(๐บ; ๐ก) in the manner above and express it as a product of factors ๐ก โ ๐ for integers ๐. For example, consider the cycle ๐ถ4 with vertices labeled clockwise as ๐ข, ๐ฃ, ๐ค, ๐ฅ. If we try to use this method to compute ๐(๐ถ4 ; ๐ก), then everything is fine until we get to coloring ๐ฅ, for ๐ฅ is adjacent to both ๐ข and ๐ค. But we cannot be sure whether ๐ข and ๐ค have the same color or not since they themselves are not adjacent. It turns out that the same ideas can be used both for proving that ๐(๐บ; ๐ก) is always a polynomial in ๐ก and to rectify the difficulty in computing ๐(๐ถ4 ; ๐ก). Consider a graph ๐บ = (๐, ๐ธ) and an edge ๐ โ ๐ธ. The graph obtained by deleting ๐ from ๐บ is denoted ๐บ โงต ๐ and has vertices ๐ and edges ๐ธ โ {๐}. The middle graph in Figure 3.3 is obtained from our running example by deleting ๐ = ๐ฃ๐ฅ. The graph obtained by contracting ๐ in ๐บ is Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.8. Chromatic polynomials
101
๐ข ๐บ=
๐ฃ
๐ฃ
๐ฅ
๐ค
๐บโงต๐=
๐ ๐ฅ
๐ข
๐ค ๐ข ๐บ/๐ =
๐ฃ๐ ๐ค
Figure 3.3. Deletion and contraction
denoted ๐บ/๐ and is obtained by shrinking ๐ to a new vertex ๐ฃ ๐ , making ๐ฃ ๐ adjacent to the vertices which were adjacent to either endpoint of ๐ and leaving all other vertices and edges of ๐บ the same. Contracting ๐ฃ๐ฅ in our example graph results in the graph on the right in Figure 3.3. The next lemma is crucial in the study of ๐(๐บ; ๐ก). It is ideally set up for induction on #๐ธ since both ๐บ โงต ๐ and ๐บ/๐ have fewer edges than ๐บ. Lemma 3.8.2 (Deletion-Contraction Lemma). If ๐บ is a graph, then for any ๐ โ ๐ธ we have ๐(๐บ; ๐ก) = ๐(๐บ โงต ๐; ๐ก) โ ๐(๐บ/๐; ๐ก). Proof. We will prove this in the form ๐(๐บ โงต ๐) = ๐(๐บ) + ๐(๐บ/๐). Suppose ๐ = ๐ข๐ฃ. Since ๐ is no longer present in ๐บ โงต ๐, its proper colorings are of two types: those where ๐(๐ข) โ ๐(๐ฃ) and those where ๐(๐ข) = ๐(๐ฃ). If ๐(๐ข) โ ๐(๐ฃ), then properly coloring ๐บ โงต ๐ is the same as properly coloring ๐บ. So there are ๐(๐บ) colorings of the first type. There is also a bijection between the proper colorings of ๐บ โงต ๐ where ๐(๐ข) = ๐(๐ฃ) and those of ๐บ/๐; namely color ๐ฃ ๐ with the common color of ๐ข and ๐ฃ and leave all the other colors the same. It follows that there are ๐(๐บ/๐) colorings of the second type and the lemma is proved. โก We can now easily show that ๐(๐บ; ๐ก) lives up to its name. Theorem 3.8.3. We have that ๐(๐บ; ๐ก) is a polynomial in ๐ก for any graph ๐บ. Proof. We induct on #๐ธ. If ๐บ has no edges, then clearly ๐(๐บ; ๐ก) = ๐ก#๐ which is a polynomial in ๐ก. If #๐ธ โฅ 1, then pick ๐ โ ๐ธ. By deletion-contraction ๐(๐บ; ๐ก) = ๐(๐บ โงต ๐; ๐ก) โ ๐(๐บ/๐; ๐ก). And by induction we have that both ๐(๐บ โงต ๐; ๐ก) and ๐(๐บ/๐; ๐ก) are polynomials in ๐ก. Thus the same is true of their difference. โก We can also use Lemma 3.8.2 to compute the chromatic polynomial of ๐ถ4 . Recall our notation of ๐๐ and ๐พ๐ for paths and complete graphs on ๐ vertices, respectively. Now picking any edge ๐ โ ๐ธ(๐ถ4 ) we can use deletion-contraction and then determine the polynomials of the resulting graphs via coloring vertex by vertex to obtain ๐(๐ถ4 ) = ๐(๐4 ) โ ๐(๐พ3 ) = ๐ก(๐ก โ 1)3 โ ๐ก(๐ก โ 1)(๐ก โ 2) = ๐ก(๐ก โ 1)(๐ก2 โ 3๐ก + 3). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
102
3. Counting with Ordinary Generating Functions
Note that the quadratic factor has complex roots, thus substantiating our claim that ๐(๐บ) does not always have roots which are integers. One can use induction and Lemma 3.8.2 to prove a host of results about ๐(๐บ; ๐ก). Since these demonstrations are all similar, we will leave them to the reader. We will use a nonstandard way of writing down the coefficients of this polynomial, which will turn out to be convenient later. Theorem 3.8.4. Let ๐บ = (๐, ๐ธ) and write ๐(๐บ; ๐ก) = ๐0 ๐ก๐ โ ๐1 ๐ก๐โ1 + ๐2 ๐ก๐โ2 โ โฏ + (โ1)๐ ๐๐ . (a) ๐ = #๐. (b) mdeg ๐(๐บ; ๐ก) = the number of components of ๐บ. (c) ๐๐ โฅ 0 for all ๐ and ๐๐ > 0 for 0 โค ๐ โค ๐ โ mdeg ๐(๐บ; ๐ก). โก
(d) ๐0 = 1 and ๐1 = #๐ธ.
Now that we know ๐(๐บ; ๐ก) is a polynomial we can ask if there is any combinatorial interpretation for its coefficients, the reverse of our approach up to now, which has been to start with a sequence and then find its generating function. Put a total order on the edge set ๐ธ, writing ๐ < ๐ if ๐ is less than ๐ in this order and similarly for other notation. If ๐ถ is a cycle in ๐บ, then the corresponding broken circuit ๐ต is the set of edges obtained from ๐ธ(๐ถ) by removing the smallest edge in the total order. Returning to the graph in Figure 3.2, let ๐ = ๐ข๐ฃ, ๐ = ๐ข๐ฅ, ๐ = ๐ฃ๐ค, ๐ = ๐ฃ๐ฅ and impose the order ๐ < ๐ < ๐ < ๐. The only cycle has edges ๐, ๐, ๐ and the corresponding broken circuit is ๐ต = {๐, ๐} which are the edges of a path. Say that a set of edges ๐ด โ ๐ธ contains no broken circuit or is an NBC set if ๐ด 6โ ๐ต for any broken circuit ๐ต. Let NBC๐ = NBC๐ (๐บ) = {๐ด โ ๐ธ โฃ #๐ด = ๐ and ๐ด is an NBC set} and nbc๐ = nbc๐ (๐บ) = # NBC๐ (๐บ). In our example graph ๐
NBC๐ (๐บ)
nbc๐ (๐บ)
0 1 2 3 4
{โ
} { {๐}, {๐}, {๐}, {๐} } { {๐, ๐}, {๐, ๐}, {๐, ๐}, {๐, ๐}, {๐, ๐} } { {๐, ๐, ๐}, {๐, ๐, ๐} } โ
1 4 5 2 0
Comparison of the last column of this table with the coefficients of ๐(๐บ; ๐ก) presages our next result, which is due to Whitney [99]. It is surprising that the conclusion does not depend on the total order given to the edges. The proof we give is based on the demonstration of Blass and Sagan [16]. Theorem 3.8.5. If #๐ = ๐, then, given any ordering of ๐ธ, ๐
๐(๐บ; ๐ก) = โ (โ1)๐ nbc๐ (๐บ) ๐ก๐โ๐ . ๐=0
Proof. Identify each ๐ด โ NBC๐ (๐บ) with the associated spanning subgraph. Then ๐ด is acyclic since any cycle contains a broken circuit. It follows from Theorem 1.10.2 that Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.8. Chromatic polynomials
103
๐ข
๐ฃ
๐ฅ
๐ค
๐บ=
Figure 3.4. Two orientations of a graph
๐ด is a forest with ๐ โ ๐ component trees. Hence nbc๐ (๐บ) ๐ก๐โ๐ is the number of pairs (๐ด, ๐) where ๐ด โ NBC๐ (๐บ) and ๐ โถ ๐ โ [๐ก] is a coloring constant on each component of ๐ด. We call such a coloring ๐ด-improper. Make the set of such pairs into a signed set by letting sgn(๐ด, ๐) = (โ1)#๐ด . So the theorem will be proved if we exhibit a signreversion involution ๐ on these pairs whose fixed points have positive sign and are in bijection with the proper coloring of ๐บ. Define the fixed points of ๐ to be the (๐ด, ๐) such that ๐ด = โ
and ๐ is proper. These pairs clearly have the desired characteristics. For any other pair, ๐ is not a proper coloring so there must be an edge ๐ = ๐ข๐ฃ with ๐(๐ข) = ๐(๐ฃ). Let ๐ be the smallest such edge in the total order. Now define ๐(๐ด, ๐) = (๐ด ฮ {๐}, ๐) โ (๐ดโฒ , ๐). It is clear that ๐ reverses signs. And it is an involution because ๐ does not change, and so the smallest monochromatic edge is the same in a pair and its image. We just need to check that ๐ is well-defined. If ๐ดโฒ = ๐ด โ {๐}, then obviously ๐ด is still an NBC set and ๐ is ๐ดโฒ -improper. If ๐ดโฒ = ๐ด โช {๐}, then, since ๐ joined two vertices of the same color, ๐ is still ๐ดโฒ -improper. But assume, towards a contradiction, that ๐ดโฒ is no longer NBC. Then ๐ดโฒ โ ๐ต where ๐ต is a broken circuit, and ๐ โ ๐ต since ๐ด is NBC. Since ๐ is ๐ดโฒ -improper, all edges in ๐ต have vertices colored ๐(๐ข). But ๐ is the smallest edge having that property, and so the smaller edge removed from a cycle to get ๐ต cannot exist. Thus ๐ดโฒ is NBC, ๐ is well-defined, and we are done with the proof. โก One of the amazing things about the chromatic polynomial is that it often appears in places where a priori it has no business being because no graph coloring is involved. We now give two illustrations of this. Recall from Section 2.6 that an orientation ๐ of a graph ๐บ is a digraph with the same vertex set obtained by replacing each edge ๐ข๐ฃ of ๐บ by one of the possible arcs ๐ขโ๐ฃ or ๐ฃโ๐ข. See Figure 3.4 for two orientations of our usual graph. Call ๐ acyclic if it does not contain any directed cycles and let ๐(๐บ) and ๐(๐บ) denote the set and number of acyclic orientations of ๐บ, respectively. The first of the orientations just given is acyclic while the second is not. The total number of orientations of the cycle ๐ข, ๐ฃ, ๐ฅ, ๐ข is 23 and the number of those which produce a cycle is 2 (clockwise and counterclockwise). Since neither orientation of ๐ฃ๐ค can produce a cycle, we see that ๐(๐บ) = 2(23 โ 2) = 12. We now do something very strange and plug ๐ก = โ1 into the chromatic polynomial (3.23) and get ๐(๐บ; โ1) = (โ1)(โ2)(โ2)(โ3) = 12. Although it is not at all clear what it means to color a graph with โ1 colors, we have just seen an example of the following celebrated theorem of Stanley [85]. Theorem 3.8.6. For any graph ๐บ with #๐ = ๐ we have ๐(๐บ; โ1) = (โ1)๐ ๐(๐บ). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
104
3. Counting with Ordinary Generating Functions
Proof. We induct on #๐ธ where the base case is an easy check. It suffices to show that (โ1)๐ ๐(๐บ; โ1) and ๐(๐บ) satisfy the same recursion. Using the Deletion-Contraction Lemma for the former, we see that we need to show ๐(๐บ) = ๐(๐บ โงต ๐) + ๐(๐บ/๐) for a fixed ๐ = ๐ข๐ฃ โ ๐ธ. Consider the map ๐ โถ ๐ด(๐บ) โ ๐ด(๐บ โงต ๐) โฒ
โฒ
which sends ๐ โฆ ๐ where ๐ is obtained from ๐ by removing the arc corresponding to ๐. Clearly ๐โฒ is still acyclic so the function is well-defined. We claim ๐ is onto. Suppose to the contrary that there is some ๐โฒ โ ๐ด(๐บ โงต ๐) such that adding back ๐ขโ๐ฃ creates a directed cycle ๐ถ, and similarly with ๐ฃโ๐ข creating a cycle ๐ถ โฒ . Then (๐ถ โ ๐ขโ๐ฃ) โช (๐ถ โฒ โ ๐ฃโ๐ข) is a closed, directed walk which must contain a directed cycle by Exercise 14(b) of Chapter 1. But this third directed cycle is contained in ๐โฒ , which is the desired contradiction. If ๐โฒ โ ๐ด(๐บ โงต ๐), then by definition of the map #๐โ1 (๐โฒ ) โค 2. And from the previous paragraph #๐โ1 (๐โฒ ) โฅ 1. So ๐(๐บ) = ๐ฅ + 2๐ฆ where ๐ฅ = #{๐โฒ โฃ ๐โ1 (๐โฒ ) = 1} and ๐ฆ = #{๐โฒ โฃ ๐โ1 (๐โฒ ) = 2}. Since ๐(๐บ โงต ๐) = ๐ฅ + ๐ฆ it suffices to show that ๐(๐บ/๐) = ๐ฆ. We will do this by constructing a bijection ๐ โถ {๐โฒ โ ๐ด(๐บ โงต ๐) โฃ ๐โ1 (๐โฒ ) = 2} โ ๐ด(๐บ/๐). Let ๐ be the domain of ๐. If there are a pair of edges ๐ค๐ข, ๐ค๐ฃ โ ๐ธ(๐บ), then any ๐โฒ โ ๐ contains either both ๐ค๐ข โ and ๐ค๐ฃ โ or both ๐ข๐ค โ and ๐ฃ๐ค. โ This is because in all other cases adding back one of the orientations of ๐ would create an orientation of ๐บ with a cycle, contradicting the fact that ๐โ1 (๐โฒ ) = 2. So define ๐โณ = ๐(๐โฒ ) to be the orientation of ๐บ/๐ which agrees with ๐โฒ on all arcs not containing the new vertex ๐ฃ ๐ , and on any edge of the form ๐ค๐ฃ ๐ uses the same orientation as either ๐ค๐ข or ๐ค๐ฃ. (As just shown, these two orientations are either both towards or both away from ๐). Proving that ๐ is a well-defined bijection is left as an exercise. โก We should mention that Stanley actually proved a stronger result giving a combinatorial interpretation to ๐(๐บ; โ๐ก) for all negative integers โ๐ก. See Exercise 28(b) for details. So, as we saw with the binomial coefficients in (1.6), we have another instance of combinatorial reciprocity. We will study this phenomenon more generally in the next section. For our second example of the protean nature of the chromatic polynomial, we will need to assume that our graphs ๐บ have vertex set [๐] so that one has a total order on the vertices. Let ๐น be a spanning forest of ๐บ and root each component tree ๐ of ๐น at its smallest vertex ๐. Say that ๐น is increasing if the integers on any path starting at ๐ form an increasing sequence for all roots ๐. In Figure 3.5 the reader will find the usual 1
2
1 ๐น1 =
2
1 ๐น2 =
2
3
4
3
4
3
๐บ= 4
Figure 3.5. A graph and two spanning forests
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.8. Chromatic polynomials
105
graph, now labeled with [4], and two spanning forests. We have that ๐น1 is increasing as any singleton node is increasing, and in the nontrivial tree the only maximal path from the root is 1, 2, 4, which is an increasing sequence. On the other hand ๐น2 is not increasing because of the path 1, 4, 2. For a graph ๐บ = (๐, ๐ธ) we define ISF๐ (๐บ) = {๐น โฃ ๐น is an increasing spanning forest of ๐บ with ๐ edges} and isf๐ (๐บ) = # ISF๐ (๐บ). If #๐ = ๐, then consider the corresponding generating polynomial ๐
isf(๐บ) = isf(๐บ; ๐ก) = โ (โ1)๐ isf๐ (๐บ)๐ก๐โ๐ . ๐=0
Let us compute this for our example graph. Any tree with zero or one edge is increasing so that isf0 (๐บ) = 1 and isf1 (๐บ) = #๐ธ = 4. Any of the pairs of edges of ๐บ form an increasing forest except for the pair giving ๐น2 in Figure 3.5. So isf2 (๐บ) = (42) โ 1 = 5. Similarly one checks that isf3 (๐บ) = 2. And isf4 (๐บ) = 0 since ๐บ itself is not a forest. So isf(๐บ; ๐ก) = ๐ก4 โ 4๐ก3 + 5๐ก2 โ 2๐ก = ๐ก(๐ก โ 1)2 (๐ก โ 2) = ๐(๐บ; ๐ก). We cannot always have isf(๐บ) = ๐(๐บ) because the former depends on the labeling of the vertices (even though our notation conceals that fact) while the latter does not. So we will put aside deciding when they are equal for now and concentrate on the factorization over โค which we have just seen and which, as we will see, is not a coincidence. In fact, the roots will be the cardinalities of the edge sets defined by (3.24)
๐ธ ๐ = {๐๐ โ ๐ธ โฃ ๐ < ๐}
for 1 โค ๐ โค ๐. In our example ๐ธ1 = โ
(since there is no vertex smaller than 1), ๐ธ2 = {12}, ๐ธ3 = {23}, and ๐ธ4 = {14, 24}. Lemma 3.8.7. If ๐บ has ๐ = [๐], then a spanning subgraph ๐น is an increasing forest if and only if it is obtained by picking at most one edge from each ๐ธ ๐ for ๐ โ [๐]. Proof. For the forward direction assume, towards a contradiction, that ๐น contains both ๐๐ and ๐๐ with ๐, ๐ < ๐. So if ๐ is the root of the tree containing ๐, ๐, ๐, then, by the increasing condition, ๐ must be the vertex preceding ๐ on the unique ๐โ๐ path. But the same must be true of ๐, which is a contradiction. For the reverse implication, we must first verify that ๐น is acyclic. But if ๐น contains a cycle ๐ถ, then let ๐ be its maximum vertex. It follows that there are ๐๐, ๐๐ โ ๐ธ(๐ถ) and, by the maximum requirement, ๐, ๐ < ๐. This contradicts the assumption in this direction. Similarly one can show that if ๐น is not increasing, then one can produce two edges from the same ๐ธ ๐ and so we are done. โก It is now a simple matter to prove the following result of Hallam and Sagan [41]. The proof given here was obtained by Hallam, Martin, and Sagan [40]. Theorem 3.8.8. If ๐บ has ๐ = [๐], then ๐
isf(๐บ; ๐ก) = โ(๐ก โ |๐ธ ๐ |). ๐=1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
106
3. Counting with Ordinary Generating Functions
Proof. The coefficient of ๐ก๐โ๐ in the product is, up to sign, the sum of all terms of the form |๐ธ๐1 ||๐ธ๐2 | โฏ |๐ธ๐๐ | where the ๐๐ are distinct indices. But this product is the number of ways to pick one edge out of each of the sets ๐ธ๐1 , ๐ธ๐2 , . . . , ๐ธ๐๐ . So, by the previous lemma, the sum is the number of increasing forests with ๐ edges, finishing the proof. โก Returning to the question of when the chromatic and increasing spanning forest polynomials are equal, we need the following definition. Graph ๐บ has a perfect elimination order (peo) if there is a total ordering of ๐ as ๐ฃ 1 , ๐ฃ 2 , . . . , ๐ฃ ๐ such that, for all ๐, the set of vertices coming before ๐ฃ ๐ in this order and adjacent to ๐ฃ ๐ form the vertices of a clique (complete subgraph of ๐บ). This definition may seem strange at first glance, but it has been useful in various graph-theoretic contexts. Returning to our running example graph we see that the order 1, 2, 3, 4 is a peo since 1 is adjacent to no earlier vertex, 2 and 3 are both adjacent to a single previous vertex which is a ๐พ1 , and 4 is adjacent to 1 and 2 which form an edge also known as a ๐พ2 . We can now prove another result from [40]. Lemma 3.8.9. Let ๐บ have ๐ = [๐]. Write the edges of ๐บ as ๐๐ with ๐ < ๐ and order them lexicographically. For all ๐ โฅ 0 we have ISF๐ (๐บ) โ NBC๐ (๐บ). Furthermore, we have equality for all ๐ if and only if the natural order on [๐] is a peo. Proof. To prove the inclusion we suppose that ๐น is an increasing spanning forest which contains a broken circuit ๐ต and derive a contradiction. By the lexicographic ordering of the edges, ๐ต must be a path of the form ๐ฃ 1 , ๐ฃ 2 , . . . , ๐ฃ ๐ where ๐ฃ 1 = min{๐ฃ 1 , . . . , ๐ฃ ๐ } and ๐ฃ 2 > ๐ฃ ๐ . So there must be a smallest index ๐ โฅ 2 such that ๐ฃ ๐ > ๐ฃ ๐+1 . It follows that ๐ฃ ๐โ1 , ๐ฃ ๐+1 < ๐ฃ ๐ so that the two corresponding edges of ๐ต contradict Lemma 3.8.7. For the forward direction of the second statement we must show that if ๐, ๐ < ๐ and ๐๐, ๐๐ โ ๐ธ(๐บ), then ๐๐ โ ๐ธ(๐บ). By Lemma 3.8.7 again, {๐๐, ๐๐} is not the edge set of an increasing spanning forest. So, by the assumed equality, this set must contain a broken circuit. Since there are only two edges, this set must actually be a broken circuit, and ๐๐ โ ๐ธ(๐บ) must be the edge used to complete the cycle. The reverse implication is left as an exercise. โก From this result we immediately conclude the following. Theorem 3.8.10. Let ๐บ have ๐ = [๐]. Then isf(๐บ; ๐ก) = ๐(๐บ; ๐ก) if and only if the natural order on [๐] is a peo. โก
3.9. Combinatorial reciprocity When plugging a negative parameter into a counting function results in a sign times another enumerative function, then this is called combinatorial reciprocity. This concept was introduced and studied by Stanley [86]. We have already seen two examples Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
3.9. Combinatorial reciprocity
107
of this in equation (1.6) and Theorem 3.8.6 (and, more generally, Exercise 28 of this chapter). Here we will make a connection with recurrences and rational generating functions. See the text of Beck and Sanyal [5] for a whole book devoted to this subject. Before stating a general theorem, we return to the example with which we began Section 3.6. This was the sequence defined by ๐0 = 2 and ๐๐ = 3๐๐โ1 for ๐ โฅ 1. One can extend the domain of this recursion to all integral ๐, in which case one gets 2 = ๐0 = 3๐โ1 so that ๐โ1 = 2/3. Then 2/3 = ๐โ1 = 3๐โ2 yielding ๐โ2 = 2/32 , and so forth. An easy induction shows that for ๐ โค 0 we have ๐๐ = 2 โ
3๐ just as for ๐ โฅ 0. We can also compute the generating function for the negatively indexed part of the sequence, where it is convenient to start with ๐โ1 , which is the geometric series 2๐ฅ 2๐ฅ/3 2๐ฅ๐ = = . ๐ 3 1 โ ๐ฅ/3 3โ๐ฅ ๐โฅ1
โ ๐โ๐ ๐ฅ๐ = โ ๐โฅ1
Comparing this to ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ as found in (3.12) we see that โ๐(1/๐ฅ) =
โ2 2๐ฅ = = โ ๐ ๐ฅ๐ . 1 โ 3/๐ฅ 3 โ ๐ฅ ๐โฅ1 โ๐
The reader should have some qualms about writing ๐(1/๐ฅ) since we have gone to great pains to point out that ๐ฅ has no inverse in โ[[๐ฅ]]. Indeed, if we use the definition that ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ , then ๐(1/๐ฅ) = โ๐โฅ0 ๐๐ /๐ฅ๐ , which is not a formal power series! But if ๐(๐ฅ) can be expressed as a rational function ๐(๐ฅ) = ๐(๐ฅ)/๐(๐ฅ) where deg ๐(๐ฅ) โค deg ๐(๐ฅ) โ ๐, then we can make sense of this substitution as follows. Since ๐(๐ฅ) has degree ๐ we have that ๐ฅ๐ ๐(1/๐ฅ) is also a polynomial and is invertible since its constant coefficient is nonzero (Theorem 3.3.1). Furthermore, ๐ฅ๐ ๐(1/๐ฅ) is also a polynomial since ๐ โฅ deg ๐(๐ฅ). So we can define (3.25)
๐(1/๐ฅ) =
๐ฅ๐ ๐(1/๐ฅ) ๐ฅ๐ ๐(1/๐ฅ)
and stay inside the formal power series ring. With this convention, the following result makes sense. Theorem 3.9.1. Suppose that ๐๐ is a sequence defined for all ๐ โ โค and satisfying the linear recurrence relation with constant coefficients (3.18) for all such ๐. Letting ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ , we have โ ๐โ๐ ๐ฅ๐ = โ๐(1/๐ฅ). ๐โฅ1
Proof. By (3.25), to prove the theorem it suffices to show that ๐ฅ๐ ๐(1/๐ฅ) โ ๐โ๐ ๐ฅ๐ = โ๐ฅ๐ ๐(1/๐ฅ). ๐โฅ1
Note that by (3.20) we have ๐ฅ๐ ๐(1/๐ฅ) = ๐ฅ๐ + ๐ 1 ๐ฅ๐โ1 + ๐ 2 ๐ฅ๐โ2 + โฏ + ๐ ๐ . Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
108
3. Counting with Ordinary Generating Functions
So if ๐ โฅ 1, then, using (3.18) and the fact that ๐ฅ๐ ๐(1/๐ฅ) has degree at most ๐, [๐ฅ๐+๐ ]๐ฅ๐ ๐(1/๐ฅ) โ ๐โ๐ ๐ฅ๐ = ๐โ๐ + ๐ 1 ๐โ๐โ1 + ๐ 2 ๐โ๐โ2 + โฏ + ๐ ๐ ๐โ๐โ๐ ๐โฅ1
=0 = [๐ฅ๐+๐ ](โ๐ฅ๐ ๐(1/๐ฅ)). Similarly we can prove that this equality of coefficients continues to hold for โ๐ โค ๐ โค 0. This completes the proof. โก To illustrate this theorem, we consider the negative binomial expansion. So if one fixes ๐ โฅ 1, then using Theorem 3.4.2 and equation (3.16) ๐(๐ฅ) โ
๐ ๐+๐โ1 ๐ 1 = โ (( ))๐ฅ๐ = โ ( )๐ฅ . ๐ ๐ ๐โ1 (1 โ ๐ฅ) ๐โฅ0 ๐โฅ0
Note that since ๐ is fixed we are thinking of (๐+๐โ1 ) as a function of ๐. Substituting ๐โ1 โ๐ for ๐ in the binomial coefficient, we wish to consider the corresponding generating function ๐โ๐โ1 ๐ ๐(๐ฅ) = โ ( )๐ฅ . ๐โ1 ๐โฅ1 We note that (๐โ๐โ1 ) = 0 for 1 โค ๐ < ๐ since then 0 โค ๐ โ ๐ โ 1 < ๐ โ 1. So ๐ฅ๐ can ๐โ1 be factored out from ๐(๐ฅ) and, using (1.6) and the above expression for the negative binomial expansion, ๐(๐ฅ) = ๐ฅ๐ โ ( ๐โฅ๐
= ๐ฅ๐ โ ( ๐โฅ0
๐ โ ๐ โ 1 ๐โ๐ )๐ฅ ๐โ1
โ๐ โ 1 ๐ )๐ฅ ๐โ1
๐+1 = (โ1)๐โ1 ๐ฅ๐ โ (( ))๐ฅ๐ ๐ โ 1 ๐โฅ0 = (โ1)๐โ1 ๐ฅ๐ โ ( ๐โฅ0
=
๐+๐โ1 ๐ )๐ฅ ๐โ1
(โ1)๐โ1 ๐ฅ๐ . (1 โ ๐ฅ)๐
On the other hand, we could apply Theorem 3.9.1 and write ๐(๐ฅ) =
โ1 โ๐ฅ๐ (โ1)๐โ1 ๐ฅ๐ = = ๐ ๐ (1 โ 1/๐ฅ) (๐ฅ โ 1) (1 โ ๐ฅ)๐
giving the same result but with less computation. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
109
Exercises (1) Prove that for ๐ โ โ ๐
๐ โ 2๐ ( ) = 3๐ ๐ ๐=0 in two ways. (a) Use the Binomial Theorem. (b) Use a combinatorial argument. (c) Generalize this identity by replacing 2๐ by ๐๐ for any ๐ โ โ, giving both a proof using the Binomial Theorem and one which is combinatorial. (2) For ๐, ๐, ๐ โ โ show that (
๐+๐ ๐ ๐ ) = โ ( )( ) ๐ โ๐ ๐ ๐ ๐โฅ0
in three ways: by induction, using the Binomial Theorem, and using a combinatorial argument. (3) Let ๐ฅ1 , . . . , ๐ฅ๐ be variables. Prove the multinomial coefficient identity โ ๐1 +โฏ+๐๐
๐ ๐ ๐ ( )๐ฅ1 1 โฏ ๐ฅ๐๐ = (๐ฅ1 + โฏ + ๐ฅ๐ )๐ , ๐ , . . . , ๐ 1 ๐ =๐
in three ways: (a) by inducting on ๐, (b) by using the Binomial Theorem and inducting on ๐, (c) by a combinatorial argument. (4) (a) Prove Theorem 3.1.2. (b) Use this generating function to rederive Corollary 1.5.3. (5) (a) Recall that an inversion of ๐ โ ๐([๐]) is a pair (๐, ๐) with ๐ < ๐ and ๐๐ > ๐๐ and we call ๐๐ the maximum of the inversion. The inversion table of ๐ is ๐ผ(๐) = (๐1 , ๐2 , . . . , ๐๐ ) where ๐๐ is the number of inversions with maximum ๐. Show that 0 โค ๐๐ < ๐ for all ๐ and that ๐
inv ๐ = โ ๐๐ . ๐=1
(b) Let โ๐ = {(๐1 , ๐2 , . . . , ๐๐ ) โฃ 0 โค ๐๐ < ๐ for all ๐}. Show that the map ๐ โฆ ๐ผ(๐) is a bijection ๐([๐]) โ โ๐ . (c) Use part (b) and weight-generating functions to rederive Theorem 3.2.1. (6) Let st โถ ๐๐ โ โ be a statistic on permutations. Recall that for a permutation ๐ we let Av๐ (๐) denote the set of permutations in ๐๐ avoiding ๐. Say that permutations st
๐, ๐ are st-Wilf equivalent, written ๐ โก ๐, if for all ๐ โฅ 0 we have equality of the Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
110
3. Counting with Ordinary Generating Functions
generating functions ๐st ๐ =
โ ๐โAv๐ (๐)
โ
๐st ๐ .
๐โAv๐ (๐)
(a) Show that if ๐ and ๐ are st-Wilf equivalent, then they are Wilf equivalent. (b) Show that inv
132 โก 213 and inv
231 โก 312 and that there are no other inv-Wilf equivalences between two permutations in ๐3 . (c) Show that maj
132 โก 231 and maj
213 โก 312 and that there are no other maj-Wilf equivalences between two permutations in ๐3 . (7) (a) Prove that [
๐ ๐ ]=[ ] ๐ ๐โ๐
in three ways: using the ๐-factorial definition, using the interpretation in terms of integer partitions, and using the interpretation in terms of subspaces. (b) Prove the second recursion in Theorem 3.2.3 in two ways: by mimicking the proof of the first recursion and by using the first recursion in combination with part (a). (c) If ๐ โ [๐], then let ฮฃ๐ be the sum of the elements of ๐. Give two proofs of the following ๐-analogue of the fact that #([๐] ) = (๐๐): ๐ โ ๐ฮฃ๐ = ๐( ๐โ([๐] ) ๐
๐+1 2
)[ ๐ ] , ๐ ๐
one proof by induction and the other using Theorem 3.2.5. (d) Give two other proofs of Theorem 3.2.6: one by inducting on ๐ and one by using Theorem 3.2.5. (8) (a) Reprove Theorem 3.2.4 in two way: using integer partitions and using subspaces. (b) The Negative ๐-Binomial Theorem states that 1 ๐+๐โ1 ๐ = โ[ ]๐ก . ๐ (1 โ ๐ก)(1 โ ๐๐ก)(1 โ ๐2 ๐ก) . . . (1 โ ๐๐โ1 ๐ก) ๐โฅ0 Give three proofs of this result: inductive, using integer partitions, and using subspaces. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
111
(9) (a) Given ๐1 +๐2 +โฏ+๐๐ = ๐, define the corresponding ๐-multinomial coefficient to be [๐]๐ ! ๐ [ ] = ๐1 , ๐2 , . . . , ๐๐ ๐ [๐1 ]๐ ! [๐2 ]๐ ! . . . [๐๐ ]๐ ! if all ๐๐ โฅ 0 or zero otherwise. Prove that [
๐ ] ๐1 , ๐ 2 , . . . , ๐ ๐ ๐ ๐
= โ ๐๐1 +๐2 +โฏ+๐๐โ1 [ ๐=1
๐โ1 ] . ๐1 , . . . , ๐๐โ1 , ๐๐ โ 1, ๐๐+1 , . . . , ๐๐ ๐
(b) Define inversions, descents, and the major index for permutations (linear orderings) of the multiset ๐ = {{1๐1 , 2๐2 , . . . , ๐๐๐ }} exactly the way as was done for permutations without repetition. Let ๐(๐) be the set of permutations of ๐. Prove that โ
๐inv ๐ =
๐โ๐(๐)
โ
๐maj ๐ = [
๐โ๐(๐)
๐ ] . ๐1 , ๐ 2 , . . . , ๐ ๐ ๐
(c) Let ๐ be a vector space over ๐ฝ๐ of dimension ๐. Assume ๐ = {๐ 1 < โฏ < ๐ ๐ } โ {0, 1, . . . , ๐}. Then a flag of type ๐ is a chain of subspaces ๐น โถ ๐1 < ๐2 < โฏ < ๐๐ โค ๐ such that dim ๐ ๐ = ๐ ๐ for all ๐. The reason for this terminology is that when ๐ = 2 and ๐ = {0, 1, 2}, then ๐น consists of a point (the origin) contained in a line contained in a plane which could be viewed as a drawing of a physical flag with the point being the hole in the ground, the line being the flag pole, and the plane being the cloth flag itself. Give two proofs that #{๐น of type ๐} = [
๐ ] , ๐ 1 , ๐ 2 โ ๐ 1 , ๐ 3 โ ๐ 2 , . . . , ๐ ๐ โ ๐ ๐โ1 , ๐ โ ๐ ๐ ๐
one by mimicking the proof of Theorem 3.2.6 and one by induction on ๐. (10) (a) Prove that in โ[[๐ฅ]] we have ๐๐๐ฅ = (๐๐ฅ )๐ for any ๐ โ โ. (b) Define formal power series for the trigonometric functions using their usual Taylor expansions. Prove that in โ[[๐ฅ]] we have sin2 ๐ฅ + cos2 ๐ฅ = 1 and sin 2๐ฅ = 2 sin ๐ฅ cos ๐ฅ. (c) If one is given a sequence ๐0 , ๐1 , ๐2 , . . . and defines ๐๐ (๐ฅ) = ๐๐ ๐ฅ๐ , then show that โ๐โฅ0 ๐๐ (๐ฅ) = ๐(๐ฅ) where ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ . (d) Prove the backwards direction of Theorem 3.3.2. (e) Use Theorems 3.3.1 and 3.3.3 to reprove that 1/๐ฅ and ๐1+๐ฅ are not well-defined in โ[[๐ฅ]]. (f) Prove Theorem 3.3.4 (11) Prove that if ๐, ๐ are summable sets, then so is ๐ ร ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
112
3. Counting with Ordinary Generating Functions
(12) Say that ๐(๐ฅ) โ โ[[๐ฅ]] has a square root if there is ๐(๐ฅ) โ โ[[๐ฅ]] such that ๐(๐ฅ) = ๐(๐ฅ)2 . (a) Prove that ๐(๐ฅ) has a square root if and only if mdeg ๐(๐ฅ) is even. (b) Show that as formal power series (1 + ๐ฅ)1/2 = โ ( ๐โฅ0
1/2 ๐ )๐ฅ . ๐
(c) Show that as formal power series (๐๐ฅ )
1/2
๐ฅ๐ . 2๐ ๐! ๐โฅ0
=โ
(d) Generalize the previous parts of this exercise to ๐th roots for ๐ โ โ. (13) Give a second proof of Theorem 3.4.2 by using induction. (14) Prove Theorem 3.4.3. (15) Prove Theorem 3.5.1. (16) (a) Finish the proof of Theorem 3.5.3(a). (b) Give a second proof of Theorem 3.5.3(b) by using Theorem 3.2.5. (c) Show that the generating function for the number of partitions of ๐ with largest part ๐ equals the generating function for the number of partitions of ๐ with exactly ๐ parts and that both are equal to the product ๐ฅ๐ . (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) (d) The Durfee square of a Young diagram ๐ is the largest square partition (๐ ๐ ) such that (๐ ๐ ) โ ๐. Use this concept to prove that 2
๐ฅ๐ . (1 โ ๐ฅ)2 (1 โ ๐ฅ2 )2 โฏ (1 โ ๐ฅ๐ )2 ๐โฅ0
โ ๐(๐)๐ฅ๐ = โ ๐โฅ0
(17) Let ๐๐ be the number of integer partitions of ๐ such that any part ๐ is repeated fewer than ๐ times and let ๐๐ be the number of integer partitions of ๐ such that no part is a square. Use generating functions to show that ๐๐ = ๐๐ for all ๐. (18) Given ๐ โฅ 2, use generating functions to show that the number of partitions of ๐ where each part is repeated fewer than ๐ times equals the number of partitions of ๐ into parts not divisible by ๐. Note that bijective proofs of this result were given in Exercise 15 of Chapter 2. (19) (a) Show that ๐น๐ is the closest integer to ๐
1 + โ5 ( ) 2 โ5 1
for ๐ โฅ 1. (b) Prove that ๐น๐2 = {
๐น๐โ1 ๐น๐+1 + 1 ๐น๐โ1 ๐น๐+1 โ 1
if ๐ is odd, if ๐ is even
in two ways: using equation (3.14) and by a combinatorial argument. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
(20) (a) (b) (c) (d) (e)
113
Use the algorithm in Section 3.6 to rederive Theorem 3.1.1. Complete the proof of Theorem 3.6.1. Give a second proof of Theorem 3.6.1 using Theorem 3.1.2 Prove Theorem 3.6.2. Let ๐ be the infinite matrix with rows and columns indexed by โ and with ๐ (๐, ๐) being the entry in row ๐ and column ๐. Similarly define ๐ with entries ๐(๐, ๐). Show that ๐๐ = ๐ ๐ = ๐ผ where ๐ผ is the โ ร โ identity matrix. Hint: Use Theorems 3.6.1 and 3.6.2.
(21) Given ๐ โ โ and ๐ โ โค, define the corresponding ๐-Stirling number of the second kind by ๐[0, ๐] = ๐ฟ0,๐ and, for ๐ โฅ 1, ๐[๐, ๐] = ๐[๐ โ 1, ๐ โ 1] + [๐]๐ ๐[๐ โ 1, ๐]. (a) Show that ๐ฅ๐ . (1 โ [1]๐ ๐ฅ)(1 โ [2]๐ ๐ฅ) โฏ (1 โ [๐]๐ ๐ฅ)
โ ๐[๐, ๐]๐ฅ๐ = ๐โฅ0
(b) All set partitions ๐ = ๐ต1 /๐ต2 / . . . /๐ต๐ in the rest of this problem will be written in standard form, which means that 1 = min ๐ต1 < min ๐ต2 < โฏ < min ๐ต๐ . An inversion of ๐ is a pair (๐, ๐ต๐ ) where ๐ โ ๐ต๐ for some ๐ < ๐ and ๐ > min ๐ต๐ . We let inv ๐ be the number of inversions of ๐. For example, ๐ = ๐ต1 /๐ต2 /๐ต3 = 136/25/4 has inversions (3, ๐ต2 ), (6, ๐ต2 ), (6, ๐ต3 ), and (5, ๐ต3 ) so that inv ๐ = 4. Show that ๐[๐, ๐] = โ ๐inv ๐ . ๐โ๐([๐],๐)
(c) A descent of a set partition ๐ is a pair (๐, ๐ต๐+1 ) where ๐ โ ๐ต๐ and ๐ > min ๐ต๐ . We let des ๐ be the number of descents of ๐. In the previous example, ๐ has descents (3, ๐ต2 ), (6, ๐ต2 ), and (5, ๐ต3 ) so that des ๐ = 3. The descent multiset of ๐ is denoted Des ๐ and is the multiset {{1๐1 , 2๐2 , . . . , ๐๐๐ โฃ for all ๐, ๐๐ = number of descents (๐, ๐ต๐+1 )}}. The major index of ๐ is maj ๐ =
โ ๐ = ๐1 + 2๐2 + โฏ + ๐๐๐ . ๐โDes ๐
In our running example Des ๐ = {{12 , 21 }} so that maj ๐ = 1 + 1 + 2 = 4. Show that ๐[๐, ๐] = โ ๐maj ๐ . ๐โ๐([๐],๐)
(22) Given ๐ โ โ and ๐ โ โค, define the corresponding signless ๐-Stirling number of the first kind by ๐[0, ๐] = ๐ฟ0,๐ and, for ๐ โฅ 1, ๐[๐, ๐] = ๐[๐ โ 1, ๐ โ 1] + [๐ โ 1]๐ ๐[๐ โ 1, ๐] (a) Show that โ ๐[๐, ๐]๐ฅ๐ = ๐ฅ(๐ฅ + [1]๐ )(๐ฅ + [2]๐ ) โฏ (๐ฅ + [๐ โ 1]๐ ). ๐โฅ0
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
114
3. Counting with Ordinary Generating Functions
(b) The standard form of ๐ โ ๐๐ is ๐ = ๐
1 ๐
2 โฏ ๐
๐ where the ๐
๐ are the cycles of ๐, min ๐
1 < min ๐
2 < โฏ < min ๐
๐ , and each ๐
๐ is written beginning with min ๐
๐ . Define the cycle major index of ๐ to be maj๐ ๐ = maj ๐โฒ where ๐โฒ is the permutation in one-line form obtained by removing the cycle parentheses in the standard form of ๐. If, for example, ๐ = (1, 7, 2)(3, 6, 8)(4, 5), then ๐โฒ = 17236845 so that maj๐ ๐ = 2 + 6 = 8. Show that ๐[๐, ๐] = โ ๐maj๐ ๐ . ๐โ๐([๐],๐)
(23) Reprove the formula ๐ถ(๐) =
2๐ 1 ( ) ๐+1 ๐
by using Theorem 3.6.3. (24) (a) Show that if ๐, ๐ โ โ are constants, then (๐+๐ ) is a polynomial in ๐ of degree ๐. ๐ (b) Show that the polynomials ๐ ๐+1 ๐+2 ( ), ( ), ( ), . . . 0 1 2 form a basis for the algebra of polynomials in ๐. (c) Use part (a) to complete the proof of Theorem 3.7.1. (25) Redo the solution for the first recursion in Section 3.6 as well as the one for ๐น๐ using the method of undetermined coefficients. (26) Prove for the ๐-cycle that ๐(๐ถ๐ ; ๐ก) = (๐ก โ 1)๐ + (โ1)๐ (๐ก โ 1) in two ways: using deletion-contraction and using NBC sets. (27) Prove Theorem 3.8.4 using induction and give a second proof of parts (b)โ(d) using NBC sets. (28) (a) Complete the proof of Theorem 3.8.6. (b) Let ๐บ = (๐, ๐ธ) be a graph and ๐ก โ โ. Call an acyclic orientation ๐ and a (not necessarily proper) coloring ๐ โถ ๐ โ [๐ก] compatible if, for all arcs ๐ขโ๐ฃ of ๐, we have ๐(๐ข) โค ๐(๐ฃ). Show that if #๐ = ๐, then ๐(๐บ; โ๐ก) = (โ1)๐ (number of compatible pairs (๐, ๐)). (c) Show that Theorem 3.8.6 is a special case of part (b). (29) Finish the proofs of Lemma 3.8.7 and Lemma 3.8.9. (30) (a) Call a permutation ๐ which avoids ฮ = {231, 312, 321} tight. Show that ๐ is tight if and only if ๐ is an involution having only 2-cycles of the form (๐, ๐ + 1) for some ๐. (b) Let ๐บ be a graph with ๐ = [๐]. Call a spanning forest ๐น of ๐บ tight if the sequence of labels on any path starting at a root of ๐น avoids ฮ as in part (a). Let TSF๐ (๐บ) = {๐น โฃ ๐น is a tight spanning forest of ๐บ with ๐ edges}. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
115
Show that if ๐บ has no 3-cycles, then for all ๐ โฅ 0 TSF๐ (๐บ) โ NBC๐ (๐บ). (c) A candidate path in a graph ๐บ with no 3-cycles is a path of the form ๐, ๐, ๐, ๐ฃ 1 , ๐ฃ 2 , . . . , ๐ฃ ๐ = ๐ such that ๐ < ๐ < ๐, ๐ โฅ 1, and ๐ฃ ๐ is the only ๐ฃ ๐ smaller than ๐. A total order on ๐(๐บ) is called a quasiperfect ordering (qpo) if every candidate path satisfies the following condition: either ๐๐ โ ๐ธ(๐บ), or ๐ < ๐ and ๐๐ โ ๐ธ(๐บ). Consider the generating function tsf(๐บ; ๐ก) = โ (โ1)๐ tsf๐ (๐บ)๐ก๐โ๐ . ๐โฅ0
Show that tsf(๐บ; ๐ก) = ๐(๐บ; ๐ก) if and only if the natural order on [๐] is a qpo. (31) Fill in the details of the case โ๐ โค ๐ โค 0 in the proof of Theorem 3.9.1. (32) (a) Extend the Fibonacci numbers ๐น๐ to all ๐ โ โค by insisting that their recursion continue to hold for ๐ < 0. Show that if ๐ โฅ 0, then ๐นโ๐ = (โ1)๐โ1 ๐น๐ . (b) Find โ๐โฅ1 ๐นโ๐ ๐ฅ๐ in two ways: by using part (a) and by using Theorem 3.9.1.
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/04
Chapter 4
Counting with Exponential Generating Functions
Given a sequence ๐0 , ๐1 , ๐๐ , . . . of complex numbers, one can associate with it an exponential generating function where ๐๐ is the coefficient of ๐ฅ๐ /๐!. In certain cases it turns out that the exponential generating function is easier to deal with than the ordinary one. This is particularly true if the ๐๐ count combinatorial objects obtained from some set of labels. We give a method for dealing with such structures which again give rise to Sum and Product Rules as well as an Exponential Formula unique to this setting.
4.1. First examples Given ๐0 , ๐1 , ๐๐ , . . . where ๐๐ โ โ for all ๐, the corresponding exponential generating function (egf) is ๐ฅ ๐ฅ2 ๐ฅ๐ ๐น(๐ฅ) = ๐0 + ๐1 + ๐2 + โฏ = โ ๐๐ . 1! 2! ๐! ๐โฅ0 In order to distinguish these from the ordinary generating functions (ogfs) in the previous chapter, we will often use capital letters for egfs and lowercase ones for ogfs. The use of the adjective โexponentialโ is because in the simple case when ๐๐ = 1 for all ๐, the corresponding egf is ๐น(๐ฅ) = โ๐โฅ0 ๐ฅ๐ /๐! = ๐๐ฅ . To illustrate why egfs may be useful in studying a sequence, consider ๐๐ = ๐! for ๐ โฅ 0. The ogf is ๐(๐ฅ) = โ๐โฅ0 ๐! ๐ฅ๐ and this power series cannot be simplified. On the other hand, the egf is ๐ฅ๐ 1 ๐น(๐ฅ) = โ ๐! = ๐! 1 โ ๐ฅ ๐โฅ0 which can now be manipulated if necessary. To get some practice in using egfs, we will now compute some examples. One technique which occurs often in determining generating functions is the interchange of 117 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
118
4. Counting with Exponential Generating Functions
summations. As an example, consider the derangement numbers ๐ท(๐) and the formula which was given for them in Theorem 2.1.2. So ๐
โ ๐ท(๐) ๐โฅ0
๐ฅ๐ 1 ๐ฅ๐ = โ ๐! ( โ (โ1)๐ ) ๐! ๐! ๐! ๐โฅ0 ๐=0 (โ1)๐ โ ๐ฅ๐ ๐! ๐โฅ0 ๐โฅ๐
=โ
(โ1)๐ ๐ฅ๐ ๐! 1 โ ๐ฅ ๐โฅ0
=โ
=
1 (โ๐ฅ)๐ โ 1 โ ๐ฅ ๐โฅ0 ๐!
=
๐โ๐ฅ . 1โ๐ฅ
We will be able to give a much more combinatorial derivation of this formula once we have introduced the theory of labeled structures in Section 4.3. For now, we just record the result for future reference. Theorem 4.1.1. We have โ ๐ท(๐) ๐โฅ0
๐ฅ๐ ๐โ๐ฅ = . ๐! 1โ๐ฅ
โก
If the given sequence is defined by a recurrence relation, then one can use a slight modification of the algorithm in Section 3.6 to compute its egf. One just multiplies by ๐ฅ๐ /๐!, rather than ๐ฅ๐ , and sums. Note that the largest index in the recursion may not be the best choice to use as the power on ๐ฅ because of the following considerations. Given ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ , then its formal derivative is the formal power series ๐โฒ (๐ฅ) = โ ๐๐๐ ๐ฅ๐โ1 . ๐โฅ0
This derivative enjoys most of the usual properties of the ordinary analytic derivative such as linearity and the product rule. One similarly defines formal integrals. Note that if one starts with an egf ๐น(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ /๐!, then (4.1)
๐น โฒ (๐ฅ) = โ ๐๐๐ ๐โฅ0
๐ฅ๐โ1 ๐ฅ๐โ1 ๐ฅ๐ = โ ๐๐+1 = โ ๐๐ ๐! ๐! (๐ โ 1)! ๐โฅ0 ๐โฅ1
which is just the egf for the same sequence shifted up by one. So it can simplify things if the subscript on an element of the sequence is greater than the exponent of the corresponding power of ๐ฅ. Let us consider the Bell numbers and their recurrence relation given in Theorem 1.4.1. Let ๐ต(๐ฅ) = โ๐โฅ0 ๐ต๐ ๐ฅ๐ /๐!. It will be convenient to replace ๐ by ๐ + 1 and ๐ by ๐ + 1 in the recursion before multiplying by ๐ฅ๐ /๐! and summing. So using (4.1) and Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.1. First examples
119
the summation interchange trick we obtain ๐ต โฒ (๐ฅ) = โ ๐ต(๐ + 1) ๐โฅ0
๐ฅ๐ ๐!
๐
๐ ๐ฅ๐ = โ ( โ ( )๐ต(๐ โ ๐)) ๐! ๐ ๐โฅ0 ๐=0 ๐
1 ๐ต(๐ โ ๐)๐ฅ๐ ๐! (๐ โ ๐)! ๐=0
=โ โ ๐โฅ0
=โ ๐โฅ0
๐ฅ๐โ๐ ๐ฅ๐ โ ๐ต(๐ โ ๐) ๐! ๐โฅ๐ (๐ โ ๐)!
๐ฅ๐ ๐ต(๐ฅ) ๐! ๐โฅ0
=โ
= ๐๐ฅ ๐ต(๐ฅ). We now have a differential equation to solve, but we must take some care to make sure this can be done formally. To this end we define the formal natural logarithm by (4.2)
ln(1 + ๐ฅ) = ๐ฅ โ
๐ฅ2 ๐ฅ3 (โ1)๐โ1 ๐ฅ๐ + โโฏ= โ 2 3 ๐ ๐โฅ1
which can be thought of as formally integrating the geometric series for 1/(1 + ๐ฅ). Note that since ln(1+๐ฅ) has an infinite number of terms, to have ln(1+๐(๐ฅ)) well-defined it must be that ๐(๐ฅ) has constant term 0 by Theorem 3.3.3. In other words, for an infinite series ๐(๐ฅ), we have ln ๐(๐ฅ) is only defined if the constant term of ๐(๐ฅ) is 1. Luckily this is true of ๐ต(๐ฅ) so we can separate variables above to get ๐ต โฒ (๐ฅ)/๐ต(๐ฅ) = ๐๐ฅ and then formally integrate to get ln ๐ต(๐ฅ) = ๐๐ฅ + ๐ for some constant ๐. By definition (4.2) a natural log has no constant term so we must take ๐ = โ1. Solving for ๐ต(๐ฅ) we obtain the following result. Again, a more combinatorial proof will be given later. Theorem 4.1.2. We have โ ๐ต(๐) ๐โฅ0
๐ฅ๐ ๐ฅ = ๐๐ โ1 . ๐!
โก
We end this section by discussing certain permutations whose descent sets have a nice structure. To compute their egf we will need to define the formal sine power series by ๐ฅ3 ๐ฅ5 ๐ฅ2๐+1 sin ๐ฅ = ๐ฅ โ + โ โฏ = โ (โ1)๐ 3! 5! (2๐ + 1)! ๐โฅ0 and
1 sin ๐ฅ , tan ๐ฅ = . cos ๐ฅ cos ๐ฅ Note that sec ๐ฅ and tan ๐ฅ are well-defined by Theorem 3.3.1. cos ๐ฅ = (sin ๐ฅ)โฒ ,
sec ๐ฅ =
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
120
4. Counting with Exponential Generating Functions
Call a permutation ๐ โ ๐([๐]) alternating if (4.3)
๐1 > ๐2 < ๐3 > ๐4 < โฏ
or equivalently if Des ๐ consists of the odd number in [๐]. The ๐th Euler number is ๐ธ๐ = the number of alternating ๐ โ ๐([๐]). For example, when ๐ = 4 then the alternating permutations are 2143, 3142, 3241, 4132, 4231 so ๐ธ4 = 5. A permutation is complement alternating if ๐1 < ๐2 > ๐3 < ๐4 > โฏ or equivalently ๐๐ is alternating where ๐๐ is the complement of ๐ as defined in Exercise (37)(b) of Chapter 1. Clearly ๐ธ๐ also counts the number of complement alternating ๐ โ ๐([๐]). More generally, define any sequence of integers to be alternating using (4.3) and similarly for complement alternating. We have the following result for the Euler numbers. Theorem 4.1.3. We have ๐ธ0 = ๐ธ1 = 1 and, for ๐ โฅ 1, ๐
๐ 2๐ธ๐+1 = โ ( )๐ธ ๐ ๐ธ๐โ๐ . ๐ ๐=0 Also โ ๐ธ๐ ๐โฅ0
๐ฅ๐ = sec ๐ฅ + tan ๐ฅ. ๐!
Proof. To prove the recurrence it will be convenient to consider the set ๐ which is the union of all permutations which are either alternating or complement alternating in ๐([๐ + 1]). So #๐ = 2๐ธ๐+1 . Pick ๐ โ ๐ and suppose ๐๐ = ๐ + 1. Then ๐ factors as a word ๐ = ๐โฒ (๐ + 1)๐โณ . Suppose first that ๐ is alternating. Then ๐ is odd, ๐โฒ is alternating, and ๐โณ is complement alternating. The number of ways of choosing the elements of ๐โฒ is (๐๐) and the remaining ones are used for ๐โณ . The number of ways of arranging the elements for ๐โฒ in alternating order is ๐ธ ๐ , and for ๐โณ it is ๐ธ๐โ๐ . So the total number of such ๐ is (๐๐)๐ธ ๐ ๐ธ๐โ๐ where ๐ is odd. Similar considerations show that the same formula holds for even ๐ when ๐ is complement alternating. The summation side of the recursion follows. Now let ๐ธ(๐ฅ) be the egf for the ๐ธ๐ . Multiplying the recurrence by ๐ฅ๐ /๐! and summing over ๐ โฅ 1 one obtains the differential equation and boundary condition 2๐ธ โฒ (๐ฅ) = ๐ธ(๐ฅ)2 + 1
and
๐ธ(0) = 1
where, to make things well-defined for formal power series, ๐ธ(0) is an abbreviation for the constant term of ๐ธ(๐ฅ). One now obtains the unique solution ๐ธ(๐ฅ) = sec ๐ฅ + tan ๐ฅ, either by separation of variables or by verifying that this function satisfies the differential equation and initial condition. โก
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.2. Generating functions for Eulerian polynomials
121
4.2. Generating functions for Eulerian polynomials In Section 3.2 we saw that the inv and maj statistics have the same distribution. It turns out that there are statistics that have the same distribution as des and these are called Eulerian. The polynomials having this distribution have nice corresponding generating functions of both the ordinary and exponential type. We will discuss them in this section. A whole book devoted to this topic has been written by Petersen [69]. Given ๐, ๐ โ โ with 0 โค ๐ < ๐, the corresponding Eulerian number is ๐ด(๐, ๐) = #{๐ โ ๐๐ โฃ des ๐ = ๐}. As usual, we let ๐ด(๐, ๐) = 0 if ๐ < 0 or ๐ โฅ ๐ with the exception ๐ด(0, 0) = 1. For example, if ๐ = 3, then we have ๐ des ๐ = ๐
0
1
2
123
132, 213, 231, 312
321
so that ๐ด(3, 0) = 1,
๐ด(3, 1) = 4,
๐ด(3, 2) = 1.
Be sure not to confuse these Eulerian numbers with the Euler numbers introduced in the previous section. Also, some authors use ๐ด(๐, ๐) to denote the number of permutations in ๐๐ having ๐ โ 1 descents. Some elementary properties of the ๐ด(๐, ๐) are given in the next result. It will be convenient to let ๐ด([๐], ๐) = {๐ โ ๐๐ โฃ des ๐ = ๐}. Theorem 4.2.1. Suppose ๐ โฅ 0. (a) The Eulerian numbers satisfy the initial condition ๐ด(0, ๐) = ๐ฟ ๐,0 and recurrence relation ๐ด(๐, ๐) = (๐ + 1)๐ด(๐ โ 1, ๐) + (๐ โ ๐)๐ด(๐ โ 1, ๐ โ 1) for ๐ โฅ 1. (b) The Eulerian numbers are symmetric in that ๐ด(๐, ๐) = ๐ด(๐, ๐ โ ๐ โ 1). (c) We have โ ๐ด(๐, ๐) = ๐! . ๐
Proof. We leave all except the recursion as an exercise. Suppose ๐ โ ๐ด([๐], ๐). Then removing ๐ from ๐ results in ๐โฒ โ ๐ด([๐ โ 1], ๐) or ๐โณ โ ๐ด([๐ โ 1], ๐ โ 1) depending on the relative size of the elements to either side of ๐ in ๐. A permutation ๐โฒ will result if either the ๐ in ๐ is in the space corresponding to a descent of ๐โฒ , or at the end of ๐โฒ . So a given ๐โฒ will result ๐+1 times by this method, which accounts for the first term in the sum. Similarly, one obtains a ๐โณ from ๐ if ๐ is either in the space of an ascent or at the beginning. So the total number of repetitions in this case is ๐ โ ๐ and the recurrence is proved. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
122
4. Counting with Exponential Generating Functions
The ๐th Eulerian polynomial is ๐ด๐ (๐) = โ ๐ด(๐, ๐)๐๐ = โ ๐des ๐ . ๐โฅ0
๐โ๐๐
Any statistic having distribution ๐ด๐ (๐) is said to be an Eulerian statistic. One of the other famous Eulerian statistics counts excedances. An excedance of a permutation ๐ โ ๐๐ is an integer ๐ such that ๐(๐) > ๐. This gives rise to the excedance set Exc ๐ = {๐ โฃ ๐(๐) > ๐} and excedance statistic exc ๐ = # Exc ๐. To illustrate, if ๐ = 3167542, then ๐(1) = 3, ๐(3) = 6, and ๐(4) = 7 while ๐(๐) โค ๐ for other ๐. So Exc ๐ = {1, 3, 4} and exc ๐ = 3. Making a chart for ๐ = 3 as we did for des gives ๐ 0 1 2 exc ๐ = ๐
123
132, 213, 312, 321
231
so that the number of permutations in each column is given by the ๐ด(3, ๐), even though the sets of permutations in the two tables are not necessarily equal. In order to prove that ๐ด(๐, ๐) also counts permutations by excedances, we will need a map that is so important in enumerative combinatorics that it is sometimes called the fundamental bijection. Before we can define this function, we will need some more concepts. Similar to what was done in Section 1.12, call an element ๐๐ of ๐ โ ๐๐ a left-right maximum if ๐๐ > max{๐1 , ๐2 , . . . , ๐๐โ1 }. Note that ๐1 and ๐ are always left-right maxima and that the left-right maxima increase left-to-right. To illustrate, the left-right maxima of ๐ = 51327846 are 5, 7, and 8. The left-right maxima of ๐ determine the left-right factorization of ๐ into factors ๐๐ ๐๐+1 . . . ๐๐โ1 where ๐๐ is a left-right maximum and ๐๐ is the next such maximum. In our example ๐, the factorization is 5132, 7, and 846. Recall that since disjoint cycles commute, there are many ways of writing the disjoint cycle decomposition ๐ = ๐ 1 ๐ 2 โฏ ๐ ๐ . We wish to distinguish one which is analogous to the left-right factorization. The canonical cycle decomposition of ๐ is obtained by writing each ๐ ๐ so that it starts with max ๐ ๐ and then ordering the cycles so that max ๐ 1 < max ๐ 2 < โฏ < max ๐ ๐ . To illustrate, the permutation ๐ = (7, 1, 8)(2, 4, 5, 3)(6) written canonically becomes ๐ = (5, 3, 2, 4)(6)(8, 7, 1). The fundamental map is ฮฆ โถ ๐๐ โ ๐๐ where ฮฆ(๐) is obtained by replacing each left-right factor ๐๐ ๐๐+1 . . . ๐๐โ1 by the cycle (๐๐ , ๐๐+1 , . . . , ๐๐โ1 ). For example ฮฆ(51327846) = (5, 1, 3, 2)(7)(8, 4, 6) = 35261874. Note that from the definitions it follows that the cycle decomposition of ฮฆ(๐) obtained will be the canonical one. It is also easy to construct an inverse for ฮฆ: given ๐ โ ๐๐ , we construct its canonical cycle decomposition and then just remove the parentheses Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.2. Generating functions for Eulerian polynomials
123
and commas to get ๐. These maps are inverses since the inequalities defining the leftright factorization and canonical cycle decomposition are the same. We have proved the following. Theorem 4.2.2. The fundamental map ฮฆ โถ ๐๐ โ ๐๐ is a bijection.
โก
Corollary 4.2.3. For ๐, ๐ โฅ 0 we have ๐ด(๐, ๐) = number of ๐ โ ๐๐ with ๐ excedances. Proof. A coexcedance of ๐ โ ๐๐ is ๐ โ [๐] such that ๐(๐) < ๐. Note that the distribution of coexcedances over ๐๐ is the same as for excedances. Indeed, we have a bijection on ๐๐ defined by ๐ โฆ ๐โ1 . And this bijection has the property that the number of excedances of ๐ is the number of coexcedances of ๐โ1 because one obtains the twoline notation for ๐โ1 (as defined in Section 1.5) by taking the two-line notation for ๐, interchanging the top and bottom lines, and then permuting the columns until the first row is 12 . . . ๐. We now claim that if ฮฆ(๐) = ๐ where ฮฆ is the fundamental bijection, then des ๐ is the number of coexcedances of ๐ which will finish the proof. But if we we have a descent ๐๐ > ๐๐+1 in ๐, then ๐๐ , ๐๐+1 must be in the same factor of the left-right factorization. So in ฮฆ(๐) we have a cycle mapping ๐๐ to ๐๐+1 . This makes ๐๐ a coexcedance of ๐. Similar ideas show that no ascent of ๐ gives rise to a coexcedance of ๐ and so we are done. โก We will now derive two generating functions involving the Eulerian polynomials, one ordinary and one exponential. Theorem 4.2.4. For ๐ โฅ 0 we have ๐ด๐ (๐) = โ (๐ + 1)๐ ๐๐ . (4.4) (1 โ ๐)๐+1 ๐โฅ0 Proof. We will count descent partitioned permutations ๐ which consist of a permutation ๐ โ ๐๐ which has bars inserted in some of its spaces either between elements or before ๐1 or after ๐๐ , subject to the restriction that the space between each descent ๐๐ > ๐๐+1 must have a bar. For example, if ๐ = 2451376, then we could have ๐ = 24|5||137|6|. Let ๐(๐) be the number of bars in ๐. We will show that both sides of (4.4) are the generating function ๐(๐) = โ๐ ๐๐(๐) . First of all, given ๐, what is its contribution to ๐(๐)? First we must put bars in the descents of ๐ which results in a factor of ๐des ๐ . Now we can choose the rest of the bars by putting them in any of the ๐ + 1 spaces of ๐ with repetition allowed which, by Theorem 3.4.2, gives a factor of 1/(1 โ ๐)๐+1 . So ๐(๐) = โ ๐โ๐๐
๐des ๐ ๐ด๐ (๐) = (1 โ ๐)๐+1 (1 โ ๐)๐+1
which is the first half of what we wished to prove. On the other hand, the coefficient of ๐๐ in ๐(๐) is the number of ๐ which have exactly ๐ bars. One can construct these permutations as follows. Start with ๐ bars Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
124
4. Counting with Exponential Generating Functions
which create ๐ + 1 spaces between them. Now place the numbers 1, . . . , ๐ between the bars, making sure that the numbers between two consecutive bars form an increasing sequence. So we are essentially placing ๐ distinguishable balls into ๐ + 1 distinguishable boxes since the ordering in each box is fixed. By the twelvefold way, there are (๐ + 1)๐ ways of doing this, which completes the proof. โก We can now use the ogf just derived to find the egf for the polynomials ๐ด๐ (๐ฅ). Theorem 4.2.5. We have โ ๐ด๐ (๐)
(4.5)
๐โฅ0
๐โ1 ๐ฅ๐ = . ๐! ๐ โ ๐(๐โ1)๐ฅ
Proof. Multiply both sides of the equality in the previous theorem by the quantity (1 โ ๐)๐ ๐ฅ๐ /๐! and sum over ๐. The left-hand side becomes (1 โ ๐)๐ ๐ด๐ (๐)๐ฅ๐ 1 ๐ฅ๐ โ ๐ด๐ (๐) . = ๐+1 1 โ ๐ ๐โฅ0 ๐! (1 โ ๐) ๐! ๐โฅ0 โ
And the right side is now โ โ ๐๐ ๐โฅ0 ๐โฅ0
[(1 โ ๐)๐ฅ(๐ + 1)]๐ (1 โ ๐)๐ (๐ + 1)๐ ๐ฅ๐ = โ ๐๐ โ ๐! ๐! ๐โฅ0 ๐โฅ0 = โ ๐๐ ๐(1โ๐)๐ฅ(๐+1) ๐โฅ0
=
๐(1โ๐)๐ฅ 1 โ ๐๐(1โ๐)๐ฅ
1 . ๐(๐โ1)๐ฅ โ ๐ Setting the two sides equal and solving for the desired generating function completes the proof. โก =
4.3. Labeled structures There is a method for working combinatorially with exponential generating functions which we will present in the following sections. It is based on Joyalโs theory of species [47]. His original method used the machinery of categories and functors. But for the type of enumeration we will be doing, it is not necessary to use this level of generality. An exposition of the full theory can be found in the textbook of Bergeron, Labelle, and Leroux [11]. A labeled structure is a function ๐ฎ which assigns to each finite set ๐ฟ a finite set ๐ฎ(๐ฟ) such that (4.6)
#๐ฟ = #๐ โน #๐ฎ(๐ฟ) = #๐ฎ(๐).
We call ๐ฟ the label set and ๐ฎ(๐ฟ) the set of structures on ๐ฟ. We let ๐ ๐ = #๐ฎ(๐ฟ) Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.3. Labeled structures
125
for any ๐ฟ of cardinality ๐, and this is well-defined because of (4.6). We sometimes use ๐ฎ(โ
) as an alternative notation for the structure ๐ฎ. We also have the corresponding egf ๐น๐ฎ = ๐น๐ฎ(โ
) (๐ฅ) = โ ๐ ๐ ๐โฅ0
๐ฅ๐ . ๐!
Although these definitions may seem very abstract, we have already seen many examples of labeled structures. It is just that we have not identified them as such. The rest of this section will be devoted to putting these examples in context. A summary can be found in Table 4.1. To start, consider the labeled structure defined by ๐ฎ(๐ฟ) = 2๐ฟ . So ๐ฎ assigns to each label set ๐ฟ the set of subsets of ๐ฟ. To illustrate ๐ฎ({๐, ๐}) = {โ
, {๐}, {๐}, {๐, ๐}}. Clearly ๐ฎ satisfies (4.6) with ๐ ๐ = #2[๐] = 2๐ . So the associated generating function is (4.7)
๐น2โ
(๐ฅ) = โ 2๐ ๐โฅ0
๐ฅ๐ = ๐2๐ฅ . ๐!
We will also want to specify the size of the subsets under consideration by using the structure ๐ฎ(๐ฟ) = (๐ฟ๐) for some fixed ๐ โฅ 0. Now we have ๐ ๐ = (๐๐) and, using the fact that this binomial coefficient is zero for ๐ < ๐, (4.8)
๐ ๐ฅ๐ ๐! ๐ฅ๐ ๐ฅ๐โ๐ ๐ฅ๐ ๐ฅ ๐ฅ๐ โ โ
= ๐น( โ
) (๐ฅ) = โ ( ) = โ = ๐ . ๐ ๐! ๐! ๐โฅ๐ (๐ โ ๐)! ๐! ๐! (๐ โ ๐)! ๐! ๐ ๐โฅ0 ๐โฅ๐
It will be convenient to have a map which adds no extra structure to the label set. So define the labeled structure ๐ธ(๐ฟ) = {๐ฟ}. Note that ๐ธ returns the set consisting of ๐ฟ itself, not the set consisting of the elements of ๐ฟ. Consequently ๐ ๐ = 1 for all ๐ and ๐น๐ธ = ๐๐ฅ . The use of ๐ธ for this labeled structure reflects both the fact that its egf is the exponential function and also that the French word for โsetโ is โensembleโ. (Joyal is a francophone.) We will also need to specify that a set be nonempty by defining ๐ธ(๐ฟ) = {
{๐ฟ} โ
if ๐ฟ โ โ
, if ๐ฟ = โ
.
Note that ๐ธ(โ
) = {โ
} while ๐ธ(โ
) = โ
. For ๐ธ we clearly have ๐ ๐ = 1 for ๐ โฅ 1 and ๐ 0 = 0. It is also obvious that (4.9)
๐น๐ธ = ๐๐ฅ โ 1.
For partitions of sets we will use the structure ๐ฟ โฆ ๐ต(๐ฟ) where ๐ต(๐ฟ) is defined as in Section 1.4. So ๐ ๐ = ๐ต(๐) and, by Theorem 4.1.2, the egf is ๐น๐ต = โ ๐ต(๐) ๐โฅ0
๐ฅ๐ ๐ฅ = ๐๐ โ1 . ๐!
We will be able to give a combinatorial derivation of this fact once we derive the Exponential Formula in Section 4.5, rather than using the recursion and formal manipulations as we did before. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
126
4. Counting with Exponential Generating Functions
Table 4.1. Labeled structures
๐ฎ(๐ฟ)
Counts
๐ ๐
egf
2๐ฟ
subsets
2๐
โ 2๐ ๐โฅ0
๐ฅ๐ = ๐2๐ฅ ๐!
๐ฟ ( ) ๐
๐-subsets
๐ ( ) ๐
๐ ๐ฅ๐ ๐ฅ๐ ๐๐ฅ โ( ) = ๐ ๐! ๐! ๐โฅ0
๐ธ(๐ฟ)
sets
1
๐ฅ๐ = ๐๐ฅ ๐! ๐โฅ0
๐ธ(๐ฟ)
nonempty sets
1 โ ๐ฟ๐,0
๐ฅ๐ = ๐๐ฅ โ 1 ๐! ๐โฅ1
๐ต(๐ฟ)
set partitions
๐ต๐
โ ๐ต๐
โ
โ
๐โฅ0
๐(๐ฟ, ๐)
๐๐ (๐ฟ, ๐)
๐(๐ฟ)
set partitions with ๐ blocks
๐(๐, ๐)
โ ๐(๐, ๐) ๐โฅ0
ordered version of ๐(๐ฟ, ๐)
๐! ๐(๐, ๐)
permutations
๐!
๐ฅ๐ 1 = (๐๐ฅ โ 1)๐ ๐! ๐!
๐! โ ๐(๐, ๐) ๐โฅ0
โ ๐! ๐โฅ0
๐ฅ๐ = (๐๐ฅ โ 1)๐ ๐!
๐ฅ๐ 1 = ๐! 1โ๐ฅ
๐(๐, ๐)
๐ฅ๐ 1 1 โ ๐(๐, ๐) = (ln ) ๐! ๐! 1 โ ๐ฅ ๐โฅ0
ordered version of ๐(๐ฟ, ๐)
๐! ๐(๐, ๐)
๐ฅ๐ 1 ๐! โ ๐(๐, ๐) = (ln ) ๐! 1 โ ๐ฅ ๐โฅ0
permutations with 1 cycle
(๐ โ 1)!
โ (๐ โ 1)!
๐(๐ฟ, ๐)
permutations with ๐ cycles
๐๐ (๐ฟ, ๐)
๐(๐ฟ)
๐ฅ๐ ๐ฅ = ๐๐ โ1 ๐!
๐โฅ1
๐
๐
๐ฅ๐ 1 = ln ๐! 1โ๐ฅ
Just as with subsets, we will restrict our attention to partitions with a given number of blocks by using ๐ฟ โฆ ๐(๐ฟ, ๐). Now we have ๐ ๐ = ๐(๐, ๐), a Stirling number of the second kind. But we have yet to find a closed form for the egf โ๐โฅ0 ๐(๐, ๐)๐ฅ๐ /๐! to verify that entry in Table 4.1. We will be able to do this easily once we have the sum and product rules for egfs presented in the next section. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.3. Labeled structures
127
We will sometimes work with set partitions where there is a specified ordering on the blocks and use the notation ๐๐ (๐ฟ, ๐) = {(๐ต1 , ๐ต2 , . . . , ๐ต๐ ) โฃ ๐ต1 /๐ต2 / . . . /๐ต๐ โข ๐ฟ}. We call these ordered set partitions or set compositions. Note that the ordering is of the blocks themselves, not of the elements in each block, so that ({1, 3}, {2}) โ ({2}, {1, 3}) but ({1, 3}, {2}) = ({3, 1}, {2}). Clearly the labeled structure ๐ฟ โฆ ๐๐ (๐ฟ, ๐) has ๐ ๐ = ๐! ๐(๐, ๐) and a similar statement can be made for the egf. We will also need weak set compositions where we will allow empty blocks. One can look at labeled structures on permutations analogously to what we have just seen for set partitions. In this context, consider a permutation of ๐ฟ to be a bijection ๐ โถ ๐ฟ โ ๐ฟ decomposed into cycles as we did when ๐ฟ = [๐] in Section 1.5. Let ๐ฎ(๐ฟ) = ๐(๐ฟ) be the labeled structure of all permutations of ๐ฟ so that ๐ ๐ = ๐! and ๐น๐ = โ๐ ๐! ๐ฅ๐ /๐! = 1/(1 โ ๐ฅ). We have the associated structures ๐(๐ฟ, ๐) = {๐ = ๐ 1 ๐ 2 โฏ ๐ ๐ โฃ ๐ is a permutation of ๐ฟ with ๐ cycles ๐ ๐ } with ordered variant ๐๐ (๐ฟ, ๐) = {(๐ 1 , ๐ 2 , . . . , ๐ ๐ ) โฃ the ๐ ๐ are the cycles of a permutation of ๐ฟ}. Using the signless Stirling numbers of the first kind we see that the sequences enumerating these two structures are ๐(๐, ๐) and ๐! ๐(๐, ๐), respectively. Again, we will wait to evaluate the corresponding egfs. Finally, we will find the special case ๐(๐ฟ) โ ๐(๐ฟ, 1) of having only one cycle particularly useful. In this case, the enumerator is easy to compute. Proposition 4.3.1. We have #๐([๐]) = {
(๐ โ 1)! 0
if ๐ โฅ 1, if ๐ = 0.
Proof. The empty permutation has no cycles so that ๐(โ
) = 0. Suppose ๐ โฅ 1 and consider (๐1 , ๐2 , . . . , ๐๐ ) โ ๐([๐]). Then the number of such cycles is the number of ways to order the ๐๐ divided by the number of orderings which give the same cycle, namely ๐! /๐ = (๐ โ 1)!. โก
It follows from the previous proposition that ๐น๐ = โ (๐ โ 1)! ๐โฅ1
๐ฅ๐ ๐ฅ๐ 1 =โ = ln ๐! ๐ 1 โ ๐ฅ ๐โฅ1
by definition (4.2). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
128
4. Counting with Exponential Generating Functions
4.4. The Sum and Product Rules for egfs Just as with sets and ogfs, there is a Sum Rule and a Product Rule for egfs. To derive these results, we will first need corresponding rules for labeled structures. Suppose ๐ฎ and ๐ฏ are labeled structures. If ๐ฎ(๐ฟ) โฉ ๐ฏ(๐ฟ) = โ
for any finite set ๐ฟ, then we say ๐ฎ and ๐ฏ are disjoint. In this case we define their disjoint union structure, ๐ฎ โ ๐ฏ, by (๐ฎ โ ๐ฏ)(๐ฟ) = ๐ฎ(๐ฟ) โ ๐ฏ(๐ฟ). It is easy to see, and we will prove in Proposition 4.4.1 below, that ๐ฎ โ ๐ฏ satisfies the definition of a labeled structure. As examples of this concept, suppose #๐ฟ = ๐. Then 2๐ฟ can be partitioned into the subsets of ๐ฟ having size ๐ for 0 โค ๐ โค ๐. In other words ๐ฟ ๐ฟ ๐ฟ 2๐ฟ = ( ) โ ( ) โ โฏ โ ( ). 0 1 ๐
(4.10)
Note that to make a statement about all ๐ฟ regardless of cardinality we can write 2๐ฟ = โจ๐โฅ0 (๐ฟ๐) since (๐ฟ๐) = โ
for ๐ > #๐ฟ. Similarly, we have (4.11)
๐ต(๐ฟ) = ๐(๐ฟ, 0) โ ๐(๐ฟ, 1) โ โฏ โ ๐(๐ฟ, ๐)
and (4.12)
๐(๐ฟ) = ๐(๐ฟ, 0) โ ๐(๐ฟ, 1) โ โฏ โ ๐(๐ฟ, ๐).
To define products, let ๐ฎ and ๐ฏ be arbitrary labeled structures. Their product, ๐ฎร๐ฏ, is defined by (๐ฎ ร ๐ฏ)(๐ฟ) = {(๐, ๐) โฃ ๐ โ ๐ฎ(๐ฟ1 ), ๐ โ ๐ฏ(๐ฟ2 ) with (๐ฟ1 , ๐ฟ2 ) a weak composition of ๐ฟ}. Intuitively, we carve ๐ฟ up into two subsets in all possible ways and put an ๐ฎ-structure on the first subset and a ๐ฏ-structure on the second. Again, we will show that this is indeed a labeled structure in Proposition 4.4.1. Strictly speaking, ๐ฎ ร ๐ฏ should be a multiset since it is possible that the same pair (๐, ๐) could arise from two different ordered partitions. However, in the examples we will use, this will never be the case. And the theorems we will prove about the product will still be true in the more general context if we count with multiplicity. In order to give some examples using products, we will need a notion of equivalence of structures. Say that labeled structures ๐ฎ and ๐ฏ are equivalent, and write ๐ฎ โก ๐ฏ if #๐ฎ(๐ฟ) = #๐ฏ(๐ฟ) for all finite ๐ฟ. Sometimes we will write ๐ฎ(๐ฟ) โก ๐ฏ(๐ฟ) for this concept if the context makes inclusion of a generic label set ๐ฟ convenient. Clearly if ๐ฎ โก ๐ฏ, then ๐น๐ฎ (๐ฅ) = ๐น๐ฏ (๐ฅ). As a first illustration of these concepts, we claim that (4.13)
2โ
โก (๐ธ ร ๐ธ)(โ
).
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.4. The Sum and Product Rules for egfs
129
To see this, note that subsets ๐ โ 2๐ฟ are in bijection with weak compositions via the map ๐ โ (๐, ๐ฟ โ ๐). So #2๐ฟ = #(๐ธ ร ๐ธ)(๐ฟ) as we wished to show. These same ideas demonstrate that we have ๐๐ (โ
, 2) = (๐ธ ร ๐ธ)(โ
) and more generally, for any ๐ โฅ 0, ๐
๐๐ (โ
, ๐) = ๐ธ (โ
).
(4.14) In a similar manner, we obtain
๐๐ (โ
, ๐) = ๐๐ (โ
).
(4.15)
It is time to prove the Sum and Product Rules for labeled structures. In so doing, we will also be showing that they satisfy the definition for a labeled structure (4.6). Proposition 4.4.1. Let ๐ฎ, ๐ฏ be labeled structures and let ๐ ๐ = #๐ฎ(๐ฟ),
๐ก๐ = #๐ฏ(๐ฟ)
where #๐ฟ = ๐. (a) (Sum Rule) If ๐ฎ and ๐ฏ are disjoint, then #(๐ฎ โ ๐ฏ)(๐ฟ) = ๐ ๐ + ๐ก๐ . (b) (Product Rule) For any ๐ฎ, ๐ฏ ๐
๐ #(๐ฎ ร ๐ฏ)(๐ฟ) = โ ( )๐ ๐ ๐ก๐โ๐ . ๐ ๐=0 Proof. For part (a) we have #(๐ฎ โ ๐ฏ)(๐ฟ) = #(๐ฎ(๐ฟ) โ ๐ฏ(๐ฟ)) = #๐ฎ(๐ฟ) + #๐ฏ(๐ฟ) = ๐ ๐ + ๐ก๐ . Now consider part (b). In order to construct (๐, ๐) โ (๐ฎ ร ๐ฏ)(๐ฟ) we must first pick a weak composition ๐ฟ = ๐ฟ1 โ ๐ฟ2 . This is equivalent to just picking ๐ฟ1 as then ๐ฟ2 = ๐ฟ โ ๐ฟ1 . So if #๐ฟ1 = ๐, then there are (๐๐) ways to perform this step. Next we must put an ๐ฎ-structure on ๐ฟ1 and a ๐ฏ-structure on ๐ฟ2 which can be done in ๐ ๐ ๐ก๐โ๐ ways. Multiplying together the two counts and summing over all possible ๐ yields the desired formula. โก As application of this result, note that applying the Sum Rule to (4.10) just gives 2๐ = โ๐ (๐๐) which is Theorem 1.3.3(c). And if we apply the Product Rule to (4.13), we get ๐
๐
๐ ๐ 2๐ = โ ( ) โ
1 โ
1 = โ ( ) ๐ ๐ ๐=0 ๐=0 again. Somewhat more interesting formulas are derived in Exercise 8(b) of this chapter. We can now translate Proposition 4.4.1 into the corresponding rules for exponential generating functions. This will permit us to fill in the entries in Table 4.1 which were postponed in the previous section. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
130
4. Counting with Exponential Generating Functions
Theorem 4.4.2. Let ๐ฎ, ๐ฏ be labeled structures. (a) (Sum Rule) If ๐ฎ and ๐ฏ are disjoint, then ๐น๐ฎโ๐ฏ (๐ฅ) = ๐น๐ฎ (๐ฅ) + ๐น๐ฏ (๐ฅ). (b) (Product Rule) For any ๐ฎ, ๐ฏ ๐น๐ฎร๐ฏ (๐ฅ) = ๐น๐ฎ (๐ฅ) โ
๐น๐ฏ (๐ฅ). Proof. Let ๐ ๐ = ๐ฎ([๐]) and ๐ก๐ = ๐ฏ([๐]). Using the Sum Rule in Proposition 4.4.1 gives ๐น๐ฎ (๐ฅ) + ๐น๐ฏ (๐ฅ) = โ ๐ ๐ ๐โฅ0
๐ฅ๐ ๐ฅ๐ + โ ๐ก๐ ๐! ๐โฅ0 ๐!
= โ (๐ ๐ + ๐ก๐ ) ๐โฅ0
๐ฅ๐ ๐!
= โ #(๐ฎ โ ๐ฏ)([๐]) ๐โฅ0
๐ฅ๐ ๐!
= ๐น๐ฎโ๐ฏ (๐ฅ). Now using the Product Rule of the same proposition yields ๐น๐ฎ (๐ฅ)๐น๐ฏ (๐ฅ) = ( โ ๐ ๐ ๐โฅ0
๐ฅ๐ ๐ฅ๐ )( โ ๐ก๐ ) ๐! ๐โฅ0 ๐!
๐
๐ ๐ ๐ก โ
๐โ๐ )๐ฅ๐ ๐! (๐ โ ๐)! ๐=0
= โ(โ ๐โฅ0
๐
๐ ๐ฅ๐ = โ ( โ ( )๐ ๐ ๐ก๐โ๐ ) ๐! ๐ ๐โฅ0 ๐=0 = โ #(๐ฎ ร ๐ฏ)([๐]) ๐โฅ0
๐ฅ๐ ๐!
= ๐น๐ฎร๐ฏ (๐ฅ), โก
which completes the proof.
As an illustration of how this result can be used, we can apply the Sum Rule to (4.10), keeping in mind the comment following the equation, to write ๐น2โ
(๐ฅ) = โ ๐น(โ
) (๐ฅ). ๐ ๐โฅ0
We can check this using (4.7) and (4.8): ๐ฅ๐ ๐ฅ ๐ฅ๐ ๐ = ๐๐ฅ โ = ๐๐ฅ โ
๐๐ฅ = ๐2๐ฅ = ๐น2โ
(๐ฅ). ๐! ๐! ๐โฅ0 ๐โฅ0
โ ๐น(โ
) (๐ฅ) = โ
๐โฅ0
๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.5. The Exponential Formula
131
One can also apply the Product Rule to (4.13) and obtain ๐น2โ
(๐ฅ) = ๐น๐ธ (๐ฅ)๐น๐ธ (๐ฅ). Again, this yields a simple identity; namely ๐2๐ฅ = ๐๐ฅ โ
๐๐ฅ . The true power of Theorem 4.4.2 is that it can be used to derive egfs which are more complicated to prove by other means. For example, applying the Product Rule to equation (4.14) along with (4.9) yields ๐น๐๐ (โ
,๐) (๐ฅ) = ๐น๐ธ (๐ฅ)๐ = (๐๐ฅ โ 1)๐ , a new entry for Table 4.1. Furthermore, since ๐น๐๐ (โ
,๐) (๐ฅ) = ๐! ๐น๐(โ
,๐) (๐ฅ) we obtain (๐๐ฅ โ 1)๐ . ๐! This permits us to give another derivation of the egf for ๐ต(๐). Using the Sum Rule and (4.11) gives ๐น๐(โ
,๐) (๐ฅ) =
(๐๐ฅ โ 1)๐ ๐ฅ = ๐๐ โ1 . ๐! ๐โฅ0
๐น๐ต (๐ฅ) = โ ๐น๐(โ
,๐) (๐ฅ) = โ ๐โฅ0
These same ideas can be used to derive the egfs for permutations with a given number of cycles, as the reader is asked to do in the exercises.
4.5. The Exponential Formula Often in combinatorics and other areas of mathematics there are objects which can be broken down into components. For example, the components of set partitions are blocks and the components of permutations are cycles. The exponential formula determines the egf of a labeled structure in terms of the egf for its components. It can also be considered as an analogue of the Product Rule for egfs where one carves ๐ฟ into an arbitrary number of subsets (rather than just 2) and the subsets are unordered (rather than ordered). To make these ideas precise, let ๐ฎ be a labeled structure satisfying (4.16)
๐ฎ(๐ฟ) โฉ ๐ฎ(๐) = โ
if ๐ฟ โ ๐.
The corresponding partition structure, ฮ (๐ฎ), is defined by (ฮ (๐ฎ))(๐ฟ) = {{๐ 1 , ๐ 2 , . . . } โฃ for all ๐ฟ1 /๐ฟ2 / . . . โข ๐ฟ with ๐ ๐ โ ๐ฎ(๐ฟ๐ ) for all ๐}. Intuitively, to form (ฮ (๐ฎ))(๐ฟ) we partition the label set ๐ฟ in all possible ways and then put a structure from ๐ฎ on each block of the partition, again in all possible ways. Condition (4.16) is imposed so that each element of (ฮ (๐ฎ))(๐ฟ) can only arise in one way from this process. To illustrate, (4.17)
๐ต(๐ฟ) = {๐ฟ1 /๐ฟ2 / . . . โข ๐ฟ} โก (ฮ (๐ธ))(๐ฟ)
since ๐ฟ๐ is the only element of ๐ธ(๐ฟ๐ ) for any ๐. In much the same way, we see that (4.18)
๐(๐ฟ) = {๐ 1 ๐ 2 โฏ โฃ ๐ ๐ a cycle on ๐ฟ๐ for all ๐ for all ๐ฟ1 /๐ฟ2 / . . . โข ๐ฟ} โก (ฮ (๐))(๐ฟ).
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
132
4. Counting with Exponential Generating Functions
There is a simple relationship between the egf for ฮ (๐ฎ) and the egf for ๐ฎ which is the labeled structure defined by ๐ฎ(๐ฟ) = {
๐ฎ(๐ฟ) โ
if ๐ฟ โ โ
, if ๐ฟ = โ
.
So if ๐ ๐ = #๐ฎ([๐]), then ๐น๐ฎ (๐ฅ) = โ ๐ ๐ ๐โฅ1
๐ฅ๐ . ๐!
We need ๐น๐ฎ (๐ฅ) to have a zero constant term so that the composition in the next result will be well-defined, see Theorem 3.3.3. Theorem 4.5.1 (Exponential Formula). If ๐ฎ is a labeled structure satisfying (4.16), then ๐นฮ (๐ฎ) (๐ฅ) = ๐๐น๐ฎ (๐ฅ) . Proof. We have
๐น๐ฎ (๐ฅ)๐ . ๐! ๐โฅ0
๐๐น๐ฎ (๐ฅ) = โ
From the Product Rule for egfs in Theorem 4.4.2 we see that ๐น๐ฎ (๐ฅ)๐ is the egf for putting ๐ฎ-structures on partitions of the label set into ๐ ordered, nonempty blocks. So, by (4.16), ๐น๐ฎ (๐ฅ)๐ /๐! is the egf for putting ๐ฎ-structures on partitions of the label set into ๐ unordered, nonempty blocks. Now using the Sum Rule for egfs, again from Theorem 4.4.2, it follows that โ๐โฅ0 ๐น๐ฎ (๐ฅ)๐ /๐! is the egf for putting ๐ฎ-structures on partitions of the label set into any number of unordered, nonempty blocks. But this is exactly the structure ฮ (๐ฎ) and so we are done. โก As a first application of the Exponential Formula, consider (4.17). In this case ๐ฎ = ๐ธ and ๐น๐ธ (๐ฅ) = ๐๐ฅ โ 1. So, applying the previous theorem, ๐น๐ต (๐ฅ) = ๐นฮ (๐ธ) (๐ฅ) = ๐๐น๐ธ (๐ฅ) = ๐๐
๐ฅ
โ1
.
Even though we already knew this generating function, this proof is definitely the simplest both computationally and conceptually. We can use (4.18) in a similar manner. Now ๐ฎ = ๐ and ๐น๐ (๐ฅ) = ln(1/(1 โ ๐ฅ)) = ๐น๐ (๐ฅ) since the original egf already has no constant term. Applying the Exponential Formula gives 1 ๐น๐ (๐ฅ) = ๐นฮ (๐) (๐ฅ) = ๐๐น๐ (๐ฅ) = ๐ln(1/(1โ๐ฅ)) = 1โ๐ฅ which at least agrees with what we computed previously for this egf, even though this in now a more roundabout way of getting it. But with Theorem 4.5.1 in hand it is easy to get more refined information about permutations or other labeled structures. For example, suppose we wish to give a simpler and more combinatorial derivation for the egf of the derangement numbers ๐ท(๐) found in Theorem 4.1.1. The corresponding structure is defined by ๐(๐ฟ) = derangements on ๐ฟ. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4.5. The Exponential Formula
133
In order to express ๐(๐ฟ) as a partition structure we need to permit only cycles of length two or greater. So let ๐(๐ฟ) if #๐ฟ โฅ 2, ๐ฎ(๐ฟ) = { โ
otherwise. It follows that ๐ โก ฮ (๐ฎ). Furthermore, ๐ ๐ = {
(๐ โ 1)! 0
if ๐ โฅ 2, otherwise,
so that ๐น๐ฎ (๐ฅ) = โ (๐ โ 1)! ๐โฅ2
๐ฅ๐ 1 ๐ฅ๐ =โ = ln( ) โ ๐ฅ. ๐! ๐ 1 โ ๐ฅ ๐โฅ2
Applying the Exponential Formula gives โ ๐ท(๐)
(4.19)
๐โฅ0
๐ฅ๐ 1 ๐โ๐ฅ = ๐น๐ (๐ฅ) = ๐นฮ (๐ฎ) (๐ฅ) = exp(ln( . ) โ ๐ฅ) = ๐! 1โ๐ฅ 1โ๐ฅ
One can mine even more information from Theorem 4.5.1 since the proof shows that each of the summands ๐น๐ฎ (๐ฅ)๐ /๐! has a combinatorial meaning. Define the hyperbolic sine and cosine functions to be the formal power series sinh ๐ฅ = ๐ฅ +
๐ฅ3 ๐ฅ5 ๐ฅ2๐+1 + +โฏ= โ 3! 5! (2๐ + 1)! ๐โฅ0
and cosh ๐ฅ = 1 +
๐ฅ2 ๐ฅ4 ๐ฅ2๐ . + +โฏ= โ 2! 4! (2๐)! ๐โฅ0
It is easy to see that for any formal power series ๐(๐ฅ) = โ๐โฅ0 ๐๐ ๐ฅ๐ we can extract the series of odd or even terms by (4.20)
โ ๐2๐+1 ๐ฅ2๐+1 = ๐โฅ0
๐(๐ฅ) โ ๐(โ๐ฅ) 2
โ ๐2๐ ๐ฅ2๐ =
and
๐โฅ0
๐(๐ฅ) + ๐(โ๐ฅ) . 2
It follows that ๐๐ฅ โ ๐โ๐ฅ and 2 Define the odd partition structure ฮ ๐ (๐ฎ) by (4.21)
sinh ๐ฅ =
cosh ๐ฅ =
๐๐ฅ + ๐โ๐ฅ . 2
(ฮ ๐ (๐ฎ))(๐ฟ) = {{๐ 1 , ๐ 2 , . . . } โ (ฮ (๐ฎ))(๐ฟ) โฃ ๐ฟ partitioned into an odd number of blocks} and similarly define the even partition structure ฮ ๐ (๐ฎ). A proof like that of the Exponential Formula can be used to demonstrate the following. Theorem 4.5.2. If ๐ฎ is a labeled structure satisfying (4.16), then ๐นฮ ๐ (๐ฎ) (๐ฅ) = sinh ๐น๐ฎ (๐ฅ) and ๐นฮ ๐ (๐ฎ) (๐ฅ) = cosh ๐น๐ฎ (๐ฅ). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
134
4. Counting with Exponential Generating Functions
Now suppose we wish to find the egf for ๐๐ which is the number of permutations of [๐] that have an odd number of cycles. As before ๐ฎ = ๐ with ๐น๐ (๐ฅ) = ๐น๐ (๐ฅ) = ln(1/(1 โ ๐ฅ)). Using Theorem 4.5.2 and then (4.21) we see that
โ ๐๐ ๐โฅ0
๐ฅ๐ = sinh ๐น๐ (๐ฅ) ๐! =
๐ln(1/(1โ๐ฅ)) โ ๐โ ln(1/(1โ๐ฅ)) 2
=
1 1 โ (1 โ ๐ฅ)) ( 2 1โ๐ฅ
=๐ฅ+
1 โ ๐ฅ๐ . 2 ๐โฅ2
Extracting the coefficient of ๐ฅ๐ /๐! from the first and last sums above yields
(4.22)
๐๐ = {
๐! /2 1
if ๐ โฅ 2, if ๐ = 1.
Of course, once one has obtained such a simple answer, one would like a purely combinatorial explanation and the reader is encouraged to find one in Exercise 12(c) of this chapter.
Exercises (1) (a) Use the recursion for the derangement numbers in Exercise 4 of Chapter 2 to reprove Theorem 4.1.1. (b) Use the recursion for the derangement numbers in Exercise 5 of Chapter 2 to reprove Theorem 4.1.1. (2) (a) Finish the proof of Theorem 4.2.1. (b) Finish the proof of Corollary 4.2.3. (c) Give two proofs of the identity
(๐ + 1)๐ = โ ๐ด(๐, ๐)( ๐โฅ0
๐+๐โ๐ ), ๐
one using equation (4.4) and one using descent partitioned permutations. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
135
(d) Give a combinatorial proof of the following formula for ๐ด(๐, ๐): ๐+1
๐ด(๐, ๐) = โ (โ1)๐ ( ๐=0
๐+1 )(๐ โ ๐ + 1)๐ . ๐
Hint: Use the Principle of Inclusion and Exclusion and descent partitioned permutations. (e) Give a combinatorial proof of the following recursion for ๐ โฅ 1: ๐โ2
๐โ1 ๐ด๐ (๐) = ๐ด๐โ1 (๐) + ๐ โ ( )๐ด๐ (๐)๐ด๐โ๐โ1 (๐). ๐ ๐=0 Hint: Factor each ๐ โ ๐๐ as ๐ = ๐๐๐. (f) Use (e) to give a second proof of (4.5). (3) Let ๐ผ โ โ be finite and let ๐ = max ๐ผ if ๐ผ is nonempty or ๐ = 0 if ๐ผ = โ
. For ๐ > ๐ define the corresponding descent polynomial ๐(๐ผ; ๐) to be the number of ๐ โ ๐๐ such that Des ๐ = ๐ผ. (a) Prove that ๐([๐]; ๐) = (๐โ1 ). ๐ (b) If ๐ผ โ โ
, then let ๐ผ โ = ๐ผ โ {๐}. Prove that ๐ ๐(๐ผ; ๐) = ( )๐(๐ผ โ ; ๐) โ ๐(๐ผ โ ; ๐). ๐
(c) (d) (e) (f)
(g)
Hint: Consider the set of ๐ โ ๐๐ such that Des(๐1 ๐2 . . . ๐๐ ) = ๐ผ โ and ๐๐+1 < ๐๐+2 < โฏ < ๐๐ . Use part (b) to show that ๐(๐ผ; ๐) is a polynomial in ๐ having degree deg(๐ผ; ๐) = ๐. Reprove the fact that ๐(๐ผ; ๐) is a polynomial in ๐ using the Principle of Inclusion and Exclusion. Since ๐(๐ผ; ๐) is a polynomial in ๐, its domain of definition can be extended to all ๐ โ โ. Show that if ๐ โ ๐ผ, then ๐(๐ผ; ๐) = 0. Show that the complex roots of ๐(๐ผ; ๐) all lie in the circle |๐ง| โค ๐ in the complex plane and also all have real part greater than or equal to โ1. Note: This seems to be a difficult problem. (Conjecture) Show that the complex roots of ๐(๐ผ; ๐) all lie in the circle ||๐ง โ ๐ + 1 || โค ๐ โ 1 . | 2 | 2 Note that this conjecture implies part (f).
(4) (a) Derive the generating function โ ๐(๐, ๐)๐ก๐ ๐,๐โฅ0
๐ฅ๐ ๐ฅ = ๐๐ก(๐ โ1) ๐!
in two ways: using the recursion for the ๐(๐, ๐) and using the generating functions in Table 4.1. (b) Rederive the egf for the Bell numbers ๐ต(๐) using part (a). (5) (a) Find a formula for โ๐,๐โฅ0 ๐(๐, ๐)๐ก๐ ๐ฅ๐ /๐! and prove it in two ways: using the recursion for the ๐(๐, ๐) and using the generating functions in Table 4.1. (b) Rederive the egf for the permutation structure ๐(โ
) using part (a). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
136
4. Counting with Exponential Generating Functions
(6) (a) Let ๐๐ be the number of involutions in ๐๐ . Show that ๐0 = ๐1 = 1 and for ๐ โฅ 2 ๐๐ = ๐๐โ1 + (๐ โ 1)๐๐โ2 . (b) Show that โ ๐๐ ๐โฅ0
๐ฅ๐ 2 = ๐๐ฅ+๐ฅ /2 ๐!
in two ways: using the recursion in part (a) and using the Exponential Formula. (c) Given ๐ด โ โ, let ๐(๐, ๐ด) be the number of partitions of [๐] all of whose block sizes are elements of ๐ด. Use the Exponential Formula to find and prove a formula for โโฅ0 ๐(๐, ๐ด)๐ฅ๐ /๐!. (d) Repeat part (c) for ๐(๐, ๐ด), the number of permutations of [๐] all of whose cycles have lengths which are elements of ๐ด. (7) Fill in the details for finding the egf and solving the differential equation in the proof of Theorem 4.1.3. (8) (a) Use (4.14) and the Product Rule for labeled structures to show that ๐(๐, 2) = 2๐โ1 โ 1. (b) Use (4.15) and the Product Rule for labeled structures to show that ๐
1 . ๐ ๐=1
๐(๐ + 1, 2) = ๐! โ
(9) (a) Use the Theorem 4.4.2 to derive the egfs in Table 4.1 for the structures ๐๐ (โ
, ๐) and ๐(โ
, ๐). (b) Use part (a) to rederive the egf for the structure ๐(โ
). (10) (a) Suppose ๐ฎ is a labeled structure satisfying (4.16) and ๐ฏ is any labeled structure. Their composition, ๐ฏ โ ๐ฎ, is the structure such that (๐ฏ โ ๐ฎ)(๐ฟ) = {({๐ 1 , ๐ 2 , . . . }, ๐) โฃ for all ๐ฟ1 /๐ฟ2 / . . . โข ๐ฟ with ๐ ๐ โ ๐ฎ(๐ฟ๐ ) for all ๐ and ๐ โ ๐ฏ({๐ 1 , ๐ 2 , . . . })} . Prove that ๐น๐ฏโ๐ฎ (๐ฅ) = ๐น๐ฏ (๐น๐ฎ (๐ฅ)). (b) Use (a) to reprove the Exponential Formula. (11) Let โฑ(๐ฟ) be the labeled structures consisting of all forests with ๐ฟ as vertex set. Show that ๐ฅ๐ โ #โฑ([๐]) = exp(โ ๐๐โ2 ๐ฅ๐ /๐! ). ๐! ๐โฅ0 ๐โฅ1 (12) (a) Prove the identities (4.20). (b) Prove Theorem 4.5.2. (c) Reprove (4.22) by finding a bijection between the permutations of [๐], ๐ โฅ 2, which have an odd number of cycles and those which have an even number of cycles. (d) Find a formula for the number of permutations of [๐] having an even number of cycles in two ways: by using Theorem 4.5.2 and by using (4.22). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
137
(13) Let ๐๐ be the number of permutations in ๐๐ that have an even number of cycles, all of them of odd length. (a) Use a parity argument to show that if ๐ is odd, then ๐๐ = 0. (b) Use egfs to show that if ๐ is even, then ๐๐ = (
๐ ๐! ) . ๐/2 2๐
(c) Use part (b) to show that if ๐ is even, then the probability that in tossing a fair coin ๐ times exactly ๐/2 heads occur is the same as the probability that a permutation chosen uniformly at random from ๐๐ has an even number of cycles, all of them of odd length. (d) Reprove part (c) by giving, when ๐ is even, a bijection between pairs (๐, ๐) [๐] where ๐ โ (๐/2 ) and ๐ โ ๐๐ and pairs (๐, ๐) where ๐ โ 2[๐] and ๐ โ ๐๐ has an even number of cycles, all of them of odd length. (14) Let ๐๐ be the number of involutions in ๐๐ which have no fixed points. (a) Give a combinatorial proof that ๐2๐+1 = 0 and that ๐2๐ = 1 โ
3 โ
5 โฏ (2๐ โ 1). (b) Use the Exponential Formula to find a simple expression for the exponential ๐ฅ๐ generating function โ๐โฅ0 ๐๐ ๐! . (c) Use the exponential generating function from (b) to give a second derivation of the formula in (a).
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/05
Chapter 5
Counting with Partially Ordered Sets
Partially ordered sets, known as โposetsโ for short, give a fruitful way of ordering combinatorial objects. In this way they provide new perspectives on objects we have already studied, such as interpreting various combinatorial invariants as rank functions. They also give us new and powerful tools to do enumeration such as the Mรถbius Inversion Theorem which generalizes the Principle of Inclusion and Exclusion.
5.1. Basic properties of partially ordered sets A partially ordered set or poset is a pair (๐, โค) where โ๐โ is a set and โโคโ is a binary relation on ๐ satisfying the following axioms for all ๐ฅ, ๐ฆ, ๐ง โ ๐: (a) (reflexivity) ๐ฅ โค ๐ฅ, (b) (antisymmetry) if ๐ฅ โค ๐ฆ and ๐ฆ โค ๐ฅ, then ๐ฅ = ๐ฆ, and (c) (transitivity) if ๐ฅ โค ๐ฆ and ๐ฆ โค ๐ง, then ๐ฅ โค ๐ง. Often we will refer to the poset as just ๐ since the partial order will be obvious from context. We will also use notation for the standard order on โ in the setting of posets in the obvious way. For example ๐ฅ < ๐ฆ means ๐ฅ โค ๐ฆ but ๐ฅ โ ๐ฆ, or using ๐ฆ โฅ ๐ฅ as equivalent to ๐ฅ โค ๐ฆ. We say that ๐ฅ, ๐ฆ โ ๐ are comparable if ๐ฅ โค ๐ฆ or ๐ฆ โค ๐ฅ. Otherwise they are incomparable. A poset where every pair of elements is comparable is called a total order. There are standard partial orders on many of the combinatorial objects we have already studied and we list some of them here. โข The chain of length ๐ is (๐ถ๐ , โค) where ๐ถ๐ = {0, 1, . . . , ๐} and ๐ โค ๐ is the usual ordering of the integers. So ๐ถ๐ is a total order. Note that ๐ถ๐ has ๐+1 elements and in some texts this would be referred to as an (๐ + 1)-chain. Although 139 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
140
5. Counting with Partially Ordered Sets
๐ถ๐ was also used as the notation for the graphical cycle with ๐ vertices, the context should make it clear which object is meant. โข The Boolean algebra is (๐ต๐ , โ) where ๐ต๐ = 2[๐] and ๐ โ ๐ is set containment. Be sure not to confuse ๐ต๐ with the ๐th Bell number ๐ต(๐). โข The divisor lattice is (๐ท๐ , โฃ) where ๐ท๐ consists of all the positive integers which divide evenly into ๐ and ๐ โฃ ๐ means that ๐ divides evenly into ๐ (in that ๐/๐ is an integer). So in ๐ท12 we have 2 โค 6 but 2 โฐ 3. Note the distinction between ๐ท๐ and the derangement number ๐ท(๐). โข The lattice of partitions is (ฮ ๐ , โค) where ฮ ๐ is the set of all partitions of [๐] and ๐ โค ๐ means that every block of ๐ is contained in some block of ๐, called the refinement ordering. For example, in ฮ 6 we have 14/2/36/5 โค 1245/36 because {1, 4}, {2}, and {5} are all contained in {1, 2, 4, 5} and {3, 6} is contained in itself. โข Youngโs lattice is (๐ , โค) where ๐ is the set of all integer partitions and ๐ โค ๐ is containment of Young diagrams as defined in Section 3.2. โข The lattice of compositions is (๐พ๐ , โค) where ๐พ๐ is the set of all compositions of ๐ and ๐ผ โค ๐ฝ is refinement of compositions: ๐ผ can be obtained from ๐ฝ by replacing each ๐ฝ ๐ by a composition [๐ผ๐ , ๐ผ๐+1 , . . . , ๐ผ๐ ] โง ๐ฝ ๐ . For example, in ๐พ11 we have [2, 3, 2, 1, 3] โค [2, 5, 4] because the first 2 in [2, 5, 4] was replaced by itself, the 5 was replaced by [3, 2], and the 4 by [1, 3]. On the other hand [2, 3, 1, 2, 3] โฐ [2, 5, 4]. Again, there is a notational overlap with ๐พ๐ as the complete graph on ๐ vertices, but the two will never appear together. โข The pattern poset is (๐, โค) where ๐ is the set of all permutations and ๐ โค ๐ means that ๐ contains ๐ as a pattern. โข The subspace lattice is (๐ฟ(๐), โค) where ๐ฟ(๐) is the set of subspaces of a finite vector space ๐ over ๐ฝ๐ and ๐ โค ๐ means ๐ is a subspace of ๐. If ๐ = ๐ฝ๐๐ , then we often denote this poset by ๐ฟ๐ (๐). There are also important partial orders on permutations which reflect their group structure (strong and weak Bruhat order) and on certain subgraphs of a graph (the bond lattice). We will define the latter later when it is needed. Often a poset (๐, โค) is represented by a certain (di)graph which can be easier to work with than just using the axioms. If ๐ฅ, ๐ฆ โ ๐, then we say that ๐ฅ is covered by ๐ฆ or ๐ฆ covers ๐ฅ, written either ๐ฅ โ ๐ฆ or ๐ฆ โ ๐ฅ, if ๐ฅ < ๐ฆ and there is no ๐ง โ ๐ with ๐ฅ < ๐ง < ๐ฆ. The Hasse diagram of ๐ is the graph with vertices ๐ and an edge from ๐ฅ up to ๐ฆ if ๐ฅ โ ๐ฆ. Note that this is actually a digraph where all the arcs are directed up and so are just written as edges with this understanding. Hasse diagrams for examples from the above list are given in Figure 5.1. For those which are infinite, only the bottom of the poset is displayed. Note that in the case of the subspace lattice ๐ = ๐ฝ23 the subspaces are listed using their row-echelon forms. We will make no distinction between a poset and its Hasse diagram if no confusion will result by blurring the distinction. Finally, certain posets such as the real numbers under their normal ordering have no covers. So in such cases it does not make sense to try to draw a Hasse diagram. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.1. Basic properties of partially ordered sets
141
{1, 2, 3}
3 2
{1, 2}
{1, 3}
1
{1}
{2}
{2, 3} {3}
0 โ
๐ถ3
๐ต3 123
18 9
6
12/3
13/2
1/23
3
2 1
1/2/3
๐ท18
ฮ 3
โฎ
โฎ [4]
โฎ
123 132 213 12
[3, 1]
[2, 2]
[2, 1, 1]
[1, 2, 1]
[1, 3] [1, 1, 2]
โ
[1, 1, 1, 1]
๐
๐พ4
21
1 0
[
231 312 321 [ 0 1 ]
0 ] 1
[ 1 0 ]
[ 1 1 ]
1 โ
{(0, 0)}
๐
๐ฟ2 (3) Figure 5.1. A zoo of Hasse diagrams
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
[ 1 2 ]
142
5. Counting with Partially Ordered Sets
๐
๐
๐
๐
Figure 5.2. Minimal and maximal elements
There are certain parts of a poset ๐ to which we will often refer. A minimal element of ๐ is ๐ฅ โ ๐ such that there is no ๐ฆ โ ๐ with ๐ฆ < ๐ฅ. Note that ๐ can have multiple minimal elements. The poset in Figure 5.2 has minimal elements ๐, ๐. Dually, define a maximal element of ๐ to be ๐ฅ โ ๐ with no ๐ฆ > ๐ฅ in ๐. The example poset just cited has maximal elements ๐, ๐. By way of contrast, ๐ has a minimum element if there is ๐ฅ โ ๐ such that ๐ฅ โค ๐ฆ for every ๐ฆ โ ๐. A minimum element is unique if it exists because if ๐ฅ and ๐ฅโฒ are both minimum elements, then ๐ฅ โค ๐ฅโฒ and ๐ฅโฒ โค ๐ฅ which forces ๐ฅ = ๐ฅโฒ by antisymmetry. In this case the minimum element is often denoted 0.ฬ All of the posets in Figure 5.1 have a 0.ฬ In fact, in ๐ท๐ we have 0ฬ = 1, a rare instance where one can write that zero equals one and be mathematically correct! Again, there is the dual notion of a maximum element ๐ฅ โ ๐ which satisfies ๐ฅ โฅ ๐ฆ for all ๐ฆ โ ๐. A maximum is unique if it exists and is denoted 1.ฬ The following result sums up the existence of minimum and maximum elements for the posets in Figure 5.1. Its proof is sufficiently easy that it is left as an exercise. Proposition 5.1.1. We have the following minimum and maximum elements. โข In ๐ถ๐ we have 0ฬ = 0, 1ฬ = ๐. โข In ๐ต๐ we have 0ฬ = โ
, 1ฬ = [๐]. โข In ๐ท๐ we have 0ฬ = 1, 1ฬ = ๐. โข In ฮ ๐ we have 0ฬ = 1/2/ . . . /๐, 1ฬ = [๐]. โข In ๐ we have 0ฬ = โ
and no 1.ฬ โข In ๐พ๐ we have 0ฬ = [1๐ ], 1ฬ = [๐]. โข In ๐ we have 0ฬ = โ
and no 1.ฬ โข In ๐ฟ(๐) we have 0ฬ is the zero subspace, 1ฬ = ๐.
โก
As one can tell from the previous set of definitions, it is sometimes useful to reverse inequalities in a poset. So if ๐ is a poset, then we define its dual ๐โ to have the same underlying set with ๐ฅ โค ๐ฆ in ๐โ if and only if ๐ฆ โค ๐ฅ in ๐. The Hasse diagram of ๐ โ is thus obtained by reflecting the one for ๐ in a horizontal axis. As is often the case in mathematics, we analyze a structure by looking at its substructures. In posets ๐, these come in several varieties. A subposet of ๐ is a subset ๐ โ ๐ with the inherited partial order; namely ๐ฅ โค ๐ฆ for ๐ฅ, ๐ฆ โ ๐ if and only if ๐ฅ โค ๐ฆ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.1. Basic properties of partially ordered sets
143
{1, 2, 3, 5, 6}
{1, 2, 3, 5}
{1, 2, 3, 6}
{1, 3, 5, 6}
[{1, 3}, {1, 2, 3, 5, 6}] = {1, 2, 3}
{1, 3, 5}
{1, 3, 6}
{1, 3} Figure 5.3. An interval in ๐ต7
in ๐. In such a case we will sometimes use a subscript to make precise which poset is being considered, as in ๐ฅ โค๐ ๐ฆ. Note that some authors call this an induced subposet and use the term โsubposetโ when ๐ satisfies the weaker condition that ๐ฅ โค๐ ๐ฆ implies ๐ฅ โค๐ ๐ฆ (but not necessarily conversely). There are several especially important subposets. Assume ๐ฅ, ๐ฆ โ ๐. Then the corresponding closed interval is [๐ฅ, ๐ฆ] = {๐ง โ ๐ โฃ ๐ฅ โค ๐ง โค ๐ฆ}. Note that [๐ฅ, ๐ฆ] = โ
unless ๐ฅ โค ๐ฆ. For example, the Hasse diagram of the interval [{1, 3}, {1, 2, 3, 5, 6}] in ๐ต7 is displayed in Figure 5.3. Note that if one removes the labels, then this diagram is exactly like the one for ๐ต3 in Figure 5.1. We will explain this formally when we introduce the concept of isomorphism below. Open and half-open intervals in a poset are defined as expected. A subset ๐ผ โ ๐ is a lower-order ideal if ๐ฅ โ ๐ผ and ๐ฆ โค ๐ฅ imply that ๐ฆ โ ๐ผ. For example, if ๐ has a 0,ฬ then any interval of the form [0,ฬ ๐ฅ] is a lower-order ideal. If ๐ โ ๐ is any subset, then the lower-order ideal generated by ๐ is ๐ผ(๐) = {๐ฆ โ ๐ โฃ ๐ฆ โค ๐ฅ for some ๐ฅ โ ๐}. We often leave out the set braces in ๐, for example, writing ๐ผ(๐ฅ, ๐ฆ) for the ideal generated by ๐ = {๐ฅ, ๐ฆ} โ ๐. If #๐ = 1, then the order ideal is called principal. If ๐ has a 0,ฬ then ๐ผ(๐ฅ) = [0,ฬ ๐ฅ]. In Youngโs lattice, ๐ผ(๐) is just all the partitions contained in ๐. So when we have a rectangle ๐ = (๐๐ ), then ๐ผ(๐) = โ(๐, ๐), the set which came into play when discussing the ๐-binomial coefficients in Section 3.2. upper-order ideals ๐ as well as those generated by a set, ๐(๐), are defined by reversing all the inequalities. We will sometimes abbreviate โlower-order idealโ to โorder idealโ or even just โideal,โ whereas for upper-order ideals both adjectives will always be used. Some simple properties of ideals are given in the next proposition. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
144
5. Counting with Partially Ordered Sets
Proposition 5.1.2. Let ๐ be a poset. (a) We have that ๐ผ โ ๐ is a lower-order ideal if and only if ๐ โ ๐ผ is an upper-order ideal. (b) If ๐ is finite and ๐ผ is a lower-order ideal, then ๐ผ = ๐ผ(๐) where ๐ is the set of maximal elements of ๐ผ. (c) If ๐ is finite and ๐ is an upper-order ideal, then ๐ = ๐(๐) where ๐ is the set of minimal elements of ๐. Proof. We will prove (b) and leave the other two parts to the reader. We will prove the equality by proving the two corresponding set containments. Suppose ๐ฅ โ ๐ผ and consider the set ๐ = {๐ฆ โ ๐ผ โฃ ๐ฆ โฅ ๐ฅ}. This subset of ๐ is nonempty since ๐ฅ โ ๐. So ๐ has at least one maximal element ๐ฆ since ๐ is finite. In fact, ๐ฆ must be maximal in ๐ผ since, if not, there is ๐ง > ๐ฆ with ๐ง โ ๐ผ. But then by transitivity ๐ง > ๐ฅ so that ๐ง โ ๐. This contradicts the maximality of ๐ฆ in ๐. So ๐ฆ โ ๐ and ๐ฅ โ ๐ผ(๐) showing that ๐ผ โ ๐ผ(๐). To show ๐ผ(๐) โ ๐ผ, take ๐ฆ โ ๐ผ(๐). By definition ๐ฆ โค ๐ฅ for some ๐ฅ โ ๐ and ๐ โ ๐ผ. So ๐ฆ โค ๐ฅ where ๐ฅ โ ๐ผ which forces ๐ฆ โ ๐ผ by definition of lower-order ideal. โก
To define isomorphism, we need to consider maps on posets. Assume posets ๐, ๐. Then a function ๐ โถ ๐ โ ๐ is order preserving if ๐ฅ โค๐ ๐ฆ โน ๐(๐ฅ) โค๐ ๐(๐ฆ). For example, the map ๐ โถ ๐ถ๐ โ ๐ต๐ by ๐(๐) = [๐] is order preserving because ๐ โค ๐ implies that ๐(๐) = [๐] โ [๐] = ๐(๐). We say that ๐ is an isomorphism or that ๐ and ๐ are isomorphic, written ๐ โ
๐, if ๐ is bijective and both ๐ and ๐โ1 are order preserving. It is important to show that ๐โ1 , and not just ๐, is order preserving. For consider the two posets in Figure 5.4. Define a bijection ๐ โถ ๐ โ ๐ by ๐(๐) = ๐โฒ and ๐(๐) = ๐โฒ . Then ๐ is order preserving vacuously since there are no order relations in ๐. But clearly we do not want ๐ to be an isomorphism since ๐ and ๐ have different (unlabeled) Hasse diagrams. This is witnessed by the fact that ๐โ1 is not order preserving: we have ๐โฒ โค ๐โฒ but ๐โ1 (๐โฒ ) = ๐ โฐ ๐ = ๐โ1 (๐โฒ ). There are a number of isomorphisms involving the posets in Figure 5.1. Some of them are collected in the next result.
๐โฒ ๐=
๐= ๐
๐ ๐โฒ
Figure 5.4. Two nonisomorphic posets
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.2. Chains, antichains, and operations on posets
145
Proposition 5.1.3. We have the following isomorphisms. In all cases we assume the intervals used are nonempty. (a) ๐ถ๐โ โ
๐ถ๐ . (b) If ๐, ๐ โ ๐ถ๐ , then [๐, ๐] โ
๐ถ๐โ๐ . (c) ๐ต๐โ โ
๐ต๐ . (d) If ๐, ๐ โ ๐ต๐ , then [๐, ๐] โ
๐ต|๐โ๐| . (e) ๐ท๐โ โ
๐ท๐ . (f) If ๐, ๐ โ ๐ท๐ , then [๐, ๐] โ
๐ท๐/๐ . (g) If ๐ is a product of ๐ distinct primes, then ๐ท๐ โ
๐ต๐ . (h) If ๐ โ ฮ ๐ has ๐ blocks, then [๐, 1]ฬ โ
ฮ ๐ . (i) For all ๐ we have ๐พ๐ โ
๐ต๐โ1 . (j) If ๐, ๐ are vector spaces over ๐ฝ๐ of the same dimension, then ๐ฟ(๐) โ
๐ฟ(๐). (k) If ๐, ๐ โ ๐ฟ(๐), then [๐, ๐ ] โ
๐ฟ(๐/๐ ) where ๐/๐ is the quotient vector space. Proof. We will prove the statement about [๐, ๐] in ๐ต๐ and leave the rest of the isomorphisms as exercises. Let ๐ โ ๐ = {๐ก1 , ๐ก2 , . . . , ๐ก๐ } where ๐ = |๐ โ ๐|. Define a map ๐ โถ [๐, ๐] โ ๐ต๐ as follows. If ๐ โ [๐, ๐], then ๐ = ๐ โ ๐ โฒ where ๐ โฒ โ ๐ โ ๐. If ๐ โฒ = {๐ก ๐ , . . . , ๐ก๐ }, then let ๐(๐) = {๐, . . . , ๐}. This is well-defined since, by definition, ๐, . . . , ๐ โ [๐]. To show that ๐ is a bijection, we construct its inverse. Assume ๐ผ = {๐, . . . , ๐} โ ๐ต๐ . Then let ๐โ1 (๐ผ) = ๐ โ {๐ก ๐ , . . . , ๐ก๐ }. The proof that this is well-defined is similar to that of ๐, and the fact that these are inverses is clear from their definitions. Finally, we need to show that ๐ and ๐โ1 are order preserving. If ๐ โค ๐ in [๐, ๐], then ๐ โฒ โ ๐ โฒ in ๐ โ ๐. It follows that ๐(๐) โค ๐(๐ ) in ๐ต๐ . Thus ๐ is order preserving. As far as ๐โ1 , take ๐ผ โค ๐ฝ in ๐ต๐ . Then the corresponding sets ๐๐ผ and ๐๐ฝ in ๐ โ ๐ gotten by using ๐ผ and ๐ฝ for subscripts satisfy ๐๐ผ โ ๐๐ฝ . It follows that ๐โ1 (๐ผ) = ๐ โ ๐๐ผ โ ๐ โ ๐๐ฝ = ๐โ1 (๐ฝ) which shows that ๐โ1 is order preserving.
โก
5.2. Chains, antichains, and operations on posets We will now consider three operations for building posets. Chains and the related notion of antichains will play important roles. Given posets (๐, โค๐ ) and (๐, โค๐ ) with ๐ โฉ ๐ = โ
, their disjoint union is the poset whose elements are ๐ โ ๐ with the partial order ๐ฅ โค๐โ๐ ๐ฆ if (a) ๐ฅ, ๐ฆ โ ๐ and ๐ฅ โค๐ ๐ฆ or (b) ๐ฅ, ๐ฆ โ ๐ and ๐ฅ โค๐ ๐ฆ. So one just takes the relations in ๐ and ๐ and does not add any new ones. To illustrate, the poset on the left in Figure 5.4 is the disjoint union ๐ = {๐} โ {๐}. If one takes both posets in this figure, then ๐ โ ๐ is the poset on {๐, ๐, ๐โฒ , ๐โฒ } with ๐โฒ < ๐โฒ being the only Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
146
5. Counting with Partially Ordered Sets
strict order relation. An important example of disjoint union is the ๐-element antichain ๐ด๐ which consists of a set of ๐ elements with no strict order relations. So ๐ = {๐} โ {๐} is a copy of ๐ด2 . Another way to combine disjoint posets is their ordinal sum ๐ + ๐ which has elements ๐ โ ๐ and ๐ฅ โค๐+๐ ๐ฆ if one of (a), (b), (c) hold where (a) and (b) are as in the previous paragraph and the third possibility is (c) ๐ฅ โ ๐, ๐ฆ โ ๐. Intuitively, one takes the relations in ๐ and ๐ and also makes everything in ๐ smaller than everything in ๐. As an example using chains, we have ๐ถ๐ + ๐ถ๐ โ
๐ถ๐+๐+1 . Note that in general ๐ + ๐ โ ๐ + ๐ as the use of the adjective โordinalโ suggests. Our third method to produce new posets from old ones is via products. Given two (not necessarily disjoint) posets (๐, โค๐ ) and (๐, โค๐ ), their (direct or Cartesian) product has underlying set ๐ ร ๐ = {(๐ฅ, ๐ฆ) โฃ ๐ฅ โ ๐, ๐ฆ โ ๐} together with the partial order (๐ฅ, ๐ฆ) โค๐ร๐ (๐ฅโฒ , ๐ฆโฒ ) if ๐ฅ โค๐ ๐ฅโฒ and ๐ฆ โค๐ ๐ฆโฒ . We let ๐๐ denote the ๐-fold product of ๐. One can obtain the Hasse diagram for ๐ ร ๐ by replacing each vertex of ๐ with a copy of ๐ and then, for each edge between two vertices of ๐, connecting each pair of vertices having the same first coordinate in the corresponding two copies of ๐. Illustrations of this can be found in Figure 5.1. For example, ๐ท18 looks like a rectangle because it is isomorphic to ๐ถ1 ร ๐ถ2 . Also, ๐ต3 โ
๐ถ13 , which is why the Hasse diagram looks like the projection of a 3-dimensional cube into the plane. Both of these isomorphisms generalize, and there is one for ฮ ๐ as well. Proposition 5.2.1. We have the following product decompositions. (a) We have ๐ต๐ โ
๐ถ1๐ . ๐
๐
๐
(b) If the prime factorization of ๐ is ๐ = ๐1 1 ๐2 2 โฏ ๐๐ ๐ , then ๐ท๐ โ
๐ถ๐1 ร ๐ถ๐2 ร โฏ ร ๐ถ๐๐ . (c) If ๐ โค ๐ in ฮ ๐ , then [๐, ๐] โ
ฮ ๐1 ร ฮ ๐2 ร โฏ ร ฮ ๐๐ where ๐ = ๐1 /๐2 / . . . /๐๐ and ๐๐ is the number of blocks of ๐ contained in ๐๐ for all ๐. Proof. (a) Consider the map ๐ used in the proof of Theorem 1.3.1. Stated in the language of posets, we see that ๐ โถ ๐ต๐ โ ๐ถ1๐ . And we have already shown that ๐ is bijective. So we only need to prove that ๐ and ๐โ1 are order preserving. Suppose ๐, ๐ โ [๐] with ๐(๐) = (๐ฃ 1 , . . . , ๐ฃ ๐ ) and ๐(๐) = (๐ค 1 , . . . , ๐ค ๐ ). Now ๐ โ ๐ if and only if ๐ โ ๐ implies ๐ โ ๐. By the definition of ๐, this is equivalent to ๐ฃ ๐ = 1 implying ๐ค ๐ = 1. But this means that ๐ฃ ๐ โค ๐ค ๐ for all ๐ since if ๐ฃ ๐ = 0, then ๐ฃ ๐ โค ๐ค ๐ is automatic. Thus we have shown that ๐ โค ๐ in ๐ต๐ if and only if (๐ฃ 1 , . . . , ๐ฃ ๐ ) โค (๐ค 1 , . . . , ๐ค ๐ ) in ๐ถ1๐ which is what we wished to prove. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.2. Chains, antichains, and operations on posets
147
(b) The map for ๐ท๐ is similar. Define ๐ โถ ๐ท๐ โ โจ๐ ๐ถ๐๐ by ๐(๐) = (๐1 , ๐2 , . . . , ๐๐ ) ๐
where ๐ = โ๐ ๐๐ ๐ . The reader can now verify that this is a well-defined isomorphism of posets. (c) The construction of the isomorphism is messy but not conceptually difficult. Consider blocks of ๐ as being single elements and then aggregate all those lying in a given block of ๐ together. Again, the reader can fill in the details. โก So chains can help us understand various posets by taking products. There is another important way in which chains can be used to decompose certain posets. Let ๐ be a poset and ๐ถ โถ ๐ฅ0 < ๐ฅ1 < โฏ < ๐ฅ๐ be a chain in ๐. We say that ๐ถ is a chain of length ๐ from ๐ฅ0 to ๐ฅ๐ and also use the term ๐ฅ0 โ๐ฅ๐ chain. We let โ(๐ถ) denote the length of ๐ถ. Call ๐ถ maximal if it is not strictly contained in a larger chain of ๐. If [๐ฅ0 , ๐ฅ๐ ] is finite, this is equivalent to ๐ฅ๐ < ๐ฅ๐+1 being a cover for all 0 โค ๐ < ๐. The chain ๐ถ is saturated if it is not strictly contained in a larger chain from ๐ฅ0 to ๐ฅ๐ . Equivalently, ๐ถ is saturated if it is maximal in [๐ฅ0 , ๐ฅ๐ ]. For example, in ๐ท18 the chain 3 < 6 < 18 is a chain of length 2 from 3 to 18 which is saturated since each inequality is a cover. But this chain is not maximal since it is contained in the larger chain 1 < 3 < 6 < 18. Some posets can be written as a disjoint union of certain subposets called ranks as follows. Suppose ๐ is a poset which is locally finite in that the cardinality of any interval [๐ฅ, ๐ฆ] of ๐ is finite. All the posets in Figure 5.1 are locally finite even though ๐ and ๐ are not finite. The poset of real numbers with its usual total order is not locally finite. Let ๐ be locally finite and have a 0.ฬ Then ๐ is ranked if for any ๐ฅ โ ๐ all saturated chains from 0ฬ to ๐ฅ have the same length. In this case we call this common length the rank of ๐ฅ and it is denoted rk ๐ฅ or rk๐ ๐ฅ if we wish to be specific about the poset. For ๐ โ โ, the ๐th rank set of ๐ is (5.1)
Rk๐ ๐ = {๐ฅ โ ๐ โฃ rk ๐ฅ = ๐}.
If ๐ is finite, then we define its rank to be rk ๐ = max{๐ โฃ Rk๐ ๐ โ โ
}. All the posets in Figure 5.1 are ranked and we will describe their rank sets shortly. An example of a poset which is not ranked is in Figure 5.5. This is because there are two ฬ 1ฬ chains, namely 0ฬ < ๐ < 1ฬ which is of length 2 and 0ฬ < ๐ < ๐ < 1ฬ which saturated 0โ is of length 3. We will now list the rank information for the posets in Figure 5.1. Note how many of the combinatorial concepts which were introduced in earlier chapters occur naturally in this context. These results are easily proved, so the demonstrations can be filled in by the reader. Proposition 5.2.2. All the posets in Figure 5.1 are ranked with the following rank functions. (a) If ๐ โ ๐ถ๐ , then rk(๐) = ๐, so Rk๐ (๐ถ๐ ) = {๐}. Also, rk(๐ถ๐ ) = ๐. (b) If ๐ โ ๐ต๐ , then rk(๐) = #๐, so Rk๐ (๐ต๐ ) = ([๐] ). Also, rk(๐ต๐ ) = ๐. ๐ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
148
5. Counting with Partially Ordered Sets
1ฬ
๐ ๐ ๐
0ฬ Figure 5.5. An unranked poset ๐
๐
(c) If ๐ โ ๐ท๐ has prime factorization ๐ = ๐1 1 โฏ ๐๐ ๐ , then rk(๐) = ๐1 + โฏ + ๐๐ . So Rk๐ (๐ท๐ ) is the set of ๐ โฃ ๐ with ๐ primes in their prime factorization, counted with multiplicity. Also, rk(๐ท๐ ) is the total number of primes dividing ๐, counted with multiplicity. (d) If ๐ โ ฮ ๐ has ๐ blocks, then rk(๐) = ๐ โ ๐, so Rk๐ (ฮ ๐ ) = ๐([๐], ๐ โ ๐). Also, rk(ฮ ๐ ) = ๐ โ 1. (e) If ๐ โ ๐ , then rk(๐) = |๐|, so Rk๐ (๐ ) = ๐(๐). (f) If ๐ผ โ ๐พ๐ has ๐ parts, then rk(๐ผ) = ๐ โ ๐, so Rk๐ (๐พ๐ ) = ๐(๐, ๐ โ ๐). Also, rk(๐พ๐ ) = ๐ โ 1. (g) If ๐ โ ๐, then rk(๐) = |๐|, so Rk๐ (๐) = ๐๐ . (h) If ๐ โ ๐ฟ(๐), then rk(๐) = dim ๐, so Rk๐ (๐) = [๐๐ ]. Also, rk(๐ฟ(๐)) = dim ๐. โก
5.3. Lattices The reader will have noticed that several of our example posets are called โlatticesโ. This is an important class of partially ordered sets with the property that pairs of elements have greatest lower bounds and least upper bounds. It is also common to study lattices whose elements satisfy certain identities using these two operations. In this section we will prove a theorem characterizing the lattices satisfying a distributive law. If ๐ is a poset and ๐ฅ, ๐ฆ โ ๐, then a lower bound for ๐ฅ, ๐ฆ is a ๐ง โ ๐ such that ๐ง โค ๐ฅ and ๐ง โค ๐ฆ. For example, if ๐, ๐ โ ๐ต๐ , then any set contained in both ๐ and ๐ is a lower bound. We say that ๐ฅ, ๐ฆ have a greatest lower bound or meet if there is an element in ๐, denoted ๐ฅ โง ๐ฆ, which is a lower bound for ๐ฅ, ๐ฆ, and ๐ฅ โง ๐ฆ โฅ ๐ง for all lower bounds ๐ง of ๐ฅ and ๐ฆ. Returning to ๐ต๐ , we have ๐ โง ๐ = ๐ โฉ ๐. In fact, one can remember the notation for meet as just a squared-off intersection symbol. Note that if the meet of ๐ฅ, ๐ฆ exists, then it is unique. Indeed, if ๐ง, ๐งโฒ are both greatest lower bounds of ๐ฅ, ๐ฆ, then we have ๐ง โฅ ๐งโฒ since ๐งโฒ is a lower bound and ๐ง is the greatest lower bound. But interchanging the roles of ๐ง and ๐งโฒ also gives ๐งโฒ โฅ ๐ง. So ๐ง = ๐งโฒ by antisymmetry. Note also that it is possible for the meet not to exist. For example, in the poset of Figure 5.2, ๐ โง ๐ does Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.3. Lattices
149
not exist because this pair has no lower bound. Also, ๐ โง ๐ does not exist but this is because the pair has both ๐ and ๐ as lower bounds, but there is no lower bound larger than both ๐ and ๐. One can extend these definitions in the obvious way from pairs of elements to any nonempty set of elements ๐ = {๐ฅ1 , . . . , ๐ฅ๐ } โ ๐. In this case the meet is denoted ๐ฅ. ๐= โ โ ๐ฅโ๐
One can also reasonably define the meet of the empty set as long as ๐ has a 1.ฬ Indeed, for any ๐ฅ โ ๐ we would want ๐ฅโง(
โ
โ
) =
({๐ฅ} โช โ
) = {๐ฅ} = ๐ฅ. โ โ
But the only element ๐ฆ of ๐ such that ๐ฅ โง ๐ฆ = ๐ฅ for all ๐ฅ is ๐ฆ = 1.ฬ So we let โงโ
= 1.ฬ The concepts of upper bound and least upper bound are obtained by reversing the inequalities in the definitions of the previous paragraph. If the least upper bound of ๐ฅ, ๐ฆ exists, then it is denoted ๐ฅ โจ ๐ฆ and is also called their join. A lattice is a poset such that every pair of elements has a meet and a join. Note that this is different from the use of the term โlatticeโ as in โlattice pathโ which in this case refers to the discrete subgroup โค2 of โ2 . The context should make it clear which meaning is intended. All the poset families in Figure 5.1 are lattices except for the pattern poset ๐ which has subposets isomorphic to Figure 5.2 between its second and third ranks. To describe the meets and joins we need the following terminology. If ๐, ๐ โ โ, then gcd(๐, ๐) and lcm(๐, ๐) denote their greatest common divisor and least common multiple, respectively. Given two Young diagrams ๐, ๐, we then take their intersection ๐ โฉ ๐ or union ๐ โช ๐ by aligning them as in Figure 3.1 and then taking the intersection or union of their sets of squares, respectively. If ๐, ๐ are vector subspaces of ๐, then their sum is ๐ + ๐ = {๐ข + ๐ค โฃ ๐ข โ ๐, ๐ค โ ๐}. We leave the verification of the next result to the reader. Proposition 5.3.1. The posets ๐ถ๐ , ๐ต๐ , ๐ท๐ , ฮ ๐ , ๐ , ๐พ๐ , and ๐ฟ(๐) are all lattices for all ๐ and ๐ of finite dimension over some ๐ฝ๐ . In addition, we have the following descriptions of their meets and joins. (a) If ๐, ๐ โ ๐ถ๐ , then ๐ โง ๐ = min{๐, ๐} and ๐ โจ ๐ = max{๐, ๐}. (b) If ๐, ๐ โ ๐ต๐ , then ๐ โง ๐ = ๐ โฉ ๐ and ๐ โจ ๐ = ๐ โช ๐. (c) If ๐, ๐ โ ๐ท๐ , then ๐ โง ๐ = gcd(๐, ๐) and ๐ โจ ๐ = lcm(๐, ๐). (d) Suppose ๐, ๐ โ ฮ ๐ . Then ๐ โง ๐ is the partition whose blocks are the nonempty intersections of the form ๐ต โฉ๐ถ for blocks ๐ต โ ๐, ๐ถ โ ๐. Also, ๐โจ๐ is the partition such that ๐, ๐ are in the same block of the join if and only if there is a sequence of blocks ๐ท1 , . . . , ๐ท๐ where each ๐ท๐ is a block of either ๐ or ๐, ๐ โ ๐ท1 , ๐ โ ๐ท๐ , and ๐ท๐ โฉ ๐ท๐+1 โ โ
for all ๐. (e) If ๐, ๐ โ ๐ , then ๐ โง ๐ = ๐ โฉ ๐ and ๐ โจ ๐ = ๐ โช ๐. (f) If ๐, ๐ โ ๐ฟ(๐), then ๐ โง ๐ = ๐ โฉ ๐ and ๐ โจ ๐ = ๐ + ๐. Next we will give a list of some elementary properties of lattices. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
150
5. Counting with Partially Ordered Sets
Proposition 5.3.2. Let ๐ฟ be a lattice. Then the following are true for all ๐ฅ, ๐ฆ, ๐ง โ ๐ฟ. (a) (Idempotent law) ๐ฅ โง ๐ฅ = ๐ฅ โจ ๐ฅ = ๐ฅ. (b) (Commutative law) ๐ฅ โง ๐ฆ = ๐ฆ โง ๐ฅ and ๐ฅ โจ ๐ฆ = ๐ฆ โจ ๐ฅ. (c) (Associative law) (๐ฅ โง ๐ฆ) โง ๐ง = ๐ฅ โง (๐ฆ โง ๐ง) and (๐ฅ โจ ๐ฆ) โจ ๐ง = ๐ฅ โจ (๐ฆ โจ ๐ง). (d) (Absorption law) ๐ฅ โง (๐ฅ โจ ๐ฆ) = ๐ฅ = ๐ฅ โจ (๐ฅ โง ๐ฆ). (e) ๐ฅ โค ๐ฆ โบ ๐ฅ โง ๐ฆ = ๐ฅ โบ ๐ฅ โจ ๐ฆ = ๐ฆ. (f) If ๐ฅ โค ๐ฆ, then ๐ฅ โง ๐ง โค ๐ฆ โง ๐ง and ๐ฅ โจ ๐ง โค ๐ฆ โจ ๐ง. (g) ๐ฅ โง (๐ฆ โจ ๐ง) โฅ (๐ฅ โง ๐ฆ) โจ (๐ฅ โง ๐ง) and ๐ฅ โจ (๐ฆ โง ๐ง) โค (๐ฅ โจ ๐ฆ) โง (๐ฅ โจ ๐ง). (h) If ๐ is a finite, nonempty subset of ๐ฟ, then โ ๐ and โ ๐ exist. (i) If ๐ฟ is finite, then ๐ฟ has a 0ฬ and a 1.ฬ (j) The dual ๐ฟโ is a lattice. (k) If ๐ is a poset and there is an isomorphism ๐ โถ ๐ฟ โ ๐, then ๐ is also a lattice. Furthermore, for ๐ฅ, ๐ฆ โ ๐ฟ, ๐(๐ฅ โง ๐ฆ) = ๐(๐ฅ) โง ๐(๐ฆ)
and
๐(๐ฅ โจ ๐ฆ) = ๐(๐ฅ) โจ ๐(๐ฆ).
Proof. The proofs of these results are straightforward. So we will give a demonstration for the first inequality in (g) and leave the rest to the reader. By definition of lower bound, ๐ฅ โง ๐ฆ โค ๐ฅ. And similarly ๐ฅ โง ๐ฆ โค ๐ฆ โค ๐ฆ โจ ๐ง. So by definition of greatest lower bound, ๐ฅโง๐ฆ โค ๐ฅโง(๐ฆโจ๐ง). Similar reason gives ๐ฅโง๐ง โค ๐ฅโง(๐ฆโจ๐ง). Using the previous two inequalities and the definition of least upper bound yields (๐ฅ โง ๐ฆ) โจ (๐ฅ โง ๐ง) โค ๐ฅ โง (๐ฆ โจ ๐ง) which is what we wished to prove. โก
It is certainly possible for the inequalities in (g) of the previous proposition to be strict. For example, using the lattice in Figure 5.5 we have ๐ โง (๐ โจ ๐) = ๐ โง 1ฬ = ๐ while (๐ โง ๐) โจ (๐ โง ๐) = ๐ โจ 0ฬ = ๐. However, when we have equality in one of these two inequalities, it is forced in the other. Proposition 5.3.3. Let ๐ฟ be a lattice. Then ๐ฅ โง (๐ฆ โจ ๐ง) = (๐ฅ โง ๐ฆ) โจ (๐ฅ โง ๐ง) for all ๐ฅ, ๐ฆ, ๐ง โ ๐ฟ if and only if ๐ฅ โจ (๐ฆ โง ๐ง) = (๐ฅ โจ ๐ฆ) โง (๐ฅ โจ ๐ง) for all ๐ฅ, ๐ฆ, ๐ง โ ๐ฟ. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.3. Lattices
151
Proof. For the forward direction we have (๐ฅ โจ ๐ฆ) โง (๐ฅ โจ ๐ง) = [(๐ฅ โจ ๐ฆ) โง ๐ฅ] โจ [(๐ฅ โจ ๐ฆ) โง ๐ง] = ๐ฅ โจ [(๐ฅ โจ ๐ฆ) โง ๐ง] = ๐ฅ โจ [(๐ฅ โง ๐ง) โจ (๐ฆ โง ๐ง)] = [๐ฅ โจ (๐ฅ โง ๐ง)] โจ (๐ฆ โง ๐ง) = ๐ฅ โจ (๐ฆ โง ๐ง), โก
which is the desired equality. The proof of the other direction is similar.
A lattice which satisfies either of the two equalities in Proposition 5.3.3 is called a distributive lattice, and these equations are called the distributive laws. Of the lattices in Proposition 5.3.1, ฮ ๐ is not distributive for ๐ โฅ 3. In fact, taking ๐ง, ๐ฆ, ๐ง to be the three elements of rank 1 in ฮ 3 gives a strict inequality in the defining relation. Similarly, ๐ฟ(๐) is not distributive for dim ๐ โฅ 2. All the other lattices are distributive as the reader will be asked to show in the exercises. Proposition 5.3.4. The posets ๐ถ๐ , ๐ต๐ , ๐ท๐ , ๐ , ๐พ๐ are distributive lattices for all ๐.
โก
We will now prove a beautiful theorem characterizing finite distributive lattices due to Birkhoff [14]. It says that every such lattice is essentially a set of lower-order ideals partially ordered by inclusion. Given a poset ๐, consider ๐ฅ(๐) = {๐ผ โฃ ๐ผ is a lower-order ideal of ๐}. {๐, ๐ , ๐ก, ๐ข} ๐ข {๐, ๐ , ๐ก} ๐
{๐, ๐ก, ๐ข}
๐ก {๐, ๐ } ๐
{๐, ๐ก} {๐}
๐ โ
๐ฅ(๐) Figure 5.6. A poset and its associated distributive lattice
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
152
5. Counting with Partially Ordered Sets
Turn ๐ฅ(๐) into a poset by letting ๐ผ โค ๐ฝ if ๐ผ โ ๐ฝ. For example, a poset ๐ and the corresponding poset ๐ฅ(๐) are shown in Figure 5.6. Our first order of business is to show that ๐ฅ(๐) is always a distributive lattice. Proposition 5.3.5. If ๐ is any poset, then ๐ฅ(๐) is a distributive lattice. Proof. It suffices to show that if ๐ผ, ๐ฝ โ ๐ฅ(๐), then so are ๐ผ โฉ ๐ฝ and ๐ผ โช ๐ฝ. Indeed, this suffices because these are the greatest lower bound and least upper bound if one considers all subsets of ๐, and set intersection and union satisfy the distributive laws. We will demonstrate this for ๐ผ โฉ ๐ฝ since the argument for union is similar. We need to show that ๐ผ โฉ ๐ฝ is a lower-order ideal of ๐. So take ๐ฅ โ ๐ผ โฉ ๐ฝ and ๐ฆ โค ๐ฅ. Now ๐ฅ โ ๐ผ and ๐ฅ โ ๐ฝ. Since both sets are ideals, this implies ๐ฆ โ ๐ผ and ๐ฆ โ ๐ฝ. So ๐ฆ โ ๐ผ โฉ ๐ฝ which is what we needed to show. โก The amazing thing is that every finite distributive lattice is of the form ๐ฅ(๐) for some poset ๐. In order to prove this, we need a way that, given a distributive lattice ๐ฟ, we can identify the ๐ from which it was built. This is done using certain elements of ๐ which we now define. Let ๐ฟ be a finite lattice so that ๐ฟ has a 0ฬ by Proposition 5.3.2(i). Call ๐ฅ โ ๐ฟ โ {0}ฬ join irreducible if ๐ฅ cannot be written as ๐ฅ = ๐ฆ โจ ๐ง where ๐ฆ, ๐ง < ๐ฅ. Equivalently, if ๐ฅ = ๐ฆ โจ ๐ง, then ๐ฆ = ๐ฅ or ๐ง = ๐ฅ. Let Irr(๐ฟ) = {๐ฅ โ ๐ฟ โฃ ๐ฅ is join irreducible}. It turns out the join irreducibles are easy to spot in the Hasse diagram of ๐ฟ. Also, the join irreducibles under a given element join to give that element. Proposition 5.3.6. Let ๐ฟ be a finite lattice. (a) Element ๐ฅ โ ๐ฟ is join irreducible if and only if ๐ฅ covers exactly one element. (b) For any ๐ฅ โ ๐ฟ, if we let (5.2)
๐ผ๐ฅ = {๐ โค ๐ฅ โฃ ๐ โ Irr(๐ฟ)}, then ๐ฅ = โ ๐ผ๐ฅ .
Proof. (a) First note that, by definition, 0ฬ is not join irreducible. And 0ฬ covers no elements, so the proposition is true in that case. Now assume ๐ฅ โ 0.ฬ For the forward direction suppose, towards a contradiction, that ๐ฅ covers (at least) two elements ๐ฆ, ๐ง. But then ๐ฅ = ๐ฆ โจ ๐ง since ๐ฅ is clearly an upper bound for ๐ฆ, ๐ง and there can be no smaller bound because of the covering relations. This contradicts the fact that ๐ฅ is join irreducible. For the converse, let ๐ฅ cover a unique element ๐ฅโฒ . If ๐ฅ = ๐ฆ โจ ๐ง with ๐ฆ, ๐ง < ๐ฅ, then we must have ๐ฆ, ๐ง โค ๐ฅโฒ because ๐ฅ covers no other element. This forces ๐ฆ โจ ๐ง โค ๐ฅโฒ < ๐ฅ which is the desired contradiction. (b) We induct on the number of elements in [0,ฬ ๐ฅ]. If ๐ฅ = 0,ฬ then the statement is true because ๐ผ๐ฅ = โ
and the empty join equals 0ฬ just as the empty meet equals 1.ฬ If ๐ฅ > 0,ฬ then there are two cases. If ๐ฅ โ Irr(๐ฟ), then ๐ฅ is the maximum element of ๐ผ๐ฅ so โ ๐ผ๐ฅ = ๐ฅ by Proposition 5.3.2(e). If ๐ฅ โ Irr(๐ฟ), then, by part (a), ๐ฅ covers more than Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
5.3. Lattices
153
one element. So we can write ๐ฅ = ๐ฆ โจ ๐ง for any pair of elements ๐ฆ, ๐ง covered by ๐ฅ. By induction, ๐ฆ = โ ๐ผ๐ฆ and ๐ง = โ ๐ผ๐ง where ๐ผ๐ฆ , ๐ผ๐ง โ ๐ผ๐ฅ . It follows that ๐ฅ = ๐ฆ โจ ๐ง = ( ๐ผ๐ฆ ) โจ ( ๐ผ๐ง ) = (๐ผ โช ๐ผ ) โค ๐ผ โค๐ฅ โ โ โ ๐ฆ ๐ง โ ๐ฅ where the last inequality follows since ๐ โค ๐ฅ for all ๐ โ ๐ผ๐ฅ . The previous displayed inequalities force ๐ฅ = โ ๐ผ๐ฅ as desired. โก Using this proposition, the reader can see immediately in Figure 5.6 that ๐ฅ(๐) has four join irreducibles which form a subposet isomorphic to ๐. Birkhoffโs theorem says this always happens. Theorem 5.3.7 (Fundamental Theorem of Finite Distributive Lattices). If ๐ฟ is a finite distributive lattice, then ๐ฟ โ
๐ฅ(๐) where ๐ = Irr(๐ฟ). Proof. We need to define two order-preserving maps ๐ โถ ๐ฟ โ ๐ฅ(๐) and ๐ โถ ๐ฅ(๐) โ ๐ฟ which are inverses of each other. If ๐ฅ โ ๐ฟ, then let ๐(๐ฅ) = ๐ผ๐ฅ as defined by (5.2). Note that this is well-defined since ๐ผ๐ฅ is an ideal: if ๐ โ ๐ผ๐ฅ and ๐ โค ๐ is irreducible, then ๐ โค ๐ โค ๐ฅ so that ๐ โ ๐ผ๐ฅ . Also, ๐ is order preserving since ๐ฅ โค ๐ฆ implies ๐ผ๐ฅ โ ๐ผ๐ฆ by an argument similar to the one just given. For the inverse map, we let ๐(๐ผ) = โ ๐ผ for ๐ผ โ ๐ฅ(๐). Clearly this is an element of ๐ฟ since ๐ โ ๐ฟ and so ๐ is well-defined. It is also order preserving since if ๐ผ โ ๐ฝ, then ๐(๐ฝ) =
โ
๐ฝ=(
โ
๐ผ) โจ (
โ
(๐ฝ โ ๐ผ)) โฅ
โ
๐ผ = ๐(๐ผ).
It remains to prove that ๐ and ๐ are inverses. If ๐ฅ โ ๐ฟ, then, using Proposition 5.3.6(b), ๐(๐(๐ฅ)) = ๐(๐ผ๐ฅ ) =
โ
๐ผ๐ฅ = ๐ฅ.
Now consider ๐ผ โ ๐ฅ(๐) and let ๐ฅ = ๐(๐ผ) = โ ๐ผ. Then ๐(๐(๐ผ)) = ๐ผ๐ฅ and we must show ๐ผ = ๐ผ๐ฅ . For the containment ๐ผ โ ๐ผ๐ฅ , take ๐ โ ๐ผ. So ๐ โค โ ๐ผ = ๐ฅ. But this means ๐ โ ๐ผ๐ฅ by definition (5.2), which gives the desired subset relation. To show ๐ผ๐ฅ โ ๐ผ, take ๐ โ ๐ผ๐ฅ . We have that โ ๐ผ = ๐ฅ = โ ๐ผ๐ฅ . So ๐ โง (โ ๐ผ) = ๐ โง (โ ๐ผ๐ฅ ) and, applying the distributive law, (5.3)
โ
{๐ โง ๐ โฃ ๐ โ ๐ผ} =
{๐ โง ๐ โฃ ๐ โ ๐ผ๐ฅ }. โ
Since ๐ โ ๐ผ๐ฅ , the set on the right in (5.3) contains ๐ โง ๐ = ๐. Furthermore, every element of that set is of the form ๐ โง ๐ โค ๐. It follows that the right-hand side of the equality in (5.3) is just ๐. But ๐ is join irreducible, so there must be some element ๐ โ ๐ผ on the left in (5.3) such that ๐ โง ๐ = ๐. By Proposition 5.3.2(e) this forces ๐ โค ๐ โ ๐ผ. Since ๐ผ is an ideal, we have ๐ โ ๐ผ which is the final step of the proof. โก
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
154
5. Counting with Partially Ordered Sets
5.4. The Mรถbius function of a poset The Mรถbius function is a fundamental invariant of any locally finite poset. A special case of this function was first studied in number theory. But the generalization to partially ordered sets is both more powerful and also in some ways more intuitive. It is of great use to enumerators because, as we will see in the next section, it permits one to invert certain summation formulas to get information about the summands. Let ๐ be a locally finite poset with a 0.ฬ The (one-variable) Mรถbius function of ๐ is a map ๐ โถ ๐ โ โค defined inductively by if ๐ฅ = 0,ฬ
1 (5.4)
๐(๐ฅ) = { โ โ ๐(๐ฆ)
otherwise.
๐ฆ 1 so that ๐ฅ > ๐(๐ฅ) > 0ฬ๐ . Now, by induction, ๐๐ (๐ฅ) = โ โ ๐๐ (๐ฆ) = โ
โ
๐ฆ ๐๐. Show that ๐(๐, ๐) โก 0 (mod ๐). Hint: Use part (a). (c) Let ๐ be prime. Given ๐ โฅ ๐ โฅ 0, write ๐ = ๐โณ ๐ + ๐โฒ where 0 โค ๐โฒ < ๐ and ๐ = ๐โณ (๐ โ 1) + ๐โฒ where 0 โค ๐โฒ < ๐ โ 1. Then โณ โณ ๐ ๐(๐, ๐ โ ๐) โก (โ1)๐ ( โณ )๐(๐โฒ , ๐โฒ โ ๐โฒ ) (mod ๐). ๐
Hint: Use part (a). (d) Consider two polynomials ๐(๐ฅ), ๐(๐ฅ) โ โค[๐ฅ] and let ๐ โ โ. We say that ๐(๐ฅ) is congruent to ๐(๐ฅ) modulo ๐ if every coefficient of ๐(๐ฅ) โ ๐(๐ฅ) is divisible by ๐. If ๐ is prime, show that ๐ฅโ๐ โก ๐ฅ๐ โ ๐ฅ (mod ๐) where ๐ฅโ๐ = ๐ฅ(๐ฅ โ 1) โฏ (๐ฅ โ ๐ + 1). Hint: Use Theorem 3.1.2 and part (a). (23) Finish the proof of Theorem 6.5.6 (24) (a) Show that if ๐บ acts on ๐, then it also acts on ๐(๐, ๐), the set of partitions of ๐ into ๐ blocks. (b) Let ๐ be prime and let ๐ โฅ ๐. Show for the Stirling numbers of the second kind that ๐(๐, ๐) โก ๐(๐ โ ๐, ๐ โ ๐) + ๐(๐ โ ๐ + 1, ๐) (mod ๐). (c) If ๐ is prime and ๐ โ โค, then show ๐(๐, ๐) โก {
1 if ๐ = 1 or ๐ 0 otherwise
(mod ๐).
(d) Suppose ๐ is prime and 0 โค ๐ โค ๐. If ๐ satisfies ๐๐ โค ๐ < ๐๐+1 , then ๐(๐ + ๐๐ (๐ โ 1), ๐) โก ๐(๐, ๐) (mod ๐). Hint: Use part (b). (25) (a) Recall from Exercise 10 in Chapter 1 that Pascalโs triangle is fractal modulo 2. Give a second proof of this by using Lucasโs Congruence (Theorem 6.5.6) to show that if 0 โค ๐ < 2๐ and 0 โค ๐ โค ๐ + 2๐ , then ๐ โง( ) if 0 โค ๐ โค ๐ โช ๐ โช ๐ + 2๐ if ๐ < ๐ < 2๐ (mod 2). ( )โก 0 ๐ โจ โช โช( ๐ ) if 2๐ โค ๐ โค ๐ + 2๐ โฉ ๐ โ 2๐ (b) Find and prove the analogue of part (a) for an arbitrary prime ๐ โฅ 2. (26) Use Proposition 6.5.8 to prove an analogue of Proposition 6.5.9 for any ๐ โ โ. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
217
(27) (a) Prove that for any group ๐บ the poset ๐ฟ(๐บ) is a lattice. In particular, if ๐ป, ๐พ โ ๐ฟ(๐บ), then ๐ป โง ๐พ = ๐ป โฉ ๐พ and ๐ป โจ ๐พ is the subgroup of ๐บ generated by ๐ป, ๐พ. (b) Let โค๐ be the integers modulo ๐ and consider the direct sum โค๐๐ of ๐ copies of โค๐ . Show that if ๐ is prime, then ๐ฟ(โค๐๐ ) โ
๐ฟ๐ (๐), the subspace lattice of dimension ๐ over the Galois field with ๐ elements. (c) Use part (b) to prove a congruence modulo ๐2 for the binomial coefficients. (28) Prove Lemma 6.6.1(b). (29) Prove Lemma 6.6.3. (30) Let ๐ โ โ and ๐ = (1, 2, . . . , ๐). Consider the group ๐บ = โจ๐โฉ acting on the set of multisets ๐ = (([๐] )). ๐ (a) Suppose ๐ = {{1๐1 , 2๐2 , . . . , ๐๐๐ }}. Show that ๐๐ = ๐ if and only if ๐1 = ๐2 = โฏ = ๐๐ . (b) Show that if ๐ is prime, then ๐ ๐โ๐ (( )) โก โ (( )) (mod ๐). ๐ ๐ โ ๐๐ ๐โฅ0 (31) (a) Prove that ๐2๐๐๐/๐ is a primitive ๐th root of unity if and only if gcd(๐, ๐) = 1. (b) Prove that the CSP is exhibited by the triple [๐] ๐ ] ). (( ), โจ(1, 2, . . . , ๐)โฉ, [ ๐ ๐ ๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/07
Chapter 7
Counting with Symmetric Functions
A formal power series is symmetric if it is invariant under permutation of its variables. We have already seen generating functions of this type arise naturally in Theorem 6.4.2. Symmetric functions have many other connections to combinatorics some of which we will discuss in this chapter. In particular, we will see that they arise when studying log-concavity, Young tableaux, various posets, chromatic polynomials, and the cyclic sieving phenomenon. They are also intimately connected with group representations. The appendix to this book contains a summary of the facts we will need in this regard, and more information can be found in Saganโs text [79]. For a wealth of information about symmetric functions in general, see Macdonaldโs book [60].
7.1. The algebra of symmetric functions, Sym In this section we formally define the algebra of symmetric functions and introduce some of its standard bases. Along the way, we prove the Fundamental Theorem of Symmetric Functions and show how the coefficients of a polynomial can be expressed as a symmetric function of its roots. Let ๐ฑ = {๐ฅ1 , ๐ฅ2 , ๐ฅ3 , . . . } be a countably infinite set of commuting variables. Con๐ ๐ ๐ sider the algebra of formal power series โ[[๐ฑ]]. A monomial ๐ = ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ has 6 5 degree deg ๐ = โ๐ ๐๐ . For example, deg(๐ฅ2 ๐ฅ4 ๐ฅ8 ) = 5 + 1 + 6 = 12. We say that ๐(๐ฑ) โ โ[[๐ฑ]] is homogeneous of degree ๐ if deg ๐ = ๐ for all monomials ๐ appearing in ๐(๐ฑ). A weaker condition is that ๐(๐ฑ) have bounded degree which means that there is an ๐ with deg ๐ โค ๐ for all ๐ appearing in ๐(๐ฑ). To illustrate, ๐(๐ฑ) = โ๐ ๐. For example, (7.3)
(1, 2)(๐ฅ12 + 2๐ฅ1 ๐ฅ23 + 5๐ฅ14 ๐ฅ3 โ ๐ฅ3 ๐ฅ4 ) = ๐ฅ22 + 2๐ฅ13 ๐ฅ2 + 5๐ฅ24 ๐ฅ3 โ ๐ฅ3 ๐ฅ4 .
Call ๐(๐ฑ) symmetric if ๐๐ = ๐ for all ๐ in every symmetric group ๐๐ . Equivalently, ๐ ๐ ๐ ๐ ๐ ๐ any two monomials ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ and ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ , where ๐1 , . . . , ๐๐ are distinct and similarly for ๐1 , . . . , ๐ ๐ , have the same coefficient in ๐(๐ฑ) since one can always find a permutation ๐ such that ๐(๐๐ ) = ๐ ๐ for all ๐. Another equivalent description is that any ๐ ๐ ๐ ๐ ๐ ๐ monomial ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ has the same coefficient as ๐ฅ1 1 ๐ฅ2 2 โฏ ๐ฅ๐ ๐ in ๐(๐ฑ). To illustrate, (7.4)
๐(๐ฑ) = 4๐ฅ15 + 4๐ฅ25 + 4๐ฅ35 + โฏ โ 6๐ฅ12 ๐ฅ22 โ 6๐ฅ12 ๐ฅ32 โ 6๐ฅ22 ๐ฅ32 โ โฏ
is symmetric. Let Sym๐ = Sym๐ (๐ฑ) = {๐ โ โ[[๐ฑ]] โฃ ๐ is symmetric and homogeneous of degree ๐}. The algebra of symmetric functions is Sym = Sym(๐ฑ) =
โจ
Sym๐ (๐ฑ).
๐โฅ0
Alternatively, Sym(๐ฑ) is the set of all symmetric power series in โ[[๐ฑ]] of bounded degree. This is because elements of the direct sum can only have a finite number of components which are nonzero. So the series in (7.4) is in Sym, but the ones in (7.1) and (7.3) are not. There are a number of interesting bases for Sym. We start with those functions obtained by symmetrizing a monomial. If ๐ = (๐1 , ๐2 , . . . , ๐๐ ) is a partition, then the associated monomial symmetric function is ๐
๐
๐
๐๐ = ๐๐ (๐ฑ) = โ ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ where the sum is over all distinct monomials having exponents ๐1 , ๐2 , โฏ , ๐๐ . We will often drop the parentheses and commas in the subscript ๐ as well as use multiplicity notation. As examples, in (7.4) we have ๐ = 4๐(5) โ 6๐(2,2) = 4๐5 โ 6๐22 , and (7.5)
๐21 = ๐ฅ12 ๐ฅ2 + ๐ฅ1 ๐ฅ22 + ๐ฅ12 ๐ฅ3 + ๐ฅ1 ๐ฅ32 + ๐ฅ22 ๐ฅ3 + ๐ฅ2 ๐ฅ32 + โฏ .
We must verify that we have defined a basis for Sym. Theorem 7.1.1. The ๐๐ as ๐ varies over all partitions form a basis for Sym. Consequently dim Sym๐ = ๐(๐), the number of partitions of ๐. Proof. The second sentence follows immediately from the first. And it is clear that the ๐๐ are independent since no two contain a monomial in common. So it suffices to show that every ๐ โ Sym can be written as a linear combination of the ๐๐ . Suppose ๐ ๐ ๐ ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐๐ is a monomial appearing in ๐ and having coefficient ๐ โ โ. Without loss Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.1. The algebra of symmetric functions, Sym
221
of generality we can assume the indices have been arranged so that ๐1 โฅ ๐2 โฅ โฏ โฅ ๐๐ and let ๐ = (๐1 , ๐2 , . . . , ๐๐ ). Since ๐ is symmetric, every monomial in ๐ with exponents ๐1 , ๐2 , . . . , ๐๐ appears with coefficient ๐. So ๐ โ ๐๐๐ is still symmetric and contains no monomials with these exponents. Since ๐ is of bounded degree, we can repeat this process a finite number of times until we reach the zero power series. It follows that ๐ will be a linear combination of the monomial symmetric functions which appear during this algorithm. โก There are three bases which are formed multiplicatively in that one first defines ๐๐ for ๐ โ โ and then sets (7.6)
๐ ๐ = ๐ ๐1 ๐ ๐2 โฏ ๐ ๐๐
where ๐ = (๐1 , ๐2 , . . . , ๐๐ ). Specifically, for ๐ โฅ 1 we define the ๐th power sum symmetric function ๐๐ = ๐(๐) = โ ๐ฅ๐๐ , ๐โฅ1
the ๐th elementary symmetric function โ
๐ ๐ = ๐(1๐ ) =
๐ฅ๐1 โฏ ๐ฅ๐๐ ,
๐1 ๐ 2 > โฏ > ๐ ๐ } โ โ. Since ๐ is weakly decreasing on ๐ by condition C1, those ๐ with ๐(๐) = ๐ 1 must come first in ๐. Furthermore, such ๐ must be arranged in increasing order since, if not, then there would be a descent which would force two of these ๐ to have distinct images by C2. Similar considerations show that the next elements in ๐ must be those such that ๐(๐) = ๐ 2 in increasing order, and so forth. Since all of the choices made in constructing ๐ are forced on us by the definition, the permutation is unique and we have proved the first statement of the proposition. As for (7.18), the uniqueness statement just proved shows that the union is disjoint. And existence of a compatible ๐ for each ๐ shows containment of the left-hand side in the right. The other containment is trivial since each ๐(๐) consists of functions ๐ โถ [๐] โ โ. โก Define the size of ๐ โถ [๐] โ โ to be ๐
|๐| = โ ๐(๐).
(7.19)
๐=1
Continuing our example |๐| = 21 + 21 + 21 + 20 + 20 + 10 + 0 + 0 = 113. It will also be instructive to consider the following subsets of ๐(๐) where the maximum of a function is the maximum of the values in its image ๐๐ (๐) = {๐ โ ๐(๐) โฃ max ๐ โค ๐}. There are nice generating functions associated with ๐(๐) and ๐๐ (๐). Lemma 7.4.2. For any ๐ โ ๐๐ we have (7.20)
โ ๐ฅ|๐| = ๐โ๐(๐)
๐ฅmaj ๐ (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ )
and (7.21)
โ #๐๐ (๐)๐ฅ๐ = ๐โฅ0
๐ฅdes ๐ . (1 โ ๐ฅ)๐+1
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.4. ๐-partitions
237
Proof. We will prove the first equality as the demonstration of the second is similar and so is left as an exercise. The basic idea behind the proof is the same as used in the demonstration of Theorem 1.3.4 where one adds or subtracts sufficient amounts to turn weak inequalities into strict ones or vice versa. An example will follow the proof. Let ๐ = ๐1 ๐2 . . . ๐๐ with Des ๐ = {๐1 < ๐2 < โฏ < ๐๐ }. We will construct a bijection ๐ โถ ๐(๐) โ ฮ๐ where ฮ๐ is the set of all partitions ๐ satisfying the length restriction โ(๐) โค ๐. Given ๐ โ ๐(๐), we will construct a sequence of functions ๐ = ๐0 , . . . , ๐๐ where ๐๐ will remove the strict inequality restriction at index ๐๐ from ๐๐โ1 . So let ๐1 be obtained from ๐ by subtracting one from each of ๐(๐1 ), . . . , ๐(๐๐1 ) and leaving the other ๐ values the same. Similarly, ๐2 is constructed from ๐1 by subtracting one from ๐1 (๐1 ), . . . , ๐1 (๐๐2 ) with other values constant, and so forth. By the end, the only restrictions on ๐๐ are that we have ๐๐ (๐1 ) โฅ โฏ โฅ ๐๐ (๐๐ ) โฅ 0. So the nonzero images of ๐๐ form a partition ๐ โ ฮ๐ and we let ๐(๐) = ๐. This is a bijection as its inverse is easy to construct. Furthermore, from the definition of the algorithm, it follows that ๐
|๐| = |๐1 | + ๐1 = โฏ = |๐| + โ ๐๐ = |๐| + maj ๐. ๐=1
Now appealing to Corollary 3.5.4 we have โ ๐ฅ|๐| = โ ๐ฅ|๐|+maj ๐ = ๐โฮ๐
๐โ๐(๐)
๐ฅmaj ๐ (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) โก
as desired.
Using our running example, the vector of values of the initial function on ๐ is given by ๐ = (21, 21, 21, 20, 20, 10, 0, 0). Since Des ๐ = {3, 6} our first step is to subtract one from the first 3 values to obtain ๐1 = (20, 20, 20, 20, 20, 10, 0, 0). Next we subtract one from the first 6 values so that ๐2 = (19, 19, 19, 19, 19, 9, 0, 0). Taking the nonzero components gives ๐ = (19, 19, 19, 19, 19, 9). We now have all the tools needed to find generating functions for partitions whose parts are distributed over a poset. Let ๐ be a partial order on the set [๐]. In order to distinguish the usual total order on integers from the partial order in ๐, we will use ๐ โค ๐ for the former and ๐ โด ๐ for the latter. So in the poset on the left in Figure 7.8 we have 3 โฒ 2, but 2 < 3 as integers. If ๐ is a poset on [๐], then a ๐-partition is a map
1
4
0
4
2
5
2
3
5
1
3
7
Figure 7.8. A poset ๐ on [4] on the left and a ๐-partition on the right
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
238
7. Counting with Symmetric Functions
๐ โถ ๐ โ โ such that PP1 ๐ โด ๐ implies ๐(๐) โฅ ๐(๐) and PP2 ๐ โด ๐ and ๐ > ๐ implies ๐(๐) > ๐(๐). So PP1 says that ๐ is weakly decreasing on ๐, while PP2 means that ๐ is strictly decreasing on โdescentsโ of ๐. A ๐-partition for the poset in Figure 7.8 is shown on the right with the values of ๐ circled. Note that by transitivity, it suffices to assume that PP1 and PP2 hold when ๐ is covered by ๐. Let Par ๐ = {๐ โถ ๐ โ โ โฃ ๐ is a ๐-partition}. For the poset in Figure 7.8 we have Par ๐ = {๐ โถ [4] โ โ โฃ ๐(1) โฅ ๐(2), ๐(3) > ๐(2), ๐(2) โฅ ๐(4)}. We will also need the JordanโHรถlder set of an (arbitrary) poset ๐ which is โ(๐) = {๐ โฃ ๐ is a linear extension of ๐}. Note that if ๐ is a poset on [๐], then โ(๐) โ ๐๐ . Continuing the Figure 7.8 example, โ(๐) = {1324, 3124}. The next result, while not hard to prove, is crucial, as its name suggests. Lemma 7.4.3 (Fundamental Lemma of ๐-Partitions). Let ๐ be a poset on [๐]. Then we have ๐ โ Par ๐ if and only if ๐ โ ๐(๐) for some ๐ โ โ(๐). Thus Par ๐ =
โจ
๐(๐).
๐โโ(๐)
Proof. We will just prove the forward implication as the reverse is similar. And the proof of the equation for Par ๐ is also omitted as it follows the same lines as for (7.18). So suppose ๐ โ Par ๐. We know from the first part of Lemma 7.4.1 that ๐ is compatible with a unique ๐ โ ๐๐ . So we just need to show that ๐ โ โ(๐); that is, if ๐ โฒ ๐, then ๐ should appear before ๐ in ๐. Assume, to the contrary, that we have (7.22)
๐ = ... ๐ ... ๐ ...
being the order of the two elements in ๐. Since ๐ โ Par ๐ and ๐ โฒ ๐ we must have ๐(๐) โฅ ๐(๐) by condition PP1. But C1 and the form of ๐ in (7.22) force ๐(๐) โฅ ๐(๐). Thus ๐(๐) = ๐(๐). This equality together with (7.22) and C2 imply ๐ < ๐. But now we have ๐ โฒ ๐ and ๐ > ๐ as well as ๐(๐) = ๐(๐) which contradicts P2. This is the desired contradiction. โก We now translate the previous result in terms of generating functions. Just as with compatible functions, use the notation Par๐ ๐ = {๐ โ Par ๐ โฃ max ๐ โค ๐}. Theorem 7.4.4. For any poset ๐ on [๐] we have (7.23)
โ ๐ฅ|๐| = ๐โPar ๐
โ๐โโ(๐) ๐ฅmaj ๐ (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ )
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.4. ๐-partitions
239
and โ | Par๐ ๐| ๐ฅ๐ =
(7.24)
โ๐โโ(๐) ๐ฅdes ๐
๐โฅ0
(1 โ ๐ฅ)๐+1
.
Proof. We prove (7.23), leaving (7.24) as an exercise. Using the previous lemma and then (7.20) yields โ ๐ฅ ๐โPar ๐
|๐|
=
โ
โ ๐ฅ
|๐|
๐โโ(๐) ๐โ๐(๐)
=
โ๐โโ(๐) ๐ฅmaj ๐ (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) โก
which is what we wished to demonstrate.
As a check, consider the poset ๐ which is the chain 1 โฒ 2 โฒ . . . โฒ ๐. Then the only inequalities satisfied by ๐ โ Par ๐ are ๐(1) โฅ ๐(2) โฅ โฏ โฅ ๐(๐) โฅ 0. So ๐ corresponds to a partition ๐ with at most ๐ parts. On the other hand โ(๐) consists of the single permutation ๐ = 12 . . . ๐ with maj ๐ = 0. So (7.23) becomes (7.25)
โ ๐ฅ|๐| = โ(๐)โค๐
1 (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ )
which agrees with Corollary 3.5.4. Of course, this cannot be considered a new proof of the corollary since it was used in the demonstration of (7.20). But at least it suggests we havenโt made any mistakes! Another case is the chain ๐ โฒ ๐ โ 1 โฒ . . . โฒ 1. Now the ๐ โ Par ๐ satisfy the inequalities ๐(๐) > ๐(๐ โ 1) > โฏ > ๐(1) โฅ 0. The set โ(๐) still contains a unique element, but it is ๐ = ๐ . . . 21 which has ๐ maj ๐ = 1 + 2 + โฏ + (๐ โ 1) = ( ). 2 Plugging into (7.23) we see that ๐ฅ( 2 ) . (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) ๐
(7.26)
โ ๐ฅ|๐| = ๐โPar ๐
The reader may find it instructive to write down the bijection which permits one to derive this equation from (7.25). This map is a special case of the one used in the proof of (7.20) but it is easier to see what is going on in this simple case. The time has come to fulfill our promise from the beginning of this section to derive the Hook Formula, (7.10), from the generating function for reverse plane partitions, (7.14). Let ๐ be the Young diagram of a partition of ๐. We turn ๐ into a poset ๐๐ by partially ordering the cells of ๐ componentwise: (๐, ๐) โด (๐โฒ , ๐โฒ ) whenever ๐ โค ๐โฒ and ๐ โค ๐โฒ . See Figure 7.9 for an example where ๐ = (4, 3, 1). So ๐๐ is formed from the Young diagram of ๐ by rotating 135โ counterclockwise and imposing a grid of covers. Note that #โ(๐๐ ) = ๐๐ because there is a simple bijection between SYT ๐ of shape ๐ and linear extensions of ๐๐ : each tableau ๐ corresponds to a linear extension of the cells ๐ 1 , . . . , ๐๐ where they are ordered so that ๐ ๐ is the cell of ๐ containing ๐ for 1 โค ๐ โค ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
240
7. Counting with Symmetric Functions
๐๐
๐
๐๐โ
Figure 7.9. A Young diagram and associated posets
Now consider the poset dual ๐๐โ and label its elements with the numbers in [๐] in any way which corresponds to a linear extension of ๐๐โ as described in the previous paragraph for ๐๐ . It is easy to see that the ๐๐โ -partitions are precisely the reverse plane partitions of shape ๐. (The use of the dual corresponds to these plane partitions being โreverseโ.) And clearly we still have #โ(๐๐โ ) = ๐๐ . Combining (7.14) and (7.23) yields. ๐(๐ฅ) 1 = โ rpp๐ (๐)๐ฅ๐ = โ๐,๐ (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) 1 โ ๐ฅ ๐โฅ0 (๐,๐)โ๐ โ
where ๐(๐ฅ) = โ๐โโ(๐ โ ) ๐ฅmaj ๐ . Thus ๐
๐! (1 โ ๐ฅ)(1 โ ๐ฅ2 ) โฏ (1 โ ๐ฅ๐ ) = โ๐,๐ ๐ฅโ1 โ โ โ(๐,๐)โ๐ 1 โ ๐ฅ (๐,๐)โ๐ ๐,๐
๐๐ = ๐(1) = lim which is the Hook Formula.
7.5. The RobinsonโSchenstedโKnuth correspondence This section will be devoted to proving the following important identity. Theorem 7.5.1. For any given ๐ โฅ 0 we have (7.27)
โ (๐๐ )2 = ๐! . ๐โข๐
From the point of view of representation theory this is just the special case of equation (A.9) in the appendix where ๐บ = ๐๐ and the dimensions are given by (A.7). However, we wish to give a bijective proof of (7.27). This map was discovered in two very different forms by Robinson [75] and Schensted [81]. It is the latter description which will be presented here. We will also see that this algorithm and the corresponding identity can be generalized from standard to semistandard Young tableaux. To prove (7.27), it suffices to construct a bijection (7.28)
RS
๐ โฆ (๐, ๐)
between permutations ๐ โ ๐๐ and pairs of SYT (๐, ๐) of the same shape ๐ โข ๐. The heart of this construction will be a method of inserting a positive integer into a tableau. A partial Young tableau (PYT) is a filling of a shape with distinct positive integers such that the rows and columns increase. A PYT is standard precisely when its entries are Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.5. The RobinsonโSchenstedโKnuth correspondence
241
๐= 1 3 6 9 2 8 10 4 7 1 3 6 9 โ๐ 2 8 10 4 7
1 3 ๐ 9 2 8 10 โ ๐ 4 7
1 3 5 9 2 ๐ 10 4 โ๐ 7
1 3 5 9 2 6 10 4 ๐ 7
= ๐5 (๐).
Figure 7.10. Inserting ๐ฅ = 5 into a partial tableau ๐
[๐] for some ๐. A partial tableau ๐ is shown at the top in Figure 7.10. Now given a PYT ๐ and a positive integer ๐ฅ โ ๐, we insert ๐ฅ into ๐ using the following algorithm: RS1 Set ๐
โ the first row of ๐. RS2 While ๐ฅ is less than some element of row ๐
, let ๐ฆ be the leftmost such element and replace ๐ฆ by ๐ฅ in ๐
. Repeat this step with ๐
โ the row below ๐
and ๐ฅ โ ๐ฆ. RS3 Now ๐ฅ is greater than every element of ๐
, so place ๐ฅ at the end of this row and terminate. In step RS2 we say that ๐ฅ bumps ๐ฆ. An example of inserting 5 into the PYT in Figure 7.10 is given in the second row of the figure. Elements being bumped are written in boldface and the notation ๐
โ ๐ฅ means that ๐ฅ is being inserted in row ๐
. If ๐ โฒ is the result of inserting ๐ฅ into ๐ by rows, then we write ๐๐ฅ (๐) = ๐ โฒ . The reader should check that this operation is well-defined in that ๐ โฒ is still a PYT. There is a second operation needed to describe the map (7.28) which will be used for the second component. An outer corner of a shape ๐ (or of a tableau of that shape) is a cell (๐, ๐) โ ๐ such that ๐ โช {(๐, ๐)} is the Young diagram of a partition. The outer corners of ๐ in Figure 7.11 are (1, 5), (2, 3), (3, 2), and (5, 1). Suppose we have a partial tableau ๐, ๐ฆ > max ๐, and (๐, ๐) which is an outer corner of ๐. The tableau ๐โฒ obtained by placing ๐ฆ in ๐ at (๐, ๐) has all the entries of ๐ together with ๐โฒ๐,๐ = ๐ฆ. The choice of an outer corner and the condition on ๐ฆ ensure that ๐โฒ is still a PYT. See Figure 7.11 for an example of a placement. We are now ready to describe (7.28). Consider ๐ as being given in two-line notation (1.7) 1 2 ... ๐ . ๐= ๐1 ๐2 . . . ๐๐ We will construct a sequence of pairs of tableaux (7.29)
(๐0 , ๐0 ) = (โ
, โ
), (๐1 , ๐1 ), (๐2 , ๐2 ), . . . , (๐๐ , ๐๐ ) = (๐, ๐)
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
242
7. Counting with Symmetric Functions
๐= 1 4
2
6
7
๐โฒ = 1 4
5
2
6
7
5
8
8 10
9
9
Figure 7.11. The result ๐โฒ of placing 10 at (3, 2) in ๐
by starting with the empty pair and then letting ๐๐ ๐๐
= ๐๐๐ (๐๐โ1 ), = place ๐ in ๐ ๐โ1 at the cell where ๐๐๐ terminates,
for ๐ = 1, 2, . . . , ๐. We then let (๐, ๐) = (๐๐ , ๐๐ ). Note that by construction we have sh ๐๐ = sh ๐ ๐ for all ๐. A complete example is worked out in Figure 7.12 where the elements of the lower line of ๐ as well as their counterparts in the ๐๐ are set in bold. If RS(๐) = (๐, ๐), we also write ๐(๐) = ๐ and call ๐ the ๐-tableau or insertion tableau of ๐. Similarly we use the notation ๐(๐) = ๐ for the ๐-tableau of ๐ which is also called the recording tableau. We now come to our main theorem about this procedure. Theorem 7.5.2. The map RS
๐ โฆ (๐, ๐) is a bijection between permutations ๐ โ ๐๐ and pairs (๐, ๐) of SYT of the same shape ๐ โข ๐. Proof. It suffices to construct the inverse. This will be done by reversing the algorithm step by step. So we will build the sequence (7.29) backwards, starting from (๐๐ , ๐๐ ) = (๐, ๐) and, in the process, recover ๐. Assume that we have reached (๐๐ , ๐ ๐ ) and let (๐, ๐) be the cell containing ๐ in ๐ ๐ . To obtain ๐ ๐โ1 we merely erase ๐ from ๐ ๐ . As for finding ๐๐โ1 and ๐๐ , we note that (๐, ๐) must have been the cell at which the insertion into ๐๐โ1 terminated. So we use the following deletion procedure to undo this insertion. SR1 Let ๐ฅ be the (๐, ๐) entry of ๐๐ and erase it from ๐๐ . Set ๐
โ the (๐ โ 1)st row of ๐๐ . SR2 While ๐
is not the zeroth row of ๐๐ , let ๐ฆ be the rightmost element of ๐
smaller than ๐ฅ and replace ๐ฆ by ๐ฅ in ๐๐ . Repeat this step with ๐
โ the row above ๐
and ๐ฅ โ ๐ฆ. SR3 Now ๐
is the zeroth row so let ๐๐ = ๐ฅ and terminate. It should be clear from the constructions that insertion and deletion are inverses of each other. So we are done. โก In order to generalize (7.27), we will consider two sets of variables ๐ฑ = {๐ฅ1 , ๐ฅ2 , . . . } and ๐ฒ = {๐ฆ1 , ๐ฆ2 , . . . }. The next result is called Cauchyโs Identity and it can be found in Littlewoodโs text [58]. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.5. The RobinsonโSchenstedโKnuth correspondence
๐=
1 2 3 ๐ ๐ ๐
4 ๐
5 ๐
243
6 ๐
7 . ๐
๐๐ค โถ โ
๐
๐ ๐
๐ ๐ ๐
๐ ๐ ๐ ๐
๐ ๐ ๐ ๐ ๐
๐ ๐ ๐ ๐ ๐ ๐
๐ ๐ ๐ ๐ ๐ ๐ ๐
=๐
๐ ๐ โถ โ
,
1
1 2
1 3 2
1 3 4 2
1 3 4 2 5
1 3 4 2 5 6
1 3 4 7 2 5 6
=๐
Figure 7.12. The RobinsonโSchensted map
Theorem 7.5.3. We have 1 1 โ ๐ฅ๐ ๐ฆ ๐ ๐,๐โฅ1
โ ๐ ๐ (๐ฑ)๐ ๐ (๐ฒ) = โ
(7.30)
๐
where the sum is over all partitions ๐ of any nonnegative integer. To give a bijective proof of this formula, we must interpret each side as a weightgenerating function. On the left, we clearly have the weight ogf for pairs (๐, ๐) of semistandard tableaux of the same shape ๐ where wt(๐, ๐) = ๐ฑ๐ ๐ฒ๐ . For the right-hand side, consider the set Mat of all infinite matrices ๐ with rows and columns indexed by โ, entries in โ, and only finitely many entries nonzero. A matrix ๐ โ Mat is shown in the upper-left corner of Figure 7.13 where all entries not shown are zero. Weight these matrices by wt ๐ = โ (๐ฅ๐ ๐ฆ๐ )๐๐,๐ . ๐,๐โฅ1
Our example matrix has weight wt ๐ = (๐ฅ1 ๐ฆ2 )2 (๐ฅ1 ๐ฆ3 )3 (๐ฅ2 ๐ฆ1 )(๐ฅ2 ๐ฆ2 )2 (๐ฅ3 ๐ฆ1 )(๐ฅ3 ๐ฆ3 ) = ๐ฅ15 ๐ฅ23 ๐ฅ32 ๐ฆ21 ๐ฆ42 ๐ฆ43 .
โก โข ๐=โข โข โข โฃ
0 2 3 0 1 2 0 0 1 0 1 0 0 0 0 0 โฎ โฎ โฎ โฎ
โฏ โฏ โฏ โฏ
โค โฅ โฅโฆ๐= 1 1 2 2 โฅ โฅ โฆ 1 RSK โฆ (๐, ๐) = ( 2 3
1 3
1 3
1 3
2 1
2 2
2 2
3 1
3 3
1 2 2 3 3 , 1 1 1 1 1 3 2 3 2 2 2 ) 3
Figure 7.13. The RobinsonโSchenstedโKnuth map
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
244
7. Counting with Symmetric Functions
So, by the Sum and Product Rules for weight ogfs 1 . 1 โ ๐ฅ๐ ๐ฆ ๐ ๐,๐โฅ1
โ wt ๐ = โ โ (๐ฅ๐ ๐ฆ๐ )๐ = โ ๐โMat
๐,๐โฅ1 ๐โฅ0
Thus we need a weight-preserving bijection RSK
(7.31)
๐ โฆ (๐, ๐)
between matrices ๐ โ Mat and pairs (๐, ๐) โ SSYT(๐) ร SSYT(๐) as ๐ varies over all partitions. Such a map was given by Knuth [49]. It will be convenient to reinterpret the elements of Mat as two-line arrays. Given ๐ โ Mat, we create an array ๐ such that ๐๐,๐ = the number of times a column
๐ occurs in ๐, ๐
and the columns are arranged in lexicographic order with the top row taking precedence. The two-line array ๐ associated with the matrix in Figure 7.13 is displayed at the top right. We can now define the map (7.31). Given ๐, construct its two-line array ๐. Now, starting with the empty tableau, insert the elements of the lower row of ๐ sequentially to form ๐ using exactly the same rules RS1โRS3 as before. Note that this algorithm never used the assumption that ๐ฅ โ ๐ and so it applies equally well to semistandard tableaux. As one does the insertions, one places the corresponding elements of the upper row of ๐ in ๐ so that the two tableaux always have the same shape. Figure 7.13 displays the final output of this algorithm on the bottom line. The reader should now be able to fill in the details of the proof of the following theorem. Theorem 7.5.4. The map RSK
๐ โฆ (๐, ๐) is a weight-preserving bijection between matrices ๐ โ Mat and pairs (๐, ๐) of SSYT such that sh ๐ = st ๐. โก We will use the notation RSK(๐) = RSK(๐) = (๐, ๐) where ๐ is the two-line array corresponding to ๐.
7.6. Longest increasing and decreasing subsequences One of Schenstedโs motivations [81] for introducing the algorithm which bears his name was to study the lengths of longest increasing and decreasing subsequences of a permutation. He proved that these quantities were given by the length of the first row and the length of the first column, respectively, of the associated tableaux. In this section, we will prove his result. Along the way we will see what effect reversing a sequence has on its insertion tableau. Consider a permutation ๐ = ๐1 ๐2 . . . ๐๐ โ ๐๐ . Then an increasing subsequence of ๐ of length ๐ is ๐๐1 < ๐๐2 < โฏ < ๐๐๐ where ๐1 < ๐2 < โฏ < ๐๐ . A decreasing subsequence is defined similarly with the inequalities among the ๐๐๐ reversed. We let lis ๐ = length of a longest increasing subsequence of ๐ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.6. Longest increasing and decreasing subsequences
245
and lds ๐ = length of a longest decreasing subsequence of ๐. If ๐ = 5236417 is the permutation in Figure 7.12, then ๐ has increasing subsequences 2347 and 2367 of length 4 and none longer, so lis(๐) = 4. Similarly, lds(๐) = 3 because of the subsequence 531, among others. The reader will notice from Figure 7.12 that the first row of the insertion tableau ๐ (or of the recording tableau ๐) has length 4 = lis(๐) and the length of the first column is 3 = lds ๐. This is always the case. RS
Theorem 7.6.1. If ๐ โฆ (๐, ๐) with sh ๐ = sh ๐ = ๐, then lis ๐ = ๐1 . Proof. Let ๐๐โ1 be the tableau formed after inserting ๐1 . . . ๐๐โ1 . We claim that if ๐๐ enters ๐๐โ1 in column ๐, then the length of a longest increasing subsequence of ๐ ending with ๐๐ is ๐. Note that the claim proves the theorem since after inserting all of ๐ we will have an increasing sequence of length ๐1 ending at the element ๐1,๐1 . And there is no longer subsequence since there is no element of ๐ in cell (1, ๐1 + 1). To prove the claim, we induct on ๐, where the case ๐ = 1 is trivial. For the induction step, suppose ๐ฅ is the element in cell (1, ๐ โ 1) of ๐๐โ1 . Then there is an increasing subsequence ๐ of ๐1 . . . ๐๐โ1 of length ๐ โ 1 ending in ๐ฅ. Since ๐๐ entered ๐๐โ1 in a column to the right of ๐ฅ we must have ๐ฅ < ๐๐โ1 by RS2 and RS3. It follows that the concatenation ๐๐๐ is an increasing subsequence of ๐ of length ๐ ending in ๐๐ . To show that ๐ is the length of a longest such subsequence suppose, towards a contradiction, that ๐๐๐ is increasing of length greater than ๐. Let ๐ฆ be the last element of ๐. Then, by induction, when ๐ฆ was inserted it entered in a column ๐โฒ โฅ ๐. Since ๐ฆ < ๐๐ and rows increase, the element in cell (1, ๐) just after ๐ฆโs insertion must be less than ๐๐ . And since elements only bump elements larger than themselves, the element in cell (1, ๐) in ๐๐โ1 must still be smaller than ๐๐ . But this contradicts the fact that ๐๐ enters in column ๐ since it must bump an element larger than itself. โก Note that the previous proof did not show that the first row of ๐ is actually an increasing subsequence of ๐. In fact, this assertion is false as can be seen in Figure 7.12. To prove our suspicion about lds ๐, we need to do insertion by columns. Define column insertion of ๐ฅ โ ๐, where ๐ is a partial tableau, using RS1โRS3 but with โrowโ replaced by โcolumnโ everywhere and โleftmostโ by โuppermostโ. Denote the result of column insertion by ๐๐ฅ (๐). Amazingly, the row and column operators commute. Lemma 7.6.2. Let ๐ be a partial tableau and ๐ฅ, ๐ฆ distinct positive integers with ๐ฅ, ๐ฆ โ ๐. Then ๐๐ฆ ๐๐ฅ (๐) = ๐๐ฅ ๐๐ฆ (๐). Proof. Let ๐ = max({๐ฅ, ๐ฆ} โ ๐). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
246
7. Counting with Symmetric Functions
๐=
๐ฅ
๐ฅ
๐
๐ Figure 7.14. The case ๐ฆ = ๐ in the proof of Lemma 7.6.2
Note that by RS2 and RS3, ๐ cannot bump any element during the insertion process. There are two cases depending on which set ๐ comes from. Case 1: ๐ฆ = ๐. (The case ๐ฅ = ๐ is similar.) Represent ๐ schematically as on the left in Figure 7.14. Since ๐ is the maximum element, ๐๐ will insert ๐ at the end of the first column of whatever tableau to which the operator is applied. Suppose ๐ฅ is the last element to be bumped during the insertion ๐๐ฅ (๐), and suppose ๐ฅ comes to rest in cell ๐ข. If ๐ข is at the end of the first column, then it is easy to check that ๐๐ ๐๐ฅ (๐) and ๐๐ฅ ๐๐ (๐) are both the middle diagram in Figure 7.14. Similarly, if ๐ข is not at the end of the first column, then both insertions result in the diagram on the right in Figure 7.14. Case 2: ๐ โ ๐. We induct on #๐. The case when #๐ = 1 is easy to check. Let ๐ = ๐ โ {๐}, that is, ๐ with ๐ erased from its cell. Using the fact that ๐ never bumps another element as well as induction gives ๐๐ฆ ๐๐ฅ (๐) โ {๐} = ๐๐ฆ ๐๐ฅ (๐) = ๐๐ฅ ๐๐ฆ (๐) = ๐๐ฅ ๐๐ฆ (๐) โ {๐}. So to finish the proof, we need to show that ๐ is in the same position in both ๐๐ฆ ๐๐ฅ (๐) and ๐๐ฅ ๐๐ฆ (๐). Let ๐ฅ be the last element displaced during ๐๐ฅ (๐) and let ๐ข be the cell it occupies at the end of the insertion. Similarly define ๐ฆ and ๐ฃ for ๐๐ฅ (๐). We now have two subcases depending on the relative locations of ๐ข and ๐ฃ. Subcase 2a: ๐ข = ๐ฃ. The first two schematic diagrams in Figure 7.15 illustrate ๐๐ฅ (๐) and ๐๐ฆ (๐) in this case. If (1, ๐1 ), (2, ๐2 ), . . . , (๐, ๐ ๐ ) are the cells whose elements change during a row insertion, then it is easy to prove that ๐1 โฅ ๐2 โฅ โฏ โฅ ๐ ๐ . So during ๐๐ฅ (๐) the only columns which are disturbed are those weakly right of the column of ๐ข. Similarly, the insertion ๐๐ฆ (๐) only changes rows which are weakly below the row of ๐ข. It follows that the insertion paths for ๐๐ฅ and ๐๐ฆ in either order do not intersect until they come to ๐ข. If ๐ฅ < ๐ฆ (the case ๐ฆ < ๐ฅ is similar), then ๐๐ฆ ๐๐ฅ (๐) and ๐๐ฅ ๐๐ฆ (๐) will both be as in the last diagram in Figure 7.15. Note also that ๐ฅ and ๐ฆ must be in the same column since this is clearly true for ๐๐ฆ ๐๐ฅ (๐). Now if ๐ was not in cell ๐ข in ๐, then it will not be bumped Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.6. Longest increasing and decreasing subsequences
๐๐ฅ (๐) =
๐๐ฆ (๐) =
๐ฅ
247
๐ฆ
๐ฅ ๐ฆ
Figure 7.15. The subcase ๐ข = ๐ฃ in the proof of Lemma 7.6.2
by either insertion and so will remain in its cell. If ๐ is in cell ๐ข, then it is easy to check that it will be bumped into the column just to the right of ๐ข in both orders of insertion. This completes this subcase. Subcase 2b: ๐ข โ ๐ฃ. This subcase is taken care of using arguments similar to those in the rest of the proof, so it is left as an exercise. โก If ๐ = ๐1 ๐2 . . . ๐๐ โ ๐๐ , then its reversal (as defined in Exercise 37(a) of Chapter 1) is ๐๐ = ๐๐ ๐๐โ1 . . . ๐1 . The insertion tableaux of ๐ and ๐๐ are intimately related. Theorem 7.6.3. If ๐(๐) = ๐, then ๐(๐๐ ) = ๐ ๐ก where ๐ก denotes transpose. Proof. Clearly, inserting a single element into an empty tableau gives the same result whether it be by rows or columns. Using this and the previous lemma repeatedly ๐(๐๐ ) = ๐๐1 โฏ ๐๐๐โ1 ๐๐๐ (โ
) = ๐๐1 โฏ ๐๐๐โ1 ๐๐๐ (โ
) = ๐๐๐ ๐๐1 โฏ ๐๐๐โ1 (โ
) โฎ = ๐๐๐ ๐๐๐โ1 โฏ ๐๐1 (โ
) = ๐๐ก โก
which is the conclusion we seek. We can now characterize lds(๐) in terms of the shape of its output tableaux. RS
Corollary 7.6.4. If ๐ โฆ (๐, ๐) with sh ๐ = sh ๐ = ๐, then lds ๐ = ๐๐ก1 , where ๐๐ก is the transpose of ๐. Proof. Reversing a permutation interchanges increasing and decreasing subsequences so that lds ๐ = lis ๐๐ . By Theorem 7.6.1, lis ๐๐ is the length of the first row of ๐(๐๐ ). And ๐(๐๐ ) = ๐ ๐ก by Theorem 7.6.3. So lds ๐ is the length of the first column of ๐, as desired. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
248
7. Counting with Symmetric Functions
We note that Greene [34] has proved the following extension of Schenstedโs theorem. Theorem 7.6.5. Let lis๐ (๐) be the longest length of a subsequence of ๐ which is a union RS
of ๐ disjoint increasing subsequences. If ๐ โฆ (๐, ๐) with sh ๐ = sh ๐ = ๐, then lis๐ (๐) = ๐1 + ๐2 + โฏ + ๐๐ and similarly for decreasing subsequences. Interestingly, there does not seem to be an easy interpretation of the individual ๐๐ in the shape of the output tableaux. For example, if we consider ๐ = 247951368, then ๐(๐) = 1 2
3
5
4
9
6
8 .
7 So ๐1 + ๐2 = 5 + 3 = 8 and 2479 โ 1368 is a union of two increasing subsequences of ๐ and is of length 8. But one can check that there is no length 8 subsequence which is a disjoint union of two increasing subsequences of lengths 5 and 3.
7.7. Differential posets In this section we will give a second proof of (7.27) based on properties of Youngโs lattice, ๐ . This technique can be generalized to a wider class of posets which were introduced and further studied by Stanley [88, 90]. These posets are called differential because of an identity which they satisfy. To connect the summation side of (7.27) with ๐ , we will use a simple bijection between standard Young tableaux of shape ๐ and saturated โ
โ๐ chains in ๐ . Specifically, a ๐ โ SYT(๐) where ๐ โข ๐ will be associated with the chain ๐ถ โถ โ
= ๐0 โ ๐1 โ โฏ โ ๐๐ = ๐ where ๐๐ is the shape of the subtableau of ๐ containing the elements [๐] for 0 โค ๐ โค ๐. An example will be found in Figure 7.16. To go the other way, given a chain ๐ถ, we define ๐ to be the tableau which has ๐ in the unique cell of the skew partition ๐๐ /๐๐โ1 where skew partitions were defined in (3.7). It is easy to see that these two maps are inverses of each other. From this discussion, it should be clear that (๐๐ )2 is the number of pairs of saturated โ
โ๐ chains in ๐ . In order to work with this observation, we will use a common technique for turning sets into vector spaces. If ๐ is a set, then consider the set of finite formal linear combinations โ๐ = { โ ๐๐ฅ ๐ฅ โฃ ๐๐ฅ โ โ for all ๐ฅ and only finitely many ๐๐ฅ โ 0} .
(7.32)
๐ฅโ๐
๐=
1
3
2
4
๐ถโถ
โ
โ
โ
โ
โ
โ
5 Figure 7.16. The bijection between SYT and saturated chains in Youngโs lattice
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.7. Differential posets
249
+ ๐ท(
)
=
๐(
)
=
+
+
Figure 7.17. The down and up operators in Youngโs lattice
Now โ๐ is a vector space with vector addition and scalar multiplication given by โ ๐๐ฅ ๐ฅ + โ ๐๐ฅ ๐ฅ = โ(๐๐ฅ + ๐๐ฅ )๐ฅ, ๐ฅ
๐ฅ
๐ฅ
๐ โ ๐๐ฅ ๐ฅ = โ ๐๐๐ฅ ๐ฅ. ๐ฅ
๐ฅ
Note that ๐ is a basis for โ๐. We will define two linear operators on โ๐ . The down operator ๐ท โถ โ๐ โ โ๐ is defined by ๐ท(๐) = โ ๐โ ๐โ โ๐
and linear extension. An example is given in Figure 7.17. It will be useful to think of ๐ท(๐) as the sum of all partitions which can be reached by taking a walk of length one downward from ๐ in ๐ viewed as a graph. Note that ๐ท(โ
) is the empty sum so that ๐ท(โ
) = 0, the zero vector. Similarly, the up operator ๐ โถ โ๐ โ โ๐ is ๐(๐) = โ ๐+ . ๐+ โ๐
Again, Figure 7.17 contains an example and a similar walk interpretation holds. We claim that (7.33)
๐ท๐ ๐ ๐ (โ
) = ( โ (๐๐ )2 )โ
. ๐โข๐
Indeed, the coefficient of ๐ โข ๐ in ๐ ๐ (โ
) is the number of walks from โ
to ๐ in ๐ which always go up. But such a walk is just a saturated โ
โ๐ chain so that, by the previous bijection, ๐ ๐ (โ
) = โ ๐๐ ๐. ๐โข๐
By the same token ๐ท๐ ๐ = ๐๐ โ
since walks which always go down also follow saturated chains. So applying ๐ท๐ to the expression for ๐ ๐ (โ
) and using linearity gives the desired equality. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
250
7. Counting with Symmetric Functions
To make use of (7.33), we need a closer investigation of the structure of ๐ . Say that ๐ โ ๐ covers ๐ elements if #{๐โ โฃ ๐โ โ ๐} = ๐. Similarly define the phrase โis covered by ๐ elementsโ. Also say that ๐, ๐ โ ๐ cover ๐ elements if #{๐ โฃ ๐ โ ๐, ๐} = ๐ and ditto for being covered. Proposition 7.7.1. The poset ๐ has the following two properties for all distinct ๐, ๐ โ ๐ . (a) ๐ covers ๐ elements if and only if it is covered by ๐ + 1 elements. (b) ๐, ๐ cover ๐ elements if and only if they are covered by ๐ elements. In this case ๐ โค 1. Proof. (a) It suffices to prove the forward direction since then the number of elements which cover ๐ is uniquely determined by the number which it covers. The elements which ๐ covers are precisely those obtained by removing an inner corner of ๐. And those which cover ๐ are the partitions obtained by adding an outer corner to ๐. But inner corners and outer corners alternate along the southeast boundary of ๐, beginning with an outer corner at the end of the first row and ending with an outer corner at the end of the first column. The result follows. (b) Again, we only need to prove the forward implication. There are two cases. If there is an element ๐ โ ๐, ๐, then, since ๐ is ranked, it must be rk ๐ = rk ๐ = ๐ for some ๐ and rk ๐ = ๐ โ 1. Since ๐ is a lattice, it follows that ๐ = ๐ โง ๐ = ๐ โฉ ๐ is unique and so ๐ = 1. Also |๐ โฉ ๐| = |๐| = ๐ โ 1 so that |๐ โจ ๐| = |๐ โช ๐| = ๐ + 1. It follows that ๐, ๐ are covered by a unique element, namely ๐ โจ ๐. If there is no element covered by both ๐, ๐, then similar considerations show that no element covers ๐, ๐. We leave this verification to the reader. โก We can translate this result in terms of the down and up operators. Proposition 7.7.2. The operators ๐ท, ๐ on ๐ satisfy (7.34)
๐ท๐ โ ๐๐ท = ๐ผ
where ๐ผ is the identity map. Proof. By linearity, it suffices to show that this equation is true when applied to a basis element ๐ โ โ๐ . First consider ๐ท๐(๐). The coefficient of ๐ in this expression is the number of walks ๐ to ๐ which first go up an edge of ๐ and then come down an edge (possibly the same one). These are precisely the walks of length 2 going through some element covering both ๐ and ๐. From the previous proposition, we get ๐ท๐(๐) = (๐ + 1)๐ + โ ๐ where ๐ + 1 elements cover ๐ and the sum is over all ๐ โ ๐ such that ๐, ๐ are covered by a common element. In a similar way ๐๐ท(๐) = ๐๐ + โ ๐ where the sum is over the same set of ๐. Subtracting the two equalities gives (7.34). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
7.7. Differential posets
251
Note that (7.34) is reminiscent of an identity from calculus. Consider a differentiable function ๐(๐ก). Let ๐ท stand for differentiation and let ๐ be multiplication by ๐ก. Then ๐ท๐(๐(๐ก)) = (๐ก๐(๐ก))โฒ = ๐(๐ก) + ๐ก๐โฒ (๐ก) = ๐ผ(๐(๐ก)) + ๐๐ท(๐(๐ก)) which is just (7.34) with the negative term moved to the other side of the equation. We will need an extension of (7.34) where ๐ is replaced by an arbitrary operator which is a polynomial in ๐. Corollary 7.7.3. For any polynomial ๐(๐ก) โ โ[๐ก] we have ๐ท๐(๐) = ๐โฒ (๐) + ๐(๐)๐ท where ๐โฒ (๐ก) is the derivative of ๐(๐ก). Proof. By linearity it suffices to prove this result for the powers ๐ ๐ for ๐ โฅ 0. The base case ๐ = 0 is easy to check. Assuming the result is true for ๐ and then applying (7.34) we obtain ๐ท๐ ๐+1 = (๐ท๐ ๐ )๐ = (๐๐ ๐โ1 + ๐ ๐ ๐ท)๐ = ๐๐ ๐ + ๐ ๐ (๐ผ + ๐๐ท) = (๐ + 1)๐ ๐ + ๐ ๐+1 ๐ท โก
as desired. We are now ready to reprove (7.27) which we restate here for ease of reference: โ (๐๐ )2 = ๐! .
(7.35)
๐โข๐
Proof. Because of (7.33), it suffices to show that ๐ท๐ ๐ ๐ (โ
) = ๐! โ
. We induct on ๐, where the case ๐ = 0 is trivial since ๐ท0 ๐ 0 = ๐ผ. Applying Corollary 7.7.3, the fact that ๐ทโ
= 0, and induction gives ๐ท๐ ๐ ๐ (โ
) = ๐ท๐โ1 (๐ท๐ ๐ )(โ
) = ๐ท๐โ1 (๐๐ ๐โ1 + ๐ ๐ ๐ท)(โ
) = ๐๐ท๐โ1 ๐ ๐โ1 (โ
) + 0(โ
) = ๐(๐ โ 1)! โ
which is what we wished to show.
โก
Stanley generalized these ideas using the following definition. Call a poset ๐ differential if it satisfies the following three properties where ๐ฅ, ๐ฆ are distinct elements of ๐. DP1 ๐ is ranked. DP2 If ๐ฅ covers ๐ elements, then it is covered by ๐ + 1 elements. DP3 If ๐ฅ, ๐ฆ cover ๐ elements, then they are covered by ๐ elements. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
252
7. Counting with Symmetric Functions
From what we have proved, ๐ is a differential poset. Another example is given in Exercise 29. In fact, Stanley defined a more general type of poset called ๐-differential which will be studied in Exercise 30. As with Youngโs lattice, we can show that the parameter ๐ must satisfy ๐ โค 1. Lemma 7.7.4. If poset ๐ satisfies DP1 and DP3, then ๐ โค 1. Proof. As noted in the proof of Proposition 7.7.1, DP3 implies that its converse is also true. Suppose the lemma is false and pick a pair ๐ฅ, ๐ฆ with ๐ โฅ 2. Since ๐ is ranked by DP1, we must have rk ๐ฅ = rk ๐ฆ. Pick the counterexample pair ๐ฅ, ๐ฆ to be of minimum rank and let ๐ฅโฒ , ๐ฆโฒ be two of the elements covered by ๐ฅ, ๐ฆ. But since ๐ฅโฒ , ๐ฆโฒ are covered by at least two elements, they must cover at least two elements. This contradicts the fact that we took a minimum-rank pair. โก We want to define up and down operators in a differential poset. But to make sure they are well-defined, the sums need to be finite. Lemma 7.7.5. If ๐ satisfies DP1 and DP2, then its ๐th rank Rk๐ ๐ is finite for all ๐ โฅ 0. Proof. We induct on ๐. Since ๐ is ranked by DP1, it has a 0ฬ and so the result holds for ๐ = 0. Assume the lemma through rank ๐. Now any ๐ฅ โ Rk๐ ๐ covers at most # Rk๐โ1 ๐ elements. So, by DP2, # Rk๐+1 ๐ โค (# Rk๐ ๐)(1 + # Rk๐โ1 ๐) โก
which forces Rk๐+1 ๐ to be finite. Thus we can define two operators on โ๐ by ๐ท(๐ฅ) = โ ๐ฅโ ๐ฅโ โ๐ฅ
and ๐(๐ฅ) = โ ๐ฅ+ . ๐ฅ+ โ๐ฅ
The proof of the next result is similar enough to that of Proposition 7.7.2 that it is left as an exercise. Proposition 7.7.6. Let ๐ be a ranked poset with Rk๐ ๐ finite for all ๐ โฅ 0. Then ๐ is differential โบ ๐ท๐ โ ๐๐ท = ๐ผ.
โก
Also, the reader should be able to generalize the operator proof of (7.27) to the setting of differential posets and show the following. Theorem 7.7.7. In any differential poset ๐ we have โ (๐๐ฅ )2 = ๐! ๐ฅโRk๐ ๐
ฬ chains. where ๐๐ฅ is the number of saturated 0โ๐ฅ Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
โก
7.8. The chromatic symmetric function
253
The reader might wonder if there is a way to give a bijective proof of this theorem just as the RobinsonโSchensted algorithm provides a bijection for (7.27). This has been done by Fomin as part of his theory of duality of graded graphs [27, 28].
7.8. The chromatic symmetric function Stanley [91] defined a symmetric function associated with graph colorings which generalizes the chromatic polynomial. In this section we will prove some of his results about this function, including expressions for its expansion in the monomial and power sum bases for Sym. Let ๐บ be a graph with vertex set ๐ = {๐ฃ 1 , . . . , ๐ฃ ๐ }. Consider a coloring ๐ โถ ๐ โ โ of ๐บ using the positive integers as color set. Then ๐ has monomial ๐ฑ๐ = ๐ฅ๐(๐ฃ1 ) ๐ฅ๐(๐ฃ2 ) โฏ ๐ฅ๐(๐ฃ๐ ) .
(7.36)
For example, if ๐บ is the graph on the left in Figure 7.18 and ๐ is the coloring on the right, then ๐ฑ๐ = ๐ฅ๐(แต) ๐ฅ๐(๐ฃ) ๐ฅ๐(๐ค) ๐ฅ๐(๐ง) = ๐ฅ1 ๐ฅ22 ๐ฅ4 . Now define the chromatic symmetric function of ๐บ to be ๐(๐บ) = ๐(๐บ; ๐ฑ) =
โ ๐ฑ๐ ๐ โถ ๐ โโ
where the sum is over all proper colorings ๐ โถ ๐ โ โ. To illustrate, let us return to the graph of Figure 7.18. Because ๐บ contains a triangle, we must use three or four colors for a proper coloring. If we use four different colors, then this will give rise to a monomial ๐ฅ๐ ๐ฅ๐ ๐ฅ๐ ๐ฅ๐ for some distinct ๐, ๐, ๐, ๐. And any of the 4! = 24 ways of assigning these colors to the four vertices is proper. Since this count is independent of which four colors we use, the contribution of such colorings to ๐(๐บ) is 24๐14 . If we use three colors, then one of them must be used twice and so correspond to a monomial ๐ฅ๐2 ๐ฅ๐ ๐ฅ๐ for distinct ๐, ๐, ๐. One copy of color ๐ must go on vertex ๐ค and the other can be on ๐ข or ๐ฅ, giving two choices. The other two colors can be distributed among the remaining two vertices in two ways. So these colorings give a term 4๐212 . In total ๐(๐บ) = 24๐14 + 4๐212 which the reader will note is a symmetric function. We will now prove that this is always the case, as well as showing a connection with the chromatic polynomial of ๐บ. Proposition 7.8.1. Let ๐บ be a graph with vertex set ๐. (a) ๐(๐บ) โ Sym๐ where ๐ = #๐. (b) If we set ๐ฅ1 = โฏ = ๐ฅ๐ก = 1 and ๐ฅ๐ = 0 for ๐ > ๐ก, written ๐ฑ = 1๐ก , then ๐(๐บ; 1๐ก ) = ๐(๐บ; ๐ก). ๐ข
๐ฃ
2
4
1
2
๐=
๐บ= ๐ง
๐ค
Figure 7.18. A graph and a coloring using โ
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
254
7. Counting with Symmetric Functions
Proof. (a) It is clear that ๐ฑ๐ has ๐ factors for any coloring ๐ so that ๐(๐บ) is homogeneous of degree ๐. To show that it is symmetric, note that any permutation of the colors of a proper coloring is proper. This means that permuting the subscripts in ๐(๐บ) leaves it invariant; that is, ๐(๐บ) is symmetric. (b) The given substitution results in ๐ฑ๐ = 1 if ๐ only uses colors from [๐ก] and ๐ฑ๐ = 0 otherwise. So ๐(๐บ; 1๐ก ) is just the number of proper colorings ๐ โถ ๐ โ [๐ก]. But this was the definition of ๐(๐บ; ๐ก). โก Since ๐(๐บ) is symmetric, we can expand it in terms of various bases for the symmetric functions and see if the coefficients have any nice combinatorial interpretation. We start with the monomial basis. To describe the coefficients, we will need some definitions. If ๐บ = (๐, ๐ธ) is a graph, then ๐ โ ๐ is independent or stable if there is no edge of ๐บ between any pair of vertices of ๐. For example, if ๐บ = ๐1 as in Figure 1.9, then ๐ = {2, 5, 6} is stable but ๐ = {2, 3, 6} is not because of the edge 36. The reason we care about stable sets is that if ๐ is a proper coloring of ๐บ, then the set of all vertices with a given color ๐, in other words the vertices in ๐โ1 (๐), form a stable set. Similarly, call a partition ๐ = ๐ต1 / . . . /๐ต๐ of ๐ independent or stable if each block is. Returning to Figure 1.9, the partition 13/256/4 is stable in ๐1 . The type of a set partition ๐ = ๐ต1 / . . . /๐ต๐ is the integer partition ๐(๐) = (๐1 , . . . , ๐๐ ) obtained by arranging #๐ต1 , . . . , #๐ต๐ in weakly decreasing order. To illustrate, ๐(1456/27/38) = (4, 2, 2). For a graph ๐บ, let ๐๐ (๐บ) = number of independent partitions of ๐ of type ๐. For the graph in Figure 7.18 we have ๐14 (๐บ) = 1, ๐212 (๐บ) = 2 and all other ๐๐ (๐บ) = 0. Any proper coloring ๐ of ๐บ induces a stable partition of ๐ whose blocks are the nonempty ๐โ1 (๐) for the colors ๐ in the color set. Finally, if ๐ = (1๐1 , 2๐1 , . . . , ๐๐๐ ) is an integer partition in multiplicity notation, then let ๐! = ๐1 ! ๐2 ! โฏ ๐๐ ! . Theorem 7.8.2. If graph ๐บ has #๐ = ๐, then ๐(๐บ) = โ ๐๐ (๐บ)๐! ๐๐ . ๐โข๐ ๐
๐
Proof. If ๐ = (๐1 , . . . , ๐๐ ), then the coefficient of ๐ฅ1 1 โฏ ๐ฅ๐๐ is the coefficient of ๐๐ since ๐(๐บ) is symmetric. And the coefficient of this monomial is the number of proper colorings ๐ โถ ๐ โ [๐] where ๐ gets used ๐๐ times for all ๐. By the discussion preceding this theorem, these colorings can be obtained by taking an independent partition ๐ โข ๐ and then deciding which colors get assigned to which blocks of ๐. The number of choices for ๐ is ๐๐ (๐บ). Now any of the ๐๐ colors which are used ๐ times can be used on any of the ๐๐ blocks of ๐ of size ๐. The number of such assignments is ๐๐ ! and this is true for all ๐. This gives the factor of ๐! . โก The expansion of ๐(๐บ) in the power sum basis will be found by Mรถbius inversion. Let ๐บ = (๐, ๐ธ) be a graph. Then any spanning subgraph ๐ป can be identified with its set of edges ๐ธ(๐ป) since we have ๐(๐ป) = ๐(๐บ). To illustrate, for the graph ๐บ in Figure 3.5 we would identify ๐น1 with the edge set {12, 24} and ๐น2 with the edge set {14, 24}. Given Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.8. The chromatic symmetric function
255
๐น โ ๐ธ, we get a partition ๐(๐น) of the vertex set where a block of ๐ is the set of vertices in a component of the corresponding spanning subgraph. Returning to our example, ๐น1 and ๐น2 both have partition ๐ = 124/3. Let ๐(๐น) = type of the partition ๐(๐น). In our running example ๐(๐น1 ) = ๐(๐น2 ) = (3, 1). Theorem 7.8.3. If ๐บ = (๐, ๐ธ) is a graph, then ๐(๐บ) = โ (โ1)#๐น ๐ ๐(๐น) ๐นโ๐ธ
where the sum is over all subsets ๐น of the edge set of ๐บ and #๐น is the number of edges in ๐น. Proof. Consider the Boolean algebra ๐ต๐ธ of all subsets of ๐ธ ordered by containment. Given ๐น โ ๐ธ, we define the power series ๐ผ(๐น) = โ ๐ฑ๐ ๐
where the sum is over all colorings ๐ โถ ๐ โ โ such that ๐(๐ข) = ๐(๐ฃ) for all ๐ข๐ฃ โ ๐น. These are the colorings which are monochromatic on each component of ๐นโs spanning subgraph. So if ๐(๐น) = ๐ต1 / . . . /๐ต๐ , then each ๐ต๐ can get any of the colors in โ. It follows that ๐
(7.37)
#๐ต๐
๐ผ(๐น) = โ(๐ฅ1
#๐ต๐
+ ๐ฅ2
+ โฏ) = ๐ ๐(๐น) .
๐=1
Also define ๐ฝ(๐น) = โ ๐ฑ๐ ๐
where the sum is over all colorings ๐ โถ ๐ โ โ such that ๐(๐ข) = ๐(๐ฃ) for all ๐ข๐ฃ โ ๐น and ๐(๐ข) โ ๐(๐ฃ) for ๐ข๐ฃ โ ๐ธ โ ๐น. So these colorings are constant on the components of ๐น but also cannot have any other edge of ๐ธ monochromatically colored. Given any spanning subgraph ๐น โฒ and a coloring ๐ appearing in ๐ผ(๐น โฒ ), one can define a unique spanning subgraph ๐น by letting ๐ข๐ฃ โ ๐น if and only if ๐(๐ข) = ๐(๐ฃ). By the definition of ๐ผ it is clear that ๐น โ ๐น โฒ . Also, the definition of ๐น implies that ๐ is a coloring in the sum for ๐ฝ(๐น). It follows that ๐ผ(๐น โฒ ) = โ ๐ฝ(๐น) ๐นโ๐น โฒ
for all ๐น โฒ โ ๐ธ. Applying Mรถbius inversion (Theorem 5.5.5) as well as (5.6) and (7.37) gives ๐ฝ(โ
) = โ ๐(๐น)๐ผ(๐น) = โ (โ1)#๐น ๐ ๐(๐น) . ๐นโ๐ต๐ธ
๐นโ๐ธ
But ๐ฝ(โ
) is the generating function for all colorings ๐ โถ ๐ โ โ such that ๐(๐ข) โ ๐(๐ฃ) for ๐ข๐ฃ โ ๐ธ, and these are exactly the proper colorings. Thus ๐ฝ(โ
) = ๐(๐บ) and we are done. โก We end this section with an open question about ๐(๐บ). To appreciate it, we first prove a result about the chromatic polynomial. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
256
7. Counting with Symmetric Functions
Proposition 7.8.4. Let ๐ be a graph with #๐ = ๐. We have that ๐ is a tree if and only if ๐(๐; ๐ก) = ๐ก(๐ก โ 1)๐โ1 . Proof. We will prove the forward direction and leave the reverse implication as an exercise. If ๐ฃ โ ๐, then we color ๐ by first coloring ๐ฃ, then all the neighbors of ๐ฃ, then all the uncolored vertices which are neighbors of neighbors of ๐ฃ, etc. The number of ways to color ๐ฃ is ๐ก. Because ๐ is connected and acyclic, when coloring each vertex ๐ค โ ๐ โ {๐ฃ} we will have ๐ค adjacent to exactly one already colored vertex. So the number of colors available for ๐ค is ๐ก โ 1. The result follows. โก This proposition is sometimes summarized by saying that the chromatic polynomial does not distinguish trees since all trees on ๐ vertices have the same polynomial. Stanley asked if the opposite was true for his chromatic symmetric function. Question 7.8.5. If ๐1 and ๐2 are nonisomorphic trees, is it true that ๐(๐1 ) โ ๐(๐2 )? It has been checked for trees with up to 23 vertices that the answer to this question is โyesโ and there are other partial results in the literature.
7.9. Cyclic sieving redux Cyclic sieving phenomena are often associated to results in representation theory. In this section we will give a second proof of Theorem 6.6.2 using this approach. To do so, we will assume the reader is familiar with the material in the appendix in this book. We start by presenting a general paradigm for proving a CSP by using group actions. Recall that we start with a set ๐, a cyclic group ๐บ acting on ๐, and a polynomial ๐(๐) โ โ[๐]. Also, for the rest of this section we let ๐ = ๐2๐๐/๐ . The triple (๐, ๐บ, ๐(๐)) was said to exhibit the cyclic sieving phenomenon if, for all ๐ โ ๐บ, (7.38)
#๐ ๐ = ๐(๐พ)
where ๐พ is a root of unity satisfying ๐(๐พ) = ๐(๐). To interpret the left side of (7.38), consider the permutation representation โ๐ of ๐บ. Since ๐ โ ๐บ takes each basis element in ๐ to another basis element, the matrix [๐]๐ consists of zeros and ones. And there is a one on the diagonal precisely when ๐๐ฅ = ๐ฅ for ๐ฅ โ ๐. So this representation has character (7.39)
๐(๐) = tr[๐]๐ = #๐ ๐ .
As for the right-hand side of (7.38), let โ be a generator of ๐บ where #๐บ = ๐ and let ๐ = ๐๐ . For ๐ โฅ 0, let ๐ (๐) be the irreducible ๐บ-module such that the matrix of โ is [๐๐ ] and let its character be ๐(๐) . Suppose ๐ = โ๐โฅ0 ๐๐ ๐๐ where ๐๐ โ โ for all ๐. Since the coefficients are nonnegative integers, we can define a corresponding ๐บ-module ๐๐ =
โจ
๐๐ ๐ (๐)
๐โฅ0
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
7.9. Cyclic sieving redux
257
with character ๐๐ . Let ๐ = โ๐ and ๐พ = ๐๐ . Now using (A.1) and the fact that the ๐ (๐) are 1-dimensional, ๐๐ (๐) = โ ๐๐ ๐(๐) (โ๐ ) = โ ๐๐ ๐๐๐ = ๐(๐๐ ) = ๐(๐พ) ๐โฅ0
๐โฅ0
which is the right side of (7.38). Now appealing to Theorem A.1.4, we have proved the following result or Reiner, Stanton, and White [72]. Theorem 7.9.1. The triple (๐, ๐บ, ๐(๐)) exhibits the cyclic sieving phenomenon if and only if โ๐ โ
๐ ๐ as ๐บ-modules. โก We will now give a second proof that the triple (7.40)
(((
[๐] ๐+๐โ1 ] ) )), โจ(1, 2, . . . , ๐)โฉ, [ ๐ ๐ ๐
exhibits the CSP. We will write vectors in boldface to distinguish them from scalars. To use the previous theorem, any ๐บ-module isomorphic to โ๐ will suffice. So we will construct one whose structure is easy to analyze. Let ๐ be a vector space of dimension ๐ and fix a basis ๐ต = {๐1 , ๐2 , . . . , ๐๐ } for ๐. Let ๐ ๐ (๐ต) be the set of all formal polynomials of degree ๐ using the elements of ๐ต as variables and the complex numbers as coefficients. Clearly ๐ ๐ (๐ต) is a vector space with basis (7.41)
๐ต โฒ = {๐๐1 ๐๐2 โฏ ๐๐๐ โฃ 1 โค ๐1 โค ๐2 โค โฏ โค ๐๐ โค ๐}
In particular, if one takes ๐ = โ[๐] with the basis ๐ต = {๐ข โฃ ๐ โ [๐]}, then we will write ๐ ๐ (๐) for ๐ ๐ (๐ต). To illustrate, ๐2 (3) = {๐ 1 ๐๐ + ๐ 2 ๐๐ + ๐ 3 ๐๐ + ๐ 4 ๐๐ + ๐ 5 ๐๐ + ๐ 6 ๐๐ โฃ ๐ ๐ โ โ for 1 โค ๐ โค 6}. One can turn ๐ ๐ (๐) into a ๐บ๐ -module for ๐บ๐ = โจ(1, 2, . . . , ๐)โฉ by letting (7.42)
๐(๐ข1 ๐ข2 โฏ ๐ข๐ ) = ๐(๐ข1 )๐(๐ข2 ) โฏ ๐(๐ข๐ )
for ๐ โ ๐บ๐ and extending linearly. It should be clear from the definitions that (7.43)
[๐] โ(( )) โ
๐ ๐ (๐) ๐
as ๐บ๐ -modules. So we will use the latter in establishing the CSP. The advantage of using ๐ ๐ (๐) is that it is also a GL๐ -module. In particular, we can define the action of ๐ โ GL๐ exactly as in (7.42), where ๐ข๐ is thought of as the ๐th coordinate vector and the linear combinations ๐(๐ข1 ), . . . , ๐(๐ข๐ ) are multiplied together formally to get an element of ๐ ๐ (๐). For example, if ๐ = 3, ๐ = 2, and 1 ๐=[ 3 0
2 4 0
0 0 ], โ1
then ๐(๐๐) = ๐(๐)๐(๐) = (๐ + 3 ๐)(โ๐) = โ๐๐ โ 3 ๐๐. It is not hard to show that this is an action. We will also need the fact that if ๐ตฬ is any other basis for โ[๐], then the monomials defined by (7.41) (where one replaces each ๐๐๐ by the corresponding element of ๐ต)ฬ also form a basis for ๐ ๐ (๐). Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
258
7. Counting with Symmetric Functions
We now compute the character of ๐๐ (๐). Notice from Corollary A.1.2 that, since ๐บ๐ is cyclic, there is a basis ๐ต = {๐1 , ๐2 , . . . , ๐๐ } for โ[๐] which diagonalizes [๐] for all ๐ โ ๐บ๐ ; say [๐]๐ต = diag(๐ฅ1 , ๐ฅ2 , . . . , ๐ฅ๐ ). To compute the action of ๐บ๐ in ๐ ๐ (๐), we use the basis ๐ตโฒ in (7.41) and see that ๐(๐๐1 ๐๐2 โฏ ๐๐๐ ) = ๐(๐๐1 )๐(๐๐2 ) โฏ ๐(๐๐๐ ) = ๐ฅ๐1 ๐ฅ๐2 โฏ ๐ฅ๐๐ ๐๐1 ๐๐2 โฏ ๐๐๐ . So ๐ตโฒ diagonalizes this action with [๐]๐ตโฒ = diag(๐ฅ๐1 ๐ฅ๐2 โฏ ๐ฅ๐๐ โฃ 1 โค ๐1 โค ๐2 โค โฏ โค ๐๐ โค ๐). This gives the character ๐โฒ (๐) =
โ
๐ฅ๐1 ๐ฅ๐2 โฏ ๐ฅ๐๐ = โ๐ (๐ฅ1 , ๐ฅ2 , . . . , ๐ฅ๐ )
1โค๐1 โค๐2 โค. . .โค๐๐ โค๐
which is just a complete homogeneous symmetric polynomial in the eigenvalues. For example, if ๐ = 3 and ๐ = 2, then we would have a basis ๐ต = {๐, ๐, ๐} such that [๐]๐ต = diag(๐ฅ1 , ๐ฅ2 , ๐ฅ3 ). So in ๐ 2 (3) ๐(๐๐) = ๐ฅ32 ๐๐, ๐(๐๐) = ๐ฅ12 ๐๐, ๐(๐๐) = ๐ฅ22 ๐๐, ๐(๐๐) = ๐ฅ1 ๐ฅ2 ๐๐, ๐(๐๐) = ๐ฅ1 ๐ฅ3 ๐๐, ๐(๐๐) = ๐ฅ2 ๐ฅ3 ๐๐, which gives ๐โฒ (๐) = ๐ฅ12 + ๐ฅ22 + ๐ฅ32 + ๐ฅ1 ๐ฅ2 + ๐ฅ1 ๐ฅ3 + ๐ฅ2 ๐ฅ3 . To prove the CSP we will need to relate homogeneous symmetric polynomials to ๐binomial coefficients. This is done via the principal specialization which sets ๐ฅ๐ = ๐๐โ1 for ๐ โฅ 1. Proposition 7.9.2. We have the principal specializations ๐ ๐ (1, ๐, . . . , ๐๐โ1 ) = ๐( 2 ) [ ๐
๐ ] ๐ ๐
and โ๐ (1, ๐, . . . , ๐๐โ1 ) = [
๐+๐โ1 ] . ๐ ๐
Proof. We will prove the identity for โ๐ , leaving the one for ๐ ๐ as an exercise. From the definition of the complete homogeneous symmetric functions we see that โ๐ (1, ๐, . . . , ๐๐โ1 ) =
โ
๐๐1 ๐๐2 โฏ ๐๐๐ .
0โค๐1 โค๐2 โคโฏโค๐๐ โค๐โ1
But a sequence ๐1 โค ๐2 โค โฏ โค ๐ ๐ corresponds to an integer partition ๐ obtained by listing the nonzero elements of the sequence in weakly decreasing order. Furthermore ๐๐1 ๐๐2 โฏ ๐๐๐ = ๐|๐| and the bounds on the ๐๐ imply that ๐ โ โ(๐, ๐ โ 1), the set of partitions contained in a ๐ ร (๐ โ 1) rectangle. The equality now follows from Theorem 3.2.5. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
259
We are now ready to complete the representation-theoretic demonstration that the triple (7.40) exhibits the cyclic sieving phenomenon. Consider [(1, 2, . . . , ๐)] acting as a linear transformation on โ[๐]. Its characteristic polynomial is ๐ฅ๐ โ 1 which has roots 1, ๐, ๐2 , . . . , ๐๐โ1 . So, by Corollary A.1.2, there is a diagonalizing basis ๐ต for the action of ๐บ๐ = โจ(1, 2, . . . , ๐)โฉ with [(1, 2, . . . , ๐)]๐ต = diag(1, ๐, ๐2 , . . . , ๐๐โ1 ). Since any ๐ โ ๐บ๐ has the form ๐ = (1, 2, . . . , ๐)๐ for some ๐ and since the generator has been diagonalized, we have [๐]๐ต = diag(1๐ , ๐๐ , ๐2๐ , . . . , ๐(๐โ1)๐ ) = diag(1, ๐พ, ๐พ2 , . . . , ๐พ๐โ1 ) where ๐พ = ๐๐ is a primitive ๐(๐)th root of unity. But the previous theorem and the discussion just preceding it show that ๐โฒ (๐) = โ๐ (1, ๐พ, ๐พ2 , . . . , ๐พ๐โ1 ) = [
๐+๐โ1 ] ๐ ๐พ
where ๐โฒ is the character of ๐๐ (๐). But, by (7.43), ๐
[๐] ๐ (๐) = #(( )) . ๐ โฒ
Equating the last two displayed equations completes the proof.
Exercises (1) (a) Show that (7.2) satisfies the definition of a group action. (b) Show that Sym is an algebra; that is, it is a vector space which is closed under multiplication of symmetric functions. (2) Prove Proposition 7.1.2(b). (3) Prove Theorem 7.1.3(b). (4) (a) Prove that lexicographic order is a total order on partitions. (b) Prove that adding parts of a partition makes it larger in lexicographic order. (c) Prove that lexicographic order on partitions is a linear extension of dominance order as introduced in Section 1.12. (d) Prove that the lexicographic order inequalities in the proof of Theorem 7.1.3(a) and (b) can be strengthened to dominance order inequalities. (e) Show that part (d) is also true in the statement of Theorem 7.2.2. (5) Show that ๐๐ is generated by the adjacent transpositions (๐, ๐ + 1) for 1 โค ๐ < ๐. Hint: Induct on inv ๐ for ๐ โ ๐๐ . (6) Consider the proof of Theorem 7.2.3. (a) Show in part (a) that every path family whose associated permutation is not the identity must intersect. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
260
7. Counting with Symmetric Functions
(b) In part (a), provide a description of the inverse of the map from lattice path families to SSYT. Be sure to prove that it is well-defined and indeed an inverse to the forward map. (c) Prove part (b). (7) Verify that the real sequence ๐0 , . . . , ๐๐ is log-concave if and only if ๐0 /๐, . . . , ๐๐ /๐ is, where ๐ โ โ โ {0}. (8) Use Theorem 7.2.5 to prove log-concavity of the following sequences. ๐ ๐ ๐ (a) ( ), ( ), . . . , ( ). 0 1 ๐ (b) ๐(๐, 0), ๐(๐, 1), . . . , ๐(๐, ๐) (signless first kind Stirling numbers). (9) Prove equation (7.9). (10) Prove equation (7.13). (11) A plane partition of shape ๐ is a filling ๐ of the cells of ๐ with positive integers so that rows and columns weakly decrease. Let ๐๐๐ be the number of plane partitions ๐ (of any shape) such that |๐| = ๐. Show that โ ๐๐๐ ๐ฅ๐ = โ ๐โฅ0
๐โฅ1
1 (1 โ ๐ฅ๐ )๐
in two ways: by taking a limit in (7.14) and by providing a proof in the spirit of the HillmanโGrassl algorithm. (12) (a) Prove that the output array of HG1โHG3 is a reverse plane partition. (b) Prove that (7.16) is a total order. (c) Show that in GH3 of the HillmanโGrassl construction, the reverse path ๐ must reach the rightmost cell in row ๐. (d) Prove that after adding ones along the reverse path, the result is still a reverse plane partition. (13) (a) Construct the inverse of the map used in the proof of (7.20). (b) Prove (7.21). (c) Prove (7.24). (14) Complete the proof of Lemma 7.4.3. (15) Derive (7.26) from (7.25) using a bijection. (16) (a) Show that the ๐๐โ -partitions are exactly the reverse plane partitions of shape ๐. (b) Show that for any finite poset ๐ we have #โ(๐) = #โ(๐ โ ). (17) (a) Let ๐ be a poset. Call ๐ a rooted tree if it has a 0ฬ and its Hasse diagram is a tree in the graph-theoretic sense of the term. If #๐ = ๐, then a natural labeling of ๐ is an order-preserving bijection ๐ โ [๐]. See Figure 7.19 for an example of a rooted tree (on the left) and a natural labeling (in the middle). Let ๐๐ be the number of natural labelings of ๐. Define the hooklength of ๐ฃ โ ๐ to be โ๐ฃ = #๐(๐ฃ) Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
261
5
3
6
2
4
1
1
1 3
2 6
1
Figure 7.19. A rooted tree poset, a natural labeling, and its hooklengths
where ๐(๐ฃ) is the upper-order ideal generated by ๐ฃ. The right-hand tree in Figure 7.19 lists its hooklengths. Prove that if #๐ = ๐, then ๐๐ =
๐! โ๐ฃโ๐ โ๐ฃ
in two ways: probabilistically and using induction on ๐. (b) The comb is the infinite poset on the left in Figure 7.20. Let ๐ฟ๐ be the set of lower-order ideals of the comb which have ๐ elements. The three elements of ๐ฟ3 are displayed on the right in Figure 7.20. Note that the last two order ideals are considered distinct even though they are isomorphic as posets. Show that #๐ฟ๐ = ๐๐ , the Fibonacci numbers defined in (1.2). (c) Using the notation of part (a), show that โ (๐๐ )2 = ๐! . ๐โ๐ฟ๐
(18) (a) Show that if ๐ is a PYT and ๐ฅ โ ๐, then ๐ โฒ = ๐๐ฅ (๐) is still a PYT; that is, the rows and columns of ๐ โฒ still increase. (b) Show that the RSK map is well-defined in that ๐ and ๐ are both semistandard. (19) Consider three sets of variables ๐ฑ = {๐ฅ๐ }๐โฅ1 , ๐ฒ = {๐ฆ๐ }๐โฅ1 , and ๐ฑ๐ฒ = {๐ฅ๐ ๐ฆ๐ }๐,๐โฅ1 . Prove that โ ๐ ๐ (๐ฑ)๐ ๐ (๐ฒ) = ๐ ๐ (๐ฑ๐ฒ) ๐โข๐
where the variables in ๐ฑ๐ฒ can be substituted into the Schur function in any order since ๐ ๐ is symmetric. Hint: Use the Cauchy identity, equation (7.30).
โ
โ
โ
Figure 7.20. The comb and its three lower-order ideals with 3 elements
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
262
7. Counting with Symmetric Functions
(20) Prove Theorem 7.5.4. Hint: First prove that if ๐ is an SSYT into which one inserts ๐ฅ and ๐ฆ in that order with ๐ฅ โค ๐ฆ, then the box added to the shape by the insertion of ๐ฆ is strictly to the right of the box for the insertion of ๐ฅ. (21) Show that (7.27) can be derived from (7.30) by taking the coefficient of ๐ฅ1 โฏ ๐ฅ๐ ๐ฆ1 โฏ ๐ฆ๐ on both sides. (22) Fill in the details of the proof of Lemma 7.6.2. (23) If ๐ is a two-line array, then let ๐ฬ be the upper line and let ๐ฬ be the lower line. (a) Show that any two-line array ๐ with entries in โ and columns which are lexicographically weakly increasing corresponds to a matrix ๐ โ Mat. (b) Show that if RSK(๐) = (๐, ๐) with sh ๐ = sh ๐ = ๐, then ๐1 = the length of a longest weakly increasing subsequence of ๐ฬ by mimicking the proof of Theorem 7.6.1. (c) Let ๐ be a semistandard Young tableau and suppose that the content of ๐ is co ๐ = [๐ผ1 , ๐ผ2 , . . . , ๐ผ๐ ]. The standardization of ๐ is the tableau std ๐ obtained by replacing the ones in ๐ by the numbers 1, 2, . . . , ๐ผ1 from left to right, replacing the twos in ๐ by the numbers ๐ผ1 + 1, ๐ผ1 + 2, . . . , ๐ผ1 + ๐ผ2 from left to right, and so on. Show that std ๐ is a standard Young tableau. (d) Standardize a two-line array ๐ by using the same left-to-right replacement as in the previous part on ๐ฬ and then doing so again on ๐.ฬ Clearly std ๐ is a permutation in two-line form if the columns of ๐ are lexicographically ordered. Show that in this case RS(std(๐)) = std(RSK(๐)). (e) Use part (d) and the result (rather than the proof) of Theorem 7.6.1 to give a second proof of part (b). (24) (a) Extend column insertion to semistandard tableaux ๐ by having an element ๐ฅ bump the uppermost element in a column greater than or equal to ๐ฅ. Show that with this definition ๐๐ฅ (๐) is semistandard. (b) Give two proofs that for any semistandard Young tableau ๐ and positive integers ๐ฅ, ๐ฆ we have ๐๐ฆ (๐๐ฅ (๐)) = ๐๐ฅ (๐๐ฆ (๐)), one by mimicking the proof of Lemma 7.6.2 and one by using the standardization operator std. (c) Give two proofs that if RSK(๐) = (๐, ๐) with sh ๐ = sh ๐ = ๐, then ๐๐ก1 = the length of a longest decreasing subsequence of ๐, one by using part (b) and one using the standardization operator std from the previous exercise. (d) Prove the identity โ ๐ ๐ (๐ฑ)๐ ๐๐ก (๐ฒ) = โ (1 + ๐ฅ๐ ๐ฆ๐ ). ๐
๐,๐โฅ1
Hint: Use column insertion to define a weight-preserving bijection ๐ โ (๐, ๐) where ๐ โ Mat is a matrix with all entries zero or one, sh ๐ = sh ๐, and ๐, ๐ ๐ก semistandard. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
263
โฎ 1111
โฎ 211
111
121
โฎ 112
21 11
22 12
2 1 โ
Figure 7.21. Part of the poset โฑ
(25) Finish the proof of Proposition 7.7.1. (26) Show that the base case holds in Corollary 7.7.3. (27) Prove Proposition 7.7.6. (28) Prove Theorem 7.7.7. (29) (a) Let โฑ๐ be the set of all words ๐ค of ones and twos having โ๐ ๐ค ๐ = ๐. Show that for ๐ โฅ 0 we have #โฑ๐ = ๐๐ , the Fibonacci numbers defined in (1.2). (b) Put a partial order on โฑ = โจ๐โฅ0 โฑ๐ with covers ๐ฃ โ ๐ค whenever F1 ๐ฃ can be obtained from ๐ค by removing the first one in ๐ค or F2 ๐ค can be obtained from ๐ฃ by changing the first one in ๐ฃ to a two. The lower ranks of โฑ are shown in Figure 7.21. Show that โฑ is differential. (c) Show that โฑ is a lattice. Hint: Prove that ๐ฃโง๐ค exists by induction on rk ๐ฃ+rk ๐ค and then use Exercise 12(c) in Chapter 5. (d) Give a second proof that โฑ is a lattice using Exercise 12(d) in Chapter 5. (30) Let ๐ โ โ. Say poset ๐ is ๐-differential if it satisfies DP1, DP3, and the following axiom for any ๐ฅ โ ๐: DP2r If ๐ฅ covers ๐ elements, then it is covered by ๐ + ๐ elements. Prove the following statements. (a) If ๐ is ๐-differential, then # Rk๐ ๐ is finite for all ๐. So there are well-defined ๐ท and ๐ operators. (b) Let ๐ be ranked with # Rk๐ ๐ finite for all ๐. We have ๐ is ๐-differential โบ ๐ท๐ โ ๐๐ท = ๐๐ผ. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
264
7. Counting with Symmetric Functions
(c) In any ๐-differential poset we have โ (๐๐ฅ )2 = ๐๐ ๐! ๐ฅโRk๐ ๐
ฬ chains. where ๐ is the number of saturated 0โ๐ฅ (d) If ๐ is ๐-differential and ๐ is ๐ -differential, then ๐ ร ๐ is (๐ + ๐ )-differential. In particular, if ๐ is differential, then ๐๐ is ๐-differential. ๐ฅ
(31) Show that the backwards implication in Proposition 7.8.4 holds. Hint: Use Theorem 3.8.4. (32) (a) The star ๐๐ is the tree with ๐ = {๐ฃ 1 , . . . , ๐ฃ ๐ } and with edges ๐ธ = {๐ฃ 1 ๐ฃ 2 , ๐ฃ 1 ๐ฃ 3 , . . . , ๐ฃ 1 ๐ฃ ๐ }. Find expressions for ๐(๐๐ ) in the monomial basis and in the power sum basis with coefficients which are, up to sign, products of binomial coefficients. (Of course, every integer is a binomial coefficient since (๐1) = ๐. But any such factor should come choosing one thing from ๐ things combinatorially.) (b) Prove that for any graph ๐บ ๐(๐บ; ๐ก) = โ (โ1)#๐น ๐กโ(๐(๐น)) ๐นโ๐ธ
in three ways: by using deletion-contraction, by using a sign-reversing involution, and by using ๐(๐บ). (33) (a) Show that (7.42) defines an action of GL๐ on ๐๐ (๐). (b) Show that if ๐ตฬ = {๐ฬ 1 , ๐ฬ 2 , . . . , ๐ฬ ๐ } is any basis for โ[๐], then {๐ฬ ๐ ๐ฬ ๐ โฏ ๐ฬ ๐ โฃ ๐1 โค ๐2 โค โฏ โค ๐๐ } 1
2
๐
๐
is a basis for ๐ (๐). (34) (a) Let ๐ ๐ (๐) = ๐ ๐ (๐ฅ1 , ๐ฅ2 , . . . , ๐ฅ๐ ) and similarly for โ๐ (๐). Prove that ๐ ๐ (0) = โ๐ (0) = ๐ฟ ๐,0 and for ๐ โฅ 1 ๐ ๐ (๐) = ๐ ๐ (๐ โ 1) + ๐ฅ๐ ๐ ๐โ1 (๐ โ 1), โ๐ (๐) = โ๐ (๐ โ 1) + ๐ฅ๐ โ๐โ1 (๐). (b) Give three proofs of the first identity in Proposition 7.9.2: one by induction, one using the ๐-Binomial Theorem (Theorem 3.2.4), and one using Exercise 7(c) in Chapter 3. (c) Give two more proofs of the second identity in Proposition 7.9.2: one by induction and one which uses the ๐-Binomial Theorem (Theorem 3.2.4). (35) (a) Prove that ๐[๐, ๐] = โ๐โ๐ ([1]๐ , [2]๐ , . . . , [๐]๐ ), where ๐[๐, ๐] is the ๐-Stirling number of the second kind introduced in Chapter 3, Exercise 21. Hint: Use part (a) of Exercise 34. (b) Prove that ๐[๐, ๐] = ๐ ๐โ๐ ([1]๐ , [2]๐ , . . . , [๐ โ 1]๐ ), where ๐[๐, ๐] is the signless ๐-Stirling number of the first kind introduced in Chapter 3, Exercise 22. Hint: Use part (a) of Exercise 34. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
265
(36) Define a relation on the polynomial ring โ[๐] by letting ๐(๐) โค ๐(๐) if, for all ๐ โ โ, the coefficient of ๐๐ in ๐(๐) is less than or equal to the coefficient of ๐๐ in ๐(๐). (a) Prove that this relation is a partial order on โ[๐], but not a total order. (b) Define a sequence of polynomials ๐0 (๐), ๐1 (๐), . . . to be ๐-log-concave if ๐๐ (๐)2 โฅ ๐๐โ1 (๐)๐๐+1 (๐) for all ๐ โฅ 1. If the polynomial sequence is finite, we let ๐๐ (๐) = 0 for all sufficiently large ๐. Prove the following. (i) For any ๐ โ โ the finite sequence ๐( 2 ) [ 0
1 ๐ ๐ ๐ ๐ ] , ๐ (2) [ ] , . . . , ๐( 2 ) [ ] 0 1 ๐
is ๐-log-concave. Hint: Use the first identity in Proposition 7.9.2. (ii) For any ๐ โ โ the infinite sequence [
๐ ๐+1 ๐+2 ],[ ],[ ] , ... 0 1 2
is ๐-log-concave. Hint: Use the second identity in Proposition 7.9.2. (iii) For any ๐ โ โ the finite sequence ๐[๐, 0], ๐[๐, 1], . . . , ๐[๐, ๐] is ๐-log-concave. Hint: Use part (b) of the previous exercise.
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
10.1090/gsm/210/08
Chapter 8
Counting with Quasisymmetric Functions
While symmetric functions are invariant under arbitrary permutations of variables, quasisymmetric functions only need to be preserved by order-preserving bijections on the variable subscripts. Quasisymmetric functions are implicit in the work of Stanley on ๐-partitions [84] but were first explicitly defined and studied by Gessel [32]. As we will see in this chapter, these functions also have interesting connections with chain enumeration in posets, pattern avoidance, and graph coloring.
8.1. The algebra of quasisymmetric functions, QSym We start by defining what it means for a power series to be quasisymmetric. We will introduce two important bases for the algebra of quasisymmetric functions and discuss their relationship with symmetric functions. As usual, ๐ฑ = {๐ฅ1 , ๐ฅ2 , ๐ฅ3 , . . . } will be a countably infinite variable set. A power ๐ผ ๐ผ ๐ผ series ๐(๐ฑ) โ โ[[๐ฑ]] is quasisymmetric if any two monomials of the form ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐ ๐ ๐ผ ๐ผ ๐ผ with ๐1 < ๐2 < โฏ < ๐๐ and ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐ ๐ with ๐1 < ๐2 < โฏ < ๐ ๐ have the same coefficient. Note the increasing condition on the subscripts which is not present in the definition of a symmetric function. So this is more a restrictive condition; that is, every symmetric function is quasisymmetric but not conversely. For example (8.1) ๐(๐ฑ) = 5๐ฅ14 ๐ฅ2 + 5๐ฅ14 ๐ฅ3 + 5๐ฅ24 ๐ฅ3 + โฏ โ ๐ฅ1 ๐ฅ22 ๐ฅ3 โ ๐ฅ1 ๐ฅ22 ๐ฅ4 โ ๐ฅ1 ๐ฅ32 ๐ฅ4 โ ๐ฅ2 ๐ฅ32 ๐ฅ4 โ โฏ is quasisymmetric but not symmetric. An equivalent way to define ๐(๐ฑ) being qua๐ผ ๐ผ ๐ผ sisymmetric is to say that any monomial of the form ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐ ๐ with ๐1 < ๐2 < โฏ < ๐๐ ๐ผ ๐ผ ๐ผ has the same coefficient as ๐ฅ1 1 ๐ฅ2 2 โฏ ๐ฅ๐ ๐ . 267 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
268
8. Counting with Quasisymmetric Functions
To set up notation, let QSym๐ = QSym๐ (๐ฑ) = {๐(๐ฑ) โ โ[[๐ฑ]] โฃ ๐ is quasisymmetric and homogeneous of degree ๐}. Then the algebra of quasisymmetric functions is QSym = QSym(๐ฑ) =
โจ
QSym๐ (๐ฑ).
๐โฅ0
Note that, as with symmetric functions, since QSym is a direct sum the quasisymmetric power series in it are of bounded degree. Note also that, unlike symmetric functions, it is not obvious that this is an algebra, i.e., that QSym is closed under multiplication and not just under taking linear combinations. The proof of this fact will follow from Theorem 8.3.1. As we will see, bases for QSym are indexed by integer compositions. We will be interested in two particular bases. Given a composition ๐ผ = [๐ผ1 , ๐ผ2 , . . . , ๐ผ๐ ], the associated monomial quasisymmetric function is ๐ผ ๐ผ ๐ผ โ ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐ ๐ . ๐๐ผ = ๐1 โฏ > 0. This term is used since the reversal ๐๐ is of a form usually called layered. The increasing subsequences ๐, ๐ + 1, . . . , ๐ and so forth are called its layers and their lengths are the layer lengths. For example ๐ = 789561234 is reverse layered with layers 789, 56, 1234 and corresponding layer lengths 3, 2, 4. Lemma 8.4.1. We have Av๐ (132, 213) = {๐ โ ๐๐ โฃ ๐ is reverse layered}. Proof. Note that the reverse layered permutations ๐ are exactly the ones such that, for all ๐, ๐ โ [๐], if ๐ < ๐ and ๐ is before ๐ in ๐, then every element of [๐, ๐] comes between ๐, ๐ in ๐. Now ๐ contains 132 if and only if ๐ contains a subsequence ๐๐๐ with ๐ โ [๐, ๐] coming after ๐. Similarly ๐ containing 213 is equivalent to there being a ๐ โ [๐, ๐] appearing before ๐. So ๐ avoids both patterns precisely when ๐ is reverse layered. โก To bring in quasisymmetric functions define, for any set ฮ of permutations, the pattern quasisymmetric function โ
๐๐ (ฮ ) =
๐นDes ๐ .
๐โAv๐ (ฮ )
Note that ๐๐ (ฮ ) is a sum of fundamental quasisymmetric functions for permutations avoiding ฮ , while ๐นฮ is a sum over the elements of ฮ itself. There are times when ๐๐ (ฮ ) being symmetric implies that the same is true for ๐๐ (ฮ โฒ ) for certain other ฮ โฒ , similar to what happens with Wilf equivalence. Consider the dihedral group ๐ท of the square as defined in (1.11). The following lemma is easy to prove and so its demonstration is left as an exercise. Lemma 8.4.2. For any ๐ โ ๐ท, any set of permutations ฮ , and any ๐ โฅ 0 we have ๐(Av๐ (ฮ )) = Av๐ (๐(ฮ )).
โก
Recall that if ๐ is a permutation, then its complement and reversal (see Exercise 37 of Chapter 1) are denoted ๐๐ and ๐๐ , respectively. Proposition 8.4.3. Suppose that ๐๐ (ฮ ) is symmetric and that it has Schur expansion ๐๐ (ฮ ) = โ ๐ ๐ ๐ ๐ . ๐ ๐
(a) We have ๐๐ (ฮ ) is symmetric and ๐๐ (ฮ ๐ ) = โ ๐ ๐ ๐ ๐๐ก . ๐
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
278
8. Counting with Quasisymmetric Functions
(b) We have ๐๐ (ฮ ๐ ) is symmetric and ๐๐ (ฮ ๐ ) = โ ๐ ๐ ๐ ๐๐ก . ๐ ๐๐
(c) We have ๐๐ (ฮ ) is symmetric and ๐๐ (ฮ ๐๐ ) = โ ๐ ๐ ๐ ๐ . ๐
Proof. (a) Applying the definition of ๐๐ (ฮ ) and then Theorem 8.2.5 to the hypothesis we have (8.11)
โ
๐นDes ๐ = ๐๐ (ฮ ) = โ ๐ ๐ ๐ ๐ = โ ๐ ๐ ๐
๐โ๐๐ (ฮ )
๐
โ
๐นDes ๐ .
๐โSYT(๐)
In passing from ๐ to ๐๐ , every descent is changed into an ascent and vice versa. So we have Des ๐๐ = [๐ โ 1] โ Des ๐.
(8.12)
Also note that in any SYT ๐ with ๐ in cell (๐, ๐) and ๐ + 1 in cell (๐โฒ , ๐โฒ ), either we have ๐ < ๐โฒ and ๐ โฅ ๐โฒ which implies ๐ โ Des ๐, or we have ๐ โฅ ๐โฒ and ๐ < ๐โฒ which implies ๐ โ Des ๐. It follows that Des ๐ ๐ก = [๐ โ 1] โ Des ๐.
(8.13)
Using Lemma 8.4.2, then equations (8.12), (8.11), and (8.13), and then finally Theorem 8.2.5 in that order yields ๐๐ (ฮ ๐ ) =
โ
๐น[๐โ1]โDes ๐ = โ ๐ ๐
๐โ๐๐ (ฮ )
๐
โ
๐น[๐โ1]โDes ๐ = โ ๐ ๐ ๐ ๐๐ก . ๐
๐โSYT(๐)
(b) The proof is similar to part (a) except that one uses Theorem 7.6.3 in place of equation 8.13. The details are left to the reader. (c) This is implied by the first two parts and Lemma 8.4.2.
โก
We will now use our results to prove that two particular ฮ โ ๐3 have ๐๐ (ฮ ) symmetric for all ๐ and determine its Schur expansion. For a complete list of all such ฮ , as well as examples which are not subsets of ๐3 , see [42]. A partition ๐ is a hook if ๐ = (๐, 1๐ ) for ๐ โฅ 1 and ๐ โฅ 0. Let โ๐ = {๐ โข ๐ โฃ ๐ is a hook}. Theorem 8.4.4. We have ๐๐ (132, 213) = ๐๐ (231, 312) = โ ๐ ๐ . ๐โโ๐
Proof. Since {231, 312} = {132, 213}๐ it suffices, by the previous proposition, to prove that ๐๐ (132, 213) has the given Schur expansion. First we claim that ๐๐ (132, 213) =
โ
๐น๐ .
๐โ[๐โ1]
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
8.5. The chromatic quasisymmetric function
279
To prove the claim, it suffices to show that there is a bijection between subsets ๐ โ [๐ โ 1] and permutations ๐ โ Av๐ (132, 213) such that Des ๐ = ๐. Recall from Lemma 8.4.1 that these ๐ are exactly the reverse layered permutations. If ๐ผ = [๐ผ1 , . . . , ๐ผ๐ ] is the composition of layer lengths of ๐, then Des ๐ = ๐ where ๐ = ๐โ1 (๐ผ) and ๐ is the bijection (1.8). So it suffices to prove that for any ๐ผ โง ๐ there is a unique ๐ โ Av๐ (132, 213) having ๐ผ as its composition of layer lengths. But this is clear since we must put the ๐ผ1 largest elements of [๐] in the first layer, the next ๐ผ2 largest elements in the second layer, and so on. From the previous paragraph, we will be done if we can show that โ ๐ ๐ = ๐โโ๐
โ
๐น๐ .
๐โ[๐โ1]
Because of Theorem 8.2.5, it suffices to show that there is a bijection between subsets ๐ โ [๐ โ 1] and hook tableaux ๐ป such that Des ๐ป = ๐. But given any ๐ โฒ โ [2, ๐], there is a unique hook tableau ๐ป whose first column is ๐ โฒ โช {1}. And Des ๐ป = ๐ โฒ โ 1, the set obtained from ๐ โฒ by subtracting one from each entry. So the bijection ๐ โฒ โฆ ๐ = ๐ โฒ โ 1 completes the proof. โก
8.5. The chromatic quasisymmetric function Chromatic quasisymmetric functions were introduced by Shareshian and Wachs [82] in part to study the (๐ + ๐)-Free Conjecture of Stanley and Stembridge [93]. These quasisymmetric functions refine the chromatic symmetric functions from Section 7.8 and have many interesting properties, including a connection with Hessenberg varieties from algebraic geometry. Here, we consider what happens when such a function is symmetric as well as making a connection with reverse ๐-partitions. Throughout this section, ๐บ = (๐, ๐ธ) will be a graph with ๐ = [๐]. We let ๐ซ๐ถ(๐บ) = {๐ โถ ๐ โ โ โฃ ๐ is a proper coloring of ๐บ}. The set of ascents of ๐ โ ๐ซ๐ถ(๐บ) is Asc ๐ = {๐๐ โ ๐ธ โฃ ๐ < ๐ and ๐(๐) < ๐(๐)} with corresponding ascent number asc ๐ = # Asc ๐. Figure 8.2 displays three proper colorings of a path with edges 13 and 32. They have Asc ๐ 1 = โ
, Asc ๐ 2 = {13}, and Asc ๐ 3 = {13, 23} so that asc ๐ 1 = 0, asc ๐ 2 = 1, and asc ๐ 3 = 2, respectively. Given ๐1 =
7
5
7
1
3
2
๐2 =
4
5
7
1
3
2
๐3 =
Figure 8.2. Three proper colorings of a graph with ๐ = [3]
Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
4
5
4
1
3
2
280
8. Counting with Quasisymmetric Functions
variable set ๐ฑ = {๐ฅ1 , ๐ฅ2 , . . . } as well as another parameter ๐, define the chromatic quasisymmetric function of ๐บ to be ๐(๐บ; ๐ฑ, ๐) =
โ
๐ฑ๐ ๐asc ๐
๐โ๐ซ๐ถ(๐บ) ๐
where ๐ฑ is defined by (7.36). To illustrate with the graph in Figure 8.2, if we consider the colorings ๐ such that ๐(1) = ๐(2) = ๐ and ๐(3) = ๐ > ๐, then each such map contributes ๐ฅ๐2 ๐ฅ๐ ๐2 to the sum for a total of ๐21 ๐2 . If the inequality between ๐ and ๐ is reversed, then there are no ascents and the contribution is ๐12 . Similar considerations apply to the six ways three distinct colors could be assigned to the vertex set, giving a total of ๐(๐บ; ๐ฑ, ๐) = (๐12 + 2๐13 ) + (2๐13 )๐ + (๐21 + 2๐13 )๐2 . Because of the similarity to our notation ๐(๐บ; ๐ฑ) for the chromatic symmetric function, we will always include the ๐ when referring to its quasisymmetric cousin. Also, it will be convenient to define ๐๐ (๐บ; ๐ฑ) = โ ๐ฑ๐ ๐โ๐ซ๐ถ(๐บ) asc ๐=๐
so that ๐(๐บ; ๐ฑ, ๐) = โ ๐๐ (๐บ; ๐ฑ)๐๐ . ๐โฅ0
We first show that the chromatic quasisymmetric function lives up to its name and is a refinement of the chromatic symmetric function. Proposition 8.5.1. Let ๐บ be a graph with ๐ = [๐]. We have: (a) ๐๐ (๐บ; ๐ฑ) โ QSym๐ for all ๐ โฅ 0. (b) ๐(๐บ; ๐ฑ, ๐) has degree #๐ธ as a polynomial in ๐. (c) ๐(๐บ; ๐ฑ, 1) = ๐(๐บ; ๐ฑ). Proof. (a) We have ๐๐ (๐บ, ๐ฑ) is homogeneous of degree ๐ since in ๐ฑ๐ there is a factor ๐ฅ๐ for each vertex ๐ โ ๐. To show it is quasisymmetric consider a monomial of ๐๐ (๐บ, ๐ฑ), ๐ผ ๐ผ ๐ผ say ๐ฑ๐ = ๐ฅ๐11 ๐ฅ๐22 โฏ ๐ฅ๐๐ ๐ with ๐1 < ๐2 < โฏ < ๐๐ which arose from a proper coloring ๐ โถ ๐ โ {๐1 , ๐2 , . . . , ๐๐ }. Take any other set of positive integers ๐1 < ๐2 < โฏ < ๐ ๐ and consider the coloring ๐โฒ = ๐ โ ๐ where ๐(๐๐ ) = ๐๐ for all ๐. Then ๐โฒ is proper since ๐ is a bijection and asc ๐โฒ = asc ๐ = ๐ since ๐ is an increasing function. It follows that โฒ ๐ผ ๐ผ ๐ผ ๐๐ (๐บ; ๐ฑ) contains a corresponding monomial ๐ฑ๐ = ๐ฅ๐๐1 ๐ฅ๐๐2 โฏ ๐ฅ๐๐๐ with ๐1 < ๐2 < โฏ < ๐ ๐ . Thus ๐๐ (๐บ; ๐ฑ) is quasisymmetric. (b) Since asc ๐ counts a subset of ๐ธ for any coloring ๐, we have that the degree of ๐(๐บ; ๐ฑ, ๐) is no greater than #๐ธ. And the coloring ๐(๐) = ๐ for all ๐ โ ๐ has asc ๐ = #๐ธ, so that is the degree. (c) This follows trivially from the definitions.
โก
To explore what happens if ๐(๐บ; ๐ฑ, ๐) is in fact a symmetric function in ๐ฑ, we need to discuss reversal and palindromicity of sequences. Given a sequence ๐ โถ ๐0 , ๐1 , . . . , ๐๐ , its reversal is then ๐๐ โถ ๐๐ , ๐๐โ1 , . . . , ๐0 . We say that ๐ is palindromic with center ๐/2 Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
8.5. The chromatic quasisymmetric function
281
if ๐ = ๐๐ . For example, the sequence 0, 7, 2, 2, 7, 0 is palindromic with center 5/2. We ๐ also say that the generating function ๐(๐) = โ๐=0 ๐๐ ๐๐ has one of these properties if the corresponding sequence does. So, in our example, 7๐ + 2๐2 + 2๐3 + 7๐4 is palindromic with center 5/2. Note that if ๐(๐) is palindromic with center ๐/2, then ๐ need not be the degree of ๐(๐) because of possible initial zeros. Also, since the ๐๐ may contain other variables, we sometimes say that ๐(๐) is palindromic in ๐ to be specific. There is a simple algebraic test for being a palindrome. We leave its proof to the reader. Lemma 8.5.2. Let ๐ โถ ๐0 , ๐1 , . . . , ๐๐ be a sequence with generating function ๐(๐). (a) The generating function for ๐๐ is ๐๐ ๐(1/๐). (b) The given sequence is a palindrome with center ๐/2 if and only if โก
๐(๐) = ๐๐ ๐(1/๐). Define an involution ๐ on the monomial quasisymmetric functions by letting ๐(๐๐ผ ) = ๐๐ผ๐ .
Extend ๐ by linearity to QSym[๐], the polynomials in ๐ whose coefficients are quasisymmetric functions, where powers of ๐ are treated as scalars. We will see that this involution reverses ๐(๐บ; ๐ฑ, ๐) as a polynomial in ๐. To express the resulting power series, define the descent set and descent number of a coloring ๐ to be Des ๐ = {๐๐ โ ๐ธ โฃ ๐ < ๐ and ๐(๐) > ๐(๐)} and des ๐ = # Des ๐, respectively. Theorem 8.5.3. Let ๐บ be a graph with ๐ = [๐] and #๐ธ = ๐. (a) ๐(๐(๐บ; ๐ฑ, ๐)) = ๐๐ ๐(๐บ; ๐ฑ, ๐โ1 ). (b) ๐(๐(๐บ; ๐ฑ, ๐)) =
โ
๐ฑ๐ ๐des ๐ .
๐โ๐ซ๐ถ(๐บ) ๐ผ
๐ผ
Proof. (a) For a composition ๐ผ = [๐ผ1 , . . . , ๐ผ๐ ] and ๐ โ โ, the coefficient of ๐ฅ1 1 โฏ ๐ฅ๐ ๐ ๐๐ on the left side of (a) is ๐ผ
๐ผ
๐ผ
๐ผ
[๐ฅ1 1 โฏ ๐ฅ๐ ๐ ๐๐ ]๐(๐(๐บ; ๐ฑ, ๐)) = [๐ฅ1 ๐ โฏ ๐ฅ๐ 1 ๐๐ ]๐(๐บ; ๐ฑ, ๐) ๐ผ
๐ผ
= #{proper ๐ โฃ ๐ฑ๐ = ๐ฅ1 ๐ โฏ ๐ฅ๐ 1 and asc ๐ = ๐}.
(8.14) Similarly ๐ผ
๐ผ
๐ผ
๐ผ
[๐ฅ1 1 โฏ ๐ฅ๐ ๐ ๐๐ ](๐๐ ๐(๐บ; ๐ฑ, ๐โ1 )) = [๐ฅ1 1 โฏ ๐ฅ๐ ๐ ๐๐โ๐ ]๐(๐บ; ๐ฑ, ๐) (8.15)
โฒ
๐ผ
๐ผ
= #{proper ๐โฒ โฃ ๐ฑ๐ = ๐ฅ1 1 โฏ ๐ฅ๐ ๐ and asc ๐โฒ = ๐ โ ๐}.
So it suffices to find a bijection between the ๐ counted by (8.14) and the ๐โฒ counted by (8.15). Define ๐ โถ [๐] โ [๐] by ๐(๐) = ๐ โ ๐ + 1 for all ๐. Now given ๐ as in (8.14), we let ๐โฒ = ๐ โ ๐. We have that ๐โฒ is still proper since ๐ is a bijection. If ๐ sends ๐ผ๐ vertices to color ๐, then ๐โฒ sends that many vertices to color ๐ โ ๐ + 1. So their monomials are related as desired. And since ๐ is order reversing, asc ๐โฒ = ๐ โ asc ๐. Finally, ๐ induces a bijection on colorings since ๐ = ๐ โ ๐โฒ . Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
282
8. Counting with Quasisymmetric Functions
1 2 2
4 3
4 ๐(๐บ) =
๐บ= 1
5
3
5
Figure 8.3. A graph and its poset
(b) For any proper coloring we have Des ๐ = ๐ธ โ Asc ๐ and so des ๐ = ๐ โ asc ๐. It follows that ๐๐ ๐(๐บ; ๐ฑ, ๐โ1 ) =
โ
๐ฑ๐ ๐des ๐ .
๐โ๐ซ๐ถ(๐บ)
The result now follows from part (a).
โก
Similarly to QSym[๐], define Sym[๐] to be the set of polynomials in ๐ whose coefficients are symmetric functions. The reader should find it easy to supply the details of the demonstration of the next result. Corollary 8.5.4. Let ๐บ be a graph with ๐ = [๐] and #๐ธ = ๐ such that ๐(๐บ; ๐ฑ, ๐) โ Sym[๐]. (a) ๐(๐บ; ๐ฑ, ๐) =
โ
๐ฑ๐ ๐des ๐ .
๐โ๐ซ๐ถ(๐บ)
(b) ๐(๐บ; ๐ฑ, ๐) is palindromic in ๐ with center ๐/2.
โก
We end by making a connection with reverse ๐-partitions. Given any graph ๐บ with ๐ = [๐], there is an associated poset ๐(๐บ) on [๐] defined as follows. Call a path ๐1 , ๐2 , . . . , ๐๐ in ๐บ decreasing if ๐1 > ๐2 > โฏ > ๐๐ . Now define ๐ โด ๐ in ๐(๐บ) if there is a decreasing path from ๐ to ๐ in ๐บ. See Figure 8.3 for an example. We must make sure that ๐(๐บ) satisfies the poset axioms. Lemma 8.5.5. If ๐บ is a graph with ๐ = [๐], then ๐(๐บ) is a poset on [๐]. Proof. We have ๐ โด ๐ for ๐ โ [๐] because of the path of length zero from ๐ to itself which is decreasing. If ๐ โด ๐ and ๐ โด ๐, then the decreasing path from ๐ to ๐ forces ๐ โฅ ๐. Similarly ๐ โฅ ๐ so that ๐ = ๐. Finally, if ๐ โด ๐ and ๐ โด ๐, then consider the concatenation ๐ of the decreasing paths from ๐ to ๐ and from ๐ to ๐. Now the vertices on ๐ form a decreasing sequence since the two individual paths are decreasing and the terminal vertex of the first equals the initial vertex of the second. This also shows that ๐ is a path since the decreasing condition makes it impossible to repeat a vertex. So ๐ โด ๐ which finishes transitivity and the proof. โก Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
283
We can now show that the coefficient of ๐0 in ๐(๐บ; ๐ฑ, ๐) is the quasisymmetric generating function for reverse ๐(๐บ)-partitions. Theorem 8.5.6. If ๐บ is a graph with ๐ = [๐], then ๐0 (๐บ; ๐ฑ) = rpar(๐(๐บ); ๐ฑ). Proof. It suffices to show that any proper coloring of ๐บ with no ascents is a reverse ๐(๐บ)-partition and conversely. So let ๐ โถ ๐ โ โ be a proper coloring with asc ๐ = 0. Recall that it suffices to prove that RPP1 and RPP2 hold for covers ๐ โฒ ๐. But then ๐ > ๐ must be a decreasing path consisting of a single edge. And since this is a proper coloring with no ascents, ๐(๐) < ๐(๐). So both of the desired conditions hold. For the other direction, let ๐ โถ ๐(๐บ) โ โ be a reverse partition. By definition of ๐(๐บ), any cover ๐ โฒ ๐ comes from an edge ๐๐ with ๐ > ๐. By RPP2, we have ๐(๐) < ๐(๐). So ๐ is a proper coloring since the second inequality is strict and, by comparing the last two inequalities, has no ascents. This completes the proof, as well as the book. โก
Exercises (1) Prove that QSym is an algebra; that is, show it is closed under linear combinations and products. (2) Prove Proposition 8.1.2. (3) (a) Show that ๐๐ผ is symmetric if and only if ๐ผ = [๐๐ ] for some ๐, ๐. In addition, show that ๐[๐๐ ] = ๐(๐๐ ) . (b) Show that ๐น๐ผ is symmetric if and only if ๐ผ = [๐] or ๐ผ = [1๐ ] for some ๐. In addition, show that ๐น๐ = โ๐ and ๐น1๐ = ๐ ๐ . (c) Suppose that ๐ผ, ๐ฝ โง ๐ are distinct compositions where ๐ > 3. Show that ๐น๐ผ + ๐น ๐ฝ is symmetric if and only if {๐ผ, ๐ฝ} = {[๐], [1๐ ]}. (4) (a) Show that the ๐๐ผ can be expressed in terms of the ๐น๐ผ as ๐๐ผ = (โ1)โ(๐ผ) โ (โ1)โ(๐ฝ) ๐น ๐ฝ ๐ฝโค๐ผ
where โ(โ
) is the length function in two ways: using Theorem 1.3.3(d) and using Mรถbius inversion. (b) Show that part (a) implies Theorem 8.1.4. (5) Prove Lemma 8.2.1. (6) Complete the proof of equation (8.4). (7) (a) Prove that the map between reverse compatible and compatible functions given in the text is a well-defined bijection and that if ๐ maps to ๐, then |๐| = |๐| + ๐ where the permutations come from ๐๐ . (b) Given a poset ๐ on [๐], find a poset ๐ on [๐] such that there is a bijection ๐ โถ RPar ๐ โ Par ๐ satisfying |๐| = |๐(๐)| + ๐ for all ๐ โ RPar ๐. Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
284
8. Counting with Quasisymmetric Functions
(8) (a) Show that if ๐ is the recording tableau for ๐ under the RobinsonโSchensted map, then Des ๐ = Des ๐. (b) Show in the proof of Theorem 8.2.5 that Des ๐ โ Des ๐. (9) Prove Lemma 8.2.3. (10) Prove Theorem 8.2.4. (11) Prove Proposition 8.2.6. (12) (a) Show that if ๐ โ ๐๐ , then we have the principal specialization โฒ
๐maj ๐ (1 โ ๐)(1 โ ๐2 ) โฏ (1 โ ๐๐ ) where ๐โฒ is the reverse complement of ๐ as given by (8.3) (b) Use part (a) and Theorem 8.2.4 to rederive equation (7.23). ๐นDes ๐ (1, ๐, ๐2 , . . . ) =
(13) Prove that if ๐ โ ๐(๐) and ๐ โ ๐(๐) where ๐, ๐ are disjoint and #๐ = ๐, #๐ = ๐, then ๐+๐ โ ๐maj ๐ = ๐maj ๐+maj ๐ [ ] . ๐ ๐โ๐โงข๐ ๐ Conclude that maj is a shuffle compatible function on permutations. Hint: Use equation (7.23). (14) Show that the two maps in the proof of Theorem 8.3.1 are inverses. (15) (a) Let ๐ be a finite, ranked poset with a 1ฬ having rk 1ฬ = ๐. Associate with any chain ๐ถ โถ 0ฬ = ๐ฅ0 < ๐ฅ1 < โฏ < ๐ฅ๐ = 1ฬ the set ๐(๐ถ) = {rk ๐ฅ1 , rk ๐ฅ2 , . . . , rk ๐ฅ๐โ1 } โ [๐ โ 1]. Show that ๐(๐(๐ถ)) = ๐ผ(๐ถ) where ๐ is the map in (1.8). (b) Complete the proof of Theorem 8.3.2. (16) (a) Show that for the ๐-chain we have ๐(๐ถ๐ ) = โ๐ , the complete homogeneous symmetric function of degree ๐. ๐ ๐ (b) Show that if the prime factorization of ๐ is ๐ = ๐1 1 โฏ ๐๐ ๐ where ๐ = (๐1 , . . . , ๐๐ ) is a partition, then for the divisor lattice ๐(๐ท๐ ) = โ๐ . (17) Prove that a permutation ๐ โ ๐๐ is reverse layered if and only if we have ๐๐+1 โค ๐๐ + 1 for 1 โค ๐ < ๐. (18) Prove Lemma 8.4.2. (19) Prove part (b) of Proposition 8.4.3. (20) Prove that part (c) of Proposition 8.4.3 is implied by parts (a) and (b) and Lemma 8.4.2. (21) Show that if ๐ โ [๐], then ๐ (๐,1๐โ๐ ) = โ ๐น๐ ๐
where the sum is over ๐ โ ([๐โ1] ). ๐โ๐ (22) (a) The Knuth class corresponding to an SYT ๐ is the set RS
๐พ(๐) = {๐ โฃ ๐ โฆ (๐, ๐) for some SYT ๐}. Prove that if ๐นฮ is as defined in (8.9) and sh ๐ = ๐, then ๐น๐พ(๐) = ๐ ๐ . Licensed to AMS. License or copyright restrictions may apply to redistribution; see https://www.ams.org/publications/ebooks/terms
Exercises
285
(b) The Knuth aggregate corresponding to a partition ๐ is the set ๐พ(๐) =
โจ
๐พ(๐).
๐โSYT(๐)
Prove that ๐น๐พ(๐) = ๐๐ ๐ ๐ . (c) Show that ๐๐ (โ
) = โ ๐๐ ๐ ๐ . ๐โข๐
(d) If ๐๐ = 12 . . . ๐, then show ๐๐ (๐๐ ) = โ ๐๐ ๐ ๐ . ๐1