59
8 – Generating Functions Part (2) Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala University, Sweden

8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

8 – Generating Functions Part (2)Combinatorics 1M020

Xing Shi Cai14-02-2019

Department of Mathematics, Uppsala University, Sweden

Page 2: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer Partition

Page 3: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – money definition

ExampleAmanda wants to divide her 10 one dollar bills into any numberof piles. She does not care the order of the piles, e.g., these arecounted as one way

•••

How many ways could she do it?

1

Page 4: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – formal definition

This is equivalent toThe integer partition problemFor 𝑚 ∈ ℕ, let 𝑝𝑚 be the number of positive integer solutions for

𝑎1 + 𝑎2 +…𝑎𝑛 = 𝑚

such that 𝑎1 ≥ 𝑎2 ≥ …𝑎𝑛, with 𝑛 allowed to be any integer.

ChallengeIn the movie The Man Who Knew Infinity (2015), G. H. Hardysays 𝑝100 = 204, 226. Is this true?

2

Page 5: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – formal definition

This is equivalent toThe integer partition problemFor 𝑚 ∈ ℕ, let 𝑝𝑚 be the number of positive integer solutions for

𝑎1 + 𝑎2 +…𝑎𝑛 = 𝑚

such that 𝑎1 ≥ 𝑎2 ≥ …𝑎𝑛, with 𝑛 allowed to be any integer.

ChallengeIn the movie The Man Who Knew Infinity (2015), G. H. Hardysays 𝑝100 = 204, 226. Is this true?

2

Page 6: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – 8

3

Page 7: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – GF

Quiz – What are the GFs of

𝒫1 = {∅, , { , }, { , , }…} ,𝒫2 = {∅, , { , }, { , , },…} ,𝒫3 = {∅, , { , }, { , , },…} ,

The GFs are

𝑃1(𝑥) =1

1 − 𝑥, 𝑃2(𝑥) =1

1 − 𝑥2 ,… , 𝑃𝑘(𝑥) =1

1 − 𝑥𝑘 ,…

4

Page 8: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – GF

Quiz – What are the GFs of

𝒫1 = {∅, , { , }, { , , }…} ,𝒫2 = {∅, , { , }, { , , },…} ,𝒫3 = {∅, , { , }, { , , },…} ,

The GFs are

𝑃1(𝑥) =1

1 − 𝑥, 𝑃2(𝑥) =1

1 − 𝑥2 ,… , 𝑃𝑘(𝑥) =1

1 − 𝑥𝑘 ,…

4

Page 9: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – GF

Since the set of integer partitions is 𝒫 = 𝒫1 ×𝒫2 ×𝒫3 …, the GFfor 𝒫 is

𝑃(𝑥) = ∏𝑚≥1

𝑃𝑚(𝑥) = ∏𝑚≥1

11 − 𝑥𝑚 .

This answer of Hardy’s problem

𝑝100 = [𝑥100]𝑃 (𝑥) = 190569292.

The movie lied!

5

Page 10: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – GF

Since the set of integer partitions is 𝒫 = 𝒫1 ×𝒫2 ×𝒫3 …, the GFfor 𝒫 is

𝑃(𝑥) = ∏𝑚≥1

𝑃𝑚(𝑥) = ∏𝑚≥1

11 − 𝑥𝑚 .

This answer of Hardy’s problem

𝑝100 = [𝑥100]𝑃 (𝑥)

= 190569292.

The movie lied!

5

Page 11: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – GF

Since the set of integer partitions is 𝒫 = 𝒫1 ×𝒫2 ×𝒫3 …, the GFfor 𝒫 is

𝑃(𝑥) = ∏𝑚≥1

𝑃𝑚(𝑥) = ∏𝑚≥1

11 − 𝑥𝑚 .

This answer of Hardy’s problem

𝑝100 = [𝑥100]𝑃 (𝑥) = 190569292.

The movie lied!

5

