Catalan Numbers
EXAMPLE: The th Catalan number is .
- Catalan number: ,
- Let be the generating function of the sequence of Catalan numbers.
- ? No, because it gives a negative sequence.
Counting Permutations with GFs
QUESTION: Let . For every , let be the number of -combinations of with repetition where every appears times.
- is the number of ways of distributing unlabeled objects into labeled boxes such that objects are sent to box . (Type 2 distribution problem)
THEOREM: .
EXAMPLE: Let be the # of ways of distributing identical books to 5 persons such that person 1, 2, 3, and 4 receive , , , books, respectively.
- ;
;
;
;
QUESTION: Let . For every , let be the number of -permutations of with repetition where every appears times.
- is the number of ways of distributing labeled objects into labeled boxes such that objects are sent to box for all . (Type 1 distribution problem)
THEOREM: .
EXAMPLE: Find
- # of -permutations of with repetition where 1 appears an even number of times
- ,
Stirling Number
EXAMPLE: Show that // (Type 3 distribution problem)
- the # of ways of distributing labeled objects into unlabeled boxes s.t. no box is empty
- be the # of ways of distributing labeled objects into labeled boxes s.t. no box is empty.
THEOREM: // (Type 4 distribution problem)
- // the last entry is 1; otherwise
EXAMPLE: What is the number of ways of distributing 20 unlabeled objects into 5 unlabeled boxes such that no box is empty? That is,
这公式一看就头大,竟然还能这么简洁 😂