Page 12: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into parts ≥ 3?

𝑃≥3(𝑥) = ∏𝑚≥3

11 − 𝑥𝑚

QuizWhat is the GF for partitions into only odd parts?

𝑂(𝑥) = ∏𝑚≥1

11 − 𝑥2𝑚−1

6

Page 13: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into parts ≥ 3?

𝑃≥3(𝑥) = ∏𝑚≥3

11 − 𝑥𝑚

QuizWhat is the GF for partitions into only odd parts?

𝑂(𝑥) = ∏𝑚≥1

11 − 𝑥2𝑚−1

6

Page 14: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into parts ≥ 3?

𝑃≥3(𝑥) = ∏𝑚≥3

11 − 𝑥𝑚

QuizWhat is the GF for partitions into only odd parts?

𝑂(𝑥) = ∏𝑚≥1

11 − 𝑥2𝑚−1

6

Page 15: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into parts ≥ 3?

𝑃≥3(𝑥) = ∏𝑚≥3

11 − 𝑥𝑚

QuizWhat is the GF for partitions into only odd parts?

𝑂(𝑥) = ∏𝑚≥1

11 − 𝑥2𝑚−1

6

Page 16: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into distinct parts?

The distinct part only partition is the product of

𝒟1 = {∅, } ,𝒟2 = {∅, } ,𝒟3 = {∅, } ,…

So𝐷(𝑥) = ∏

𝑚≥1(1 + 𝑥𝑚)

7

Page 17: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – with restriction

QuizWhat is the GF for partitions into distinct parts?

The distinct part only partition is the product of

𝒟1 = {∅, } ,𝒟2 = {∅, } ,𝒟3 = {∅, } ,…

So𝐷(𝑥) = ∏

𝑚≥1(1 + 𝑥𝑚)

7

Page 18: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – odd parts and distinct parts

There are 6 partitions of 8 into distinct parts, 6 into odd parts.Coincidence?

8

Page 19: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Integer partition – odd parts and distinct parts

Theorem 8.16For all 𝑛 ∈ ℕ, the number of partitions of 𝑛 into distinct partsequal to the number of partitions into odd parts.

Challenge Find a proof without using GF. Or read this one.

9

Page 20: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Exponential generating functions

Page 21: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

What is a EGF (exponential generating function)

Given an infinite sequence 𝜎 = (𝑎0, 𝑎1,… ), we associate it with a“function” 𝐹(𝑥) written as

𝐹(𝑥) = ∑𝑛≥0

𝑎𝑛𝑛! 𝑥

𝑛,

called the exponential generating function of 𝜎.

WarningAgain 𝐹(𝑥) is not a function. We do not care if the sumconverges.

There are EGF that does not correspond to any function, e.g.,

∑𝑛≥0

(𝑛!)2𝑛! 𝑥𝑛.

10

Page 22: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

What is a EGF (exponential generating function)

Given an infinite sequence 𝜎 = (𝑎0, 𝑎1,… ), we associate it with a“function” 𝐹(𝑥) written as

𝐹(𝑥) = ∑𝑛≥0

𝑎𝑛𝑛! 𝑥

𝑛,

called the exponential generating function of 𝜎.WarningAgain 𝐹(𝑥) is not a function. We do not care if the sumconverges.

There are EGF that does not correspond to any function, e.g.,

∑𝑛≥0

(𝑛!)2𝑛! 𝑥𝑛.

10

Page 23: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Example – strings

EGF is usually used for labeled structures. For example, let

𝒜 = {∅, { }, { , }, { , , },…}

i.e., strings consist of only (bags of labeled ). The number ofsuch strings of size 𝑛 is 𝑎𝑛 = 1. Thus the set 𝒜 has EGF

𝐴(𝑥) = ∑𝑛≥1

1𝑛!𝑥

𝑛 = 𝑒𝑥

11

Page 24: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Example – strings

EGF is usually used for labeled structures. For example, let

𝒜 = {∅, { }, { , }, { , , },…}

i.e., strings consist of only (bags of labeled ). The number ofsuch strings of size 𝑛 is 𝑎𝑛 = 1.

Thus the set 𝒜 has EGF

𝐴(𝑥) = ∑𝑛≥1

1𝑛!𝑥

𝑛 = 𝑒𝑥

11

Page 25: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Example – strings

EGF is usually used for labeled structures. For example, let

𝒜 = {∅, { }, { , }, { , , },…}

i.e., strings consist of only (bags of labeled ). The number ofsuch strings of size 𝑛 is 𝑎𝑛 = 1. Thus the set 𝒜 has EGF

𝐴(𝑥) = ∑𝑛≥1

1𝑛!𝑥

𝑛 = 𝑒𝑥

11

Page 26: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

EGF and combinatorics

Page 27: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ∪ℬ.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!. Then

𝐶(𝑥) = 𝐴(𝑥) + 𝐵(𝑥) = ∑𝑛≥0

𝑎𝑛 + 𝑏𝑛𝑛! 𝑥𝑛.

because there are 𝑎𝑛 + 𝑏𝑛 objects in 𝒞 of size 𝑛.

12

Page 28: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Example – Odd and even number of apples

If 𝒞 = 𝒜 ∪ℬ with

𝒜 = {∅, { , }, { , , , },…}ℬ = {{ }, { , , }, { , , , , },…}

Then the EGF of 𝒞 is

𝐶(𝑥) = 𝐴(𝑥) + 𝐵(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 + 𝑒𝑥 − 𝑒−𝑥

2 = 𝑒𝑥.

Quiz Can you get 𝐶(𝑥) directly?

13

Page 29: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combining labeled structures

For these two bags of fruits

{ , }, { , }

there are (42) = 6 ways to relabel them

{ , , , }, { , , , }, { , , , },{ , , , }, { , , , }, { , , , }

This is to say, there are 6 = (42) strings of length 4 that consist oftwo and two .

When two labeled structures are combined, relabeling is needed toavoid duplicate labels. If the two structures are of size 𝑘 and𝑛 − 𝑘, then there are (𝑛𝑘) ways to relabel while keeping the relativeorder of labels in each of the two.

14

Page 30: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combining labeled structures

For these two bags of fruits

{ , }, { , }

there are (42) = 6 ways to relabel them

{ , , , }, { , , , }, { , , , },{ , , , }, { , , , }, { , , , }

This is to say, there are 6 = (42) strings of length 4 that consist oftwo and two .

When two labeled structures are combined, relabeling is needed toavoid duplicate labels. If the two structures are of size 𝑘 and𝑛 − 𝑘, then there are (𝑛𝑘) ways to relabel while keeping the relativeorder of labels in each of the two.

14

Page 31: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combining labeled structures

For these two bags of fruits

{ , }, { , }

there are (42) = 6 ways to relabel them

{ , , , }, { , , , }, { , , , },{ , , , }, { , , , }, { , , , }

This is to say, there are 6 = (42) strings of length 4 that consist oftwo and two .

When two labeled structures are combined, relabeling is needed toavoid duplicate labels. If the two structures are of size 𝑘 and𝑛 − 𝑘, then there are (𝑛𝑘) ways to relabel while keeping the relativeorder of labels in each of the two.

14

Page 32: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combining labeled structures

For these two bags of fruits

{ , }, { , }

there are (42) = 6 ways to relabel them

{ , , , }, { , , , }, { , , , },{ , , , }, { , , , }, { , , , }

This is to say, there are 6 = (42) strings of length 4 that consist oftwo and two .

When two labeled structures are combined, relabeling is needed toavoid duplicate labels. If the two structures are of size 𝑘 and𝑛 − 𝑘, then there are (𝑛𝑘) ways to relabel while keeping the relativeorder of labels in each of the two.

14

Page 33: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ⋆ ℬ be the setof structures combining 𝛼 ∈ 𝒜 and 𝛽 ∈ ℬ through relabeling.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!, 𝐶(𝑥) = 𝑐𝑛𝑥𝑛/𝑛! be theEGF of 𝒜, ℬ, 𝒞Then

𝑐𝑛 =𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘

because there are 𝑎𝑘 ways to choose 𝛼, 𝑏𝑛−𝑘 ways to choose 𝛽 and(𝑛𝑘) ways to relabel. In other words,

𝐶(𝑥) = ∑𝑛≥0

𝑐𝑛𝑥𝑛 = (𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘)𝑥𝑛 = 𝐴(𝑥)𝐵(𝑥).

15

Page 34: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ⋆ ℬ be the setof structures combining 𝛼 ∈ 𝒜 and 𝛽 ∈ ℬ through relabeling.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!, 𝐶(𝑥) = 𝑐𝑛𝑥𝑛/𝑛! be theEGF of 𝒜, ℬ, 𝒞

Then𝑐𝑛 =

𝑛∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘

because there are 𝑎𝑘 ways to choose 𝛼, 𝑏𝑛−𝑘 ways to choose 𝛽 and(𝑛𝑘) ways to relabel. In other words,

𝐶(𝑥) = ∑𝑛≥0

𝑐𝑛𝑥𝑛 = (𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘)𝑥𝑛 = 𝐴(𝑥)𝐵(𝑥).

15

Page 35: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ⋆ ℬ be the setof structures combining 𝛼 ∈ 𝒜 and 𝛽 ∈ ℬ through relabeling.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!, 𝐶(𝑥) = 𝑐𝑛𝑥𝑛/𝑛! be theEGF of 𝒜, ℬ, 𝒞Then

𝑐𝑛 =𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘

because there are 𝑎𝑘 ways to choose 𝛼, 𝑏𝑛−𝑘 ways to choose 𝛽 and(𝑛𝑘) ways to relabel. In other words,

𝐶(𝑥) = ∑𝑛≥0

𝑐𝑛𝑥𝑛 = (𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘)𝑥𝑛 = 𝐴(𝑥)𝐵(𝑥).

15

Page 36: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ⋆ ℬ be the setof structures combining 𝛼 ∈ 𝒜 and 𝛽 ∈ ℬ through relabeling.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!, 𝐶(𝑥) = 𝑐𝑛𝑥𝑛/𝑛! be theEGF of 𝒜, ℬ, 𝒞Then

𝑐𝑛 =𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘

because there are 𝑎𝑘 ways to choose 𝛼, 𝑏𝑛−𝑘 ways to choose 𝛽 and(𝑛𝑘) ways to relabel.

In other words,

𝐶(𝑥) = ∑𝑛≥0

𝑐𝑛𝑥𝑛 = (𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘)𝑥𝑛 = 𝐴(𝑥)𝐵(𝑥).

15

Page 37: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Combinatorial product of labeled structures

For sets 𝒜 and ℬ of labeled structures, let 𝒞 = 𝒜 ⋆ ℬ be the setof structures combining 𝛼 ∈ 𝒜 and 𝛽 ∈ ℬ through relabeling.

Let 𝐴(𝑥) = 𝑎𝑛𝑥𝑛/𝑛!, 𝐵(𝑥) = 𝑏𝑛𝑥𝑛/𝑛!, 𝐶(𝑥) = 𝑐𝑛𝑥𝑛/𝑛! be theEGF of 𝒜, ℬ, 𝒞Then

𝑐𝑛 =𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘

because there are 𝑎𝑘 ways to choose 𝛼, 𝑏𝑛−𝑘 ways to choose 𝛽 and(𝑛𝑘) ways to relabel. In other words,

𝐶(𝑥) = ∑𝑛≥0

𝑐𝑛𝑥𝑛 = (𝑛

∑𝑘=0

(𝑛𝑘)𝑎𝑘𝑏𝑛−𝑘)𝑥𝑛 = 𝐴(𝑥)𝐵(𝑥).

15

Page 38: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Examples of strings

Page 39: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

The number of strings of length 𝑛 on alphabet { , }, i.e., 2𝑛.So the EGF is

∑𝑛≥0

2𝑛𝑛! 𝑥

𝑛 = ∑𝑛≥0

1𝑛!(2𝑥)

𝑛 = 𝑒2𝑥.

Another way – Let 𝒜,ℬ be the sets of strings of of{ }, { }, { }, or bags of fruits labeled by 1, 2, 3,…

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}

Then 𝒜 ⋆ ℬ gives the set of binary strings. For example,

∅ + { , } → { , }{ } + { } → { , }, { , }{ , } + ∅ → { , }

16

Page 40: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

The number of strings of length 𝑛 on alphabet { , }, i.e., 2𝑛.So the EGF is

∑𝑛≥0

2𝑛𝑛! 𝑥

𝑛 = ∑𝑛≥0

1𝑛!(2𝑥)

𝑛 = 𝑒2𝑥.

Another way – Let 𝒜,ℬ be the sets of strings of of{ }, { }, { }, or bags of fruits labeled by 1, 2, 3,…

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}

Then 𝒜 ⋆ ℬ gives the set of binary strings. For example,

∅ + { , } → { , }{ } + { } → { , }, { , }{ , } + ∅ → { , }

16

Page 41: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

The number of strings of length 𝑛 on alphabet { , }, i.e., 2𝑛.So the EGF is

∑𝑛≥0

2𝑛𝑛! 𝑥

𝑛 = ∑𝑛≥0

1𝑛!(2𝑥)

𝑛 = 𝑒2𝑥.

Another way – Let 𝒜,ℬ be the sets of strings of of{ }, { }, { }, or bags of fruits labeled by 1, 2, 3,…

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}

Then 𝒜 ⋆ ℬ gives the set of binary strings. For example,

∅ + { , } → { , }{ } + { } → { , }, { , }{ , } + ∅ → { , }

16

Page 42: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

Let

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = 𝒜 ⋆ ℬ

The exponential generating functions of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = 𝐵(𝑥) = ∑𝑛≥0

1𝑛!𝑥

𝑛 = 𝑒𝑥, 𝐶(𝑥) = 𝐴(𝑥)𝐵(𝑥)

Then the magic happens

[𝑥𝑛]𝐶(𝑥) = [𝑥𝑛]𝐴(𝑥)𝐵(𝑥) = [𝑥𝑛]𝑒3𝑥 = [𝑥𝑛]∑𝑛≥0

(3𝑥)𝑛𝑛! = 3𝑛

𝑛! .

17

Page 43: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

Let

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = 𝒜 ⋆ ℬ

The exponential generating functions of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = 𝐵(𝑥) = ∑𝑛≥0

1𝑛!𝑥

𝑛 = 𝑒𝑥, 𝐶(𝑥) = 𝐴(𝑥)𝐵(𝑥)

Then the magic happens

[𝑥𝑛]𝐶(𝑥) = [𝑥𝑛]𝐴(𝑥)𝐵(𝑥) = [𝑥𝑛]𝑒3𝑥 = [𝑥𝑛]∑𝑛≥0

(3𝑥)𝑛𝑛! = 3𝑛

𝑛! .

17

Page 44: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Binary strings

Let

𝒜 = {∅, { }, { , }, { , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = 𝒜 ⋆ ℬ

The exponential generating functions of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = 𝐵(𝑥) = ∑𝑛≥0

1𝑛!𝑥

𝑛 = 𝑒𝑥, 𝐶(𝑥) = 𝐴(𝑥)𝐵(𝑥)

Then the magic happens

[𝑥𝑛]𝐶(𝑥) = [𝑥𝑛]𝐴(𝑥)𝐵(𝑥) = [𝑥𝑛]𝑒3𝑥 = [𝑥𝑛]∑𝑛≥0

(3𝑥)𝑛𝑛! = 3𝑛

𝑛! .

17

Page 45: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings without restriction

ProblemHow many strings of length 𝑛 on the alphabet { , , } have> 0 and > 0

Such strings forms the set 𝒯 = 𝒜 ⋆ ℬ ⋆ 𝒞,

𝒜 = {{ }, { , }, { , , },…}ℬ = {{ }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The EGFs are

𝑇 (𝑥) = 𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (𝑒𝑥 − 1)2𝑒𝑥 = 𝑒3𝑥 − 2𝑒2𝑥 + 𝑒𝑥.So the answer is

𝑛![𝑥𝑛](∑𝑛≥0

3𝑛𝑥𝑛

𝑛! − 2∑𝑛≥0

2𝑛𝑥𝑛

𝑛! +∑𝑛≥0

𝑥𝑛

𝑛! ) = 3𝑛 − 2𝑛+1 + 1.

18

Page 46: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings without restriction

ProblemHow many strings of length 𝑛 on the alphabet { , , } have> 0 and > 0

Such strings forms the set 𝒯 = 𝒜 ⋆ ℬ ⋆ 𝒞,

𝒜 = {{ }, { , }, { , , },…}ℬ = {{ }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The EGFs are

𝑇 (𝑥) = 𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (𝑒𝑥 − 1)2𝑒𝑥 = 𝑒3𝑥 − 2𝑒2𝑥 + 𝑒𝑥.So the answer is

𝑛![𝑥𝑛](∑𝑛≥0

3𝑛𝑥𝑛

𝑛! − 2∑𝑛≥0

2𝑛𝑥𝑛

𝑛! +∑𝑛≥0

𝑥𝑛

𝑛! ) = 3𝑛 − 2𝑛+1 + 1.

18

Page 47: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings without restriction

ProblemHow many strings of length 𝑛 on the alphabet { , , } have> 0 and > 0

Such strings forms the set 𝒯 = 𝒜 ⋆ ℬ ⋆ 𝒞,

𝒜 = {{ }, { , }, { , , },…}ℬ = {{ }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The EGFs are

𝑇 (𝑥) = 𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (𝑒𝑥 − 1)2𝑒𝑥 = 𝑒3𝑥 − 2𝑒2𝑥 + 𝑒𝑥.

So the answer is

𝑛![𝑥𝑛](∑𝑛≥0

3𝑛𝑥𝑛

𝑛! − 2∑𝑛≥0

2𝑛𝑥𝑛

𝑛! +∑𝑛≥0

𝑥𝑛

𝑛! ) = 3𝑛 − 2𝑛+1 + 1.

18

Page 48: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings without restriction

ProblemHow many strings of length 𝑛 on the alphabet { , , } have> 0 and > 0

Such strings forms the set 𝒯 = 𝒜 ⋆ ℬ ⋆ 𝒞,

𝒜 = {{ }, { , }, { , , },…}ℬ = {{ }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The EGFs are

𝑇 (𝑥) = 𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (𝑒𝑥 − 1)2𝑒𝑥 = 𝑒3𝑥 − 2𝑒2𝑥 + 𝑒𝑥.So the answer is

𝑛![𝑥𝑛](∑𝑛≥0

3𝑛𝑥𝑛

𝑛! − 2∑𝑛≥0

2𝑛𝑥𝑛

𝑛! +∑𝑛≥0

𝑥𝑛

𝑛! ) = 3𝑛 − 2𝑛+1 + 1.18

Page 49: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings with restriction

What if the number of apple needs to be even? Let

𝒜 = {∅, { , }, { , , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The exponential generating functions (EGF) of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = ∑𝑛≥0

𝑥2𝑛

(2𝑛)! =𝑒𝑥 + 𝑒−𝑥

2 , 𝐵(𝑥) = 𝐶(𝑥) = 𝑒𝑥

Then the magic happens again

𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 𝑒2𝑥 = 𝑒3𝑥 + 𝑒𝑥2 = 1

2 (∑𝑛≥0

3𝑛𝑥𝑛

𝑛! + 𝑥𝑛

𝑛! ) .

So the answer is 𝑛![𝑥𝑛]𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (3𝑛 + 1)/2.

19

Page 50: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings with restriction

What if the number of apple needs to be even? Let

𝒜 = {∅, { , }, { , , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The exponential generating functions (EGF) of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = ∑𝑛≥0

𝑥2𝑛

(2𝑛)! = ?

𝑒𝑥 + 𝑒−𝑥

2 , 𝐵(𝑥) = 𝐶(𝑥) = 𝑒𝑥

Then the magic happens again

𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 𝑒2𝑥 = 𝑒3𝑥 + 𝑒𝑥2 = 1

2 (∑𝑛≥0

3𝑛𝑥𝑛

𝑛! + 𝑥𝑛

𝑛! ) .

So the answer is 𝑛![𝑥𝑛]𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (3𝑛 + 1)/2.

19

Page 51: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings with restriction

What if the number of apple needs to be even? Let

𝒜 = {∅, { , }, { , , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The exponential generating functions (EGF) of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = ∑𝑛≥0

𝑥2𝑛

(2𝑛)! =𝑒𝑥 + 𝑒−𝑥

2 , 𝐵(𝑥) = 𝐶(𝑥) = 𝑒𝑥

Then the magic happens again

𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 𝑒2𝑥 = 𝑒3𝑥 + 𝑒𝑥2 = 1

2 (∑𝑛≥0

3𝑛𝑥𝑛

𝑛! + 𝑥𝑛

𝑛! ) .

So the answer is 𝑛![𝑥𝑛]𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (3𝑛 + 1)/2.

19

Page 52: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings with restriction

What if the number of apple needs to be even? Let

𝒜 = {∅, { , }, { , , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The exponential generating functions (EGF) of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = ∑𝑛≥0

𝑥2𝑛

(2𝑛)! =𝑒𝑥 + 𝑒−𝑥

2 , 𝐵(𝑥) = 𝐶(𝑥) = 𝑒𝑥

Then the magic happens again

𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 𝑒2𝑥 = 𝑒3𝑥 + 𝑒𝑥2 = 1

2 (∑𝑛≥0

3𝑛𝑥𝑛

𝑛! + 𝑥𝑛

𝑛! ) .

So the answer is 𝑛![𝑥𝑛]𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (3𝑛 + 1)/2.

19

Page 53: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Ternary strings with restriction

What if the number of apple needs to be even? Let

𝒜 = {∅, { , }, { , , , },…}ℬ = {∅, { }, { , }, { , , },…}𝒞 = {∅, { }, { , }, { , , },…}

The exponential generating functions (EGF) of 𝒜,ℬ,𝒞 are

𝐴(𝑥) = ∑𝑛≥0

𝑥2𝑛

(2𝑛)! =𝑒𝑥 + 𝑒−𝑥

2 , 𝐵(𝑥) = 𝐶(𝑥) = 𝑒𝑥

Then the magic happens again

𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 𝑒2𝑥 = 𝑒3𝑥 + 𝑒𝑥2 = 1

2 (∑𝑛≥0

3𝑛𝑥𝑛

𝑛! + 𝑥𝑛

𝑛! ) .

So the answer is 𝑛![𝑥𝑛]𝐴(𝑥)𝐵(𝑥)𝐶(𝑥) = (3𝑛 + 1)/2.

19

Page 54: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

A fruit password

ProblemWe want an 8-fruit password consisting an even number of ,> 0 , ≤ 3 and unlimited number of .How many such password are possible?

Such passwords form the set of ℱ = 𝒜1 ⋆ 𝒜2 ⋆ ⋯ ⋆ 𝒜10 with

𝒜1 = {∅, { , }, { , , , },…}𝒜2 = {{ }, { , }, { , , },…}𝒜3 = {∅, { }, { , }, { , , }}𝒜4 = {∅, { }, { , }, { , , },…} ,…𝒜10 = {∅, { }, { , }, { , , },…} ,

Thus the EGF of ℱ is

𝐹(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 (𝑒𝑥 − 1)(1 + 𝑥 + 𝑥2

2 + 𝑥3

3! ) 𝑒7𝑥

So the answer is 8![𝑥8]𝐹 (𝑥) = 33847837.

20

Page 55: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

A fruit password

ProblemWe want an 8-fruit password consisting an even number of ,> 0 , ≤ 3 and unlimited number of .How many such password are possible?

Such passwords form the set of ℱ = 𝒜1 ⋆ 𝒜2 ⋆ ⋯ ⋆ 𝒜10 with

𝒜1 = {∅, { , }, { , , , },…}𝒜2 = {{ }, { , }, { , , },…}𝒜3 = {∅, { }, { , }, { , , }}𝒜4 = {∅, { }, { , }, { , , },…} ,…𝒜10 = {∅, { }, { , }, { , , },…} ,

Thus the EGF of ℱ is

𝐹(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 (𝑒𝑥 − 1)(1 + 𝑥 + 𝑥2

2 + 𝑥3

3! ) 𝑒7𝑥

So the answer is 8![𝑥8]𝐹 (𝑥) = 33847837.

20

Page 56: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

A fruit password

ProblemWe want an 8-fruit password consisting an even number of ,> 0 , ≤ 3 and unlimited number of .How many such password are possible?

Such passwords form the set of ℱ = 𝒜1 ⋆ 𝒜2 ⋆ ⋯ ⋆ 𝒜10 with

𝒜1 = {∅, { , }, { , , , },…}𝒜2 = {{ }, { , }, { , , },…}𝒜3 = {∅, { }, { , }, { , , }}𝒜4 = {∅, { }, { , }, { , , },…} ,…𝒜10 = {∅, { }, { , }, { , , },…} ,

Thus the EGF of ℱ is

𝐹(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 (𝑒𝑥 − 1)(1 + 𝑥 + 𝑥2

2 + 𝑥3

3! ) 𝑒7𝑥

So the answer is 8![𝑥8]𝐹 (𝑥) = 33847837.

20

Page 57: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

A fruit password

ProblemWe want an 8-fruit password consisting an even number of ,> 0 , ≤ 3 and unlimited number of .How many such password are possible?

Such passwords form the set of ℱ = 𝒜1 ⋆ 𝒜2 ⋆ ⋯ ⋆ 𝒜10 with

𝒜1 = {∅, { , }, { , , , },…}𝒜2 = {{ }, { , }, { , , },…}𝒜3 = {∅, { }, { , }, { , , }}𝒜4 = {∅, { }, { , }, { , , },…} ,…𝒜10 = {∅, { }, { , }, { , , },…} ,

Thus the EGF of ℱ is

𝐹(𝑥) = 𝑒𝑥 + 𝑒−𝑥

2 (𝑒𝑥 − 1)(1 + 𝑥 + 𝑥2

2 + 𝑥3

3! ) 𝑒7𝑥

So the answer is 8![𝑥8]𝐹 (𝑥) = 33847837.

20

Page 58: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Appendix

Page 59: 8 – Generating Functions Part (2) - Combinatorics 1M020xinca341/doc/combinatorics-2019/lecture-6.pdf · Combinatorics 1M020 Xing Shi Cai 14-02-2019 Department of Mathematics, Uppsala

Self-study guide (for people who missed the class)

• Read Textbook 8.5, 8.6.• Recommended exercises Have a quick look of

• Textbook 8.9, 20–28 (Some solutions here)

21