• 沒有找到結果。

Discrete Mathematics

N/A
N/A
Protected

Academic year: 2022

Share "Discrete Mathematics"

Copied!
30
0
0

加載中.... (立即查看全文)

全文

(1)

Discrete Mathematics

WEN-CHING LIEN Department of Mathematics National Cheng Kung University

2008

(2)

5.3: Onto Functions: Stirling Numbers of the Second Kind

Definition (5.9)

A function f :AB, is called onto, or surjective, if f(A) =B that is, if for all bB there is at least one aA with f(a) =b.

Example (5.22)

If A= {x,y,z}and B= {1,2}, then all functions f :AB, are onto except

f1= {(x,1), (y,1), (z,1)},and f2= {(x,2), (y,2), (z,2)},the constant functions.

So there are|B||A|−2=23−2=6 onto functions from A to B.

(3)

5.3: Onto Functions: Stirling Numbers of the Second Kind

Definition (5.9)

A function f :AB, is called onto, or surjective, if f(A) =B that is, if for all bB there is at least one aA with f(a) =b.

Example (5.22)

If A= {x,y,z}and B= {1,2}, then all functions f :AB, are onto except

f1= {(x,1), (y,1), (z,1)},and f2= {(x,2), (y,2), (z,2)},the constant functions.

So there are|B||A|−2=23−2=6 onto functions from A to B.

(4)

5.3: Onto Functions: Stirling Numbers of the Second Kind

Definition (5.9)

A function f :AB, is called onto, or surjective, if f(A) =B that is, if for all bB there is at least one aA with f(a) =b.

Example (5.22)

If A= {x,y,z}and B= {1,2}, then all functions f :AB, are onto except

f1= {(x,1), (y,1), (z,1)},and f2= {(x,2), (y,2), (z,2)},the constant functions.

So there are|B||A|−2=23−2=6 onto functions from A to B.

(5)

5.3: Onto Functions: Stirling Numbers of the Second Kind

Definition (5.9)

A function f :AB, is called onto, or surjective, if f(A) =B that is, if for all bB there is at least one aA with f(a) =b.

Example (5.22)

If A= {x,y,z}and B= {1,2}, then all functions f :AB, are onto except

f1= {(x,1), (y,1), (z,1)},and f2= {(x,2), (y,2), (z,2)},the constant functions.

So there are|B||A|−2=23−2=6 onto functions from A to B.

(6)

5.3: Onto Functions: Stirling Numbers of the Second Kind

Definition (5.9)

A function f :AB, is called onto, or surjective, if f(A) =B that is, if for all bB there is at least one aA with f(a) =b.

Example (5.22)

If A= {x,y,z}and B= {1,2}, then all functions f :AB, are onto except

f1= {(x,1), (y,1), (z,1)},and f2= {(x,2), (y,2), (z,2)},the constant functions.

So there are|B||A|−2=23−2=6 onto functions from A to B.

(7)

Numbers of onto function from A to B:

For any sets A, B with |A| =m and|B| =n,there are

n n

nmn−1n (n−1)m+ n−2n (n−2)m− · · · +(−1)n−2 n2

2m+ (−1)n−1 n1

1m=Pn−1

k=0(−1)n−k n−kn (n−k)m

=

n

X

k=0

(−1)n−k

 n nk



(n−k)m onto functions from A to B.

(8)

Numbers of onto function from A to B:

For any sets A, B with |A| =m and|B| =n,there are

n n

nmn−1n (n−1)m+ n−2n (n−2)m− · · · +(−1)n−2 n2

2m+ (−1)n−1 n1

1m=Pn−1

k=0(−1)n−k n−kn (n−k)m

=

n

X

k=0

(−1)n−k

 n nk



(n−k)m

onto functions from A to B.

(9)

Numbers of onto function from A to B:

For any sets A, B with |A| =m and|B| =n,there are

n n

nmn−1n (n−1)m+ n−2n (n−2)m− · · · +(−1)n−2 n2

2m+ (−1)n−1 n1

1m=Pn−1

k=0(−1)n−k n−kn (n−k)m

=

n

X

k=0

(−1)n−k

 n nk



(n−k)m

onto functions from A to B.

(10)

Numbers of onto function from A to B:

For any sets A, B with |A| =m and|B| =n,there are

n n

nmn−1n (n−1)m+ n−2n (n−2)m− · · · +(−1)n−2 n2

2m+ (−1)n−1 n1

1m=Pn−1

k=0(−1)n−k n−kn (n−k)m

=

n

X

k=0

(−1)n−k

 n nk



(n−k)m onto functions from A to B.

(11)

Rule:

For mn there arePn

k=0(−1)n−k n−kn (n−k)m ways to distribute m distinct objects into n numbered(but otherwise identical) containers with no container left empty.

Removing the numbers on the containers, so that they are now identical in appearance, we find that one distribution into these n (nonempty) identical containers corresponds with n!such distributions into the numbered containers.

...continued

(12)

Rule:

For mn there arePn

k=0(−1)n−k n−kn (n−k)m ways to distribute m distinct objects into n numbered(but otherwise identical) containers with no container left empty.

Removing the numbers on the containers, so that they are now identical in appearance, we find that one distribution into these n (nonempty) identical containers corresponds with n!such distributions into the numbered containers.

...continued

(13)

So the number of ways in which it is possible to distribute the m distinct objects into n identical containers, with no container left empty, is

1 n!

n

X

k=0

(−1)n−k

 n nk



(n−k)m

This will be denoted by S(m,n)and is called a Stirling number of the second kind.

We note that for |A| =mn= |B|,there are n! ·S(m,n)onto functions from A to B.

(14)

So the number of ways in which it is possible to distribute the m distinct objects into n identical containers, with no container left empty, is

1 n!

n

X

k=0

(−1)n−k

 n nk



(n−k)m

This will be denoted by S(m,n)and is called a Stirling number of the second kind.

We note that for |A| =mn= |B|,there are n! ·S(m,n)onto functions from A to B.

(15)

So the number of ways in which it is possible to distribute the m distinct objects into n identical containers, with no container left empty, is

1 n!

n

X

k=0

(−1)n−k

 n nk



(n−k)m

This will be denoted by S(m,n)and is called a Stirling number of the second kind.

We note that for |A| =mn= |B|,there are n! ·S(m,n)onto functions from A to B.

(16)

So the number of ways in which it is possible to distribute the m distinct objects into n identical containers, with no container left empty, is

1 n!

n

X

k=0

(−1)n−k

 n nk



(n−k)m

This will be denoted by S(m,n)and is called a Stirling number of the second kind.

We note that for |A| =mn= |B|,there are n! ·S(m,n)onto functions from A to B.

(17)

Example (5.27) For mn,Pn

i=1S(m,i)is the number of possible ways to distribute m distinct objects into n identical containers with empty containers allowed.From the fourth row of Table 5.1

(18)

we see that there are 1+7+6=14 ways to distribute the

(19)

we see that there are 1+7+6=14 ways to distribute the

(20)

Theorem (5.3)

Let m, n be positive integers with 1<nm.Then S(m+1,n) =S(m,n−1) +nS(m,n).

(21)

Theorem (5.3)

Let m, n be positive integers with 1<nm.Then S(m+1,n) =S(m,n−1) +nS(m,n).

(22)

Proof:

Let A= {a1,a2, ...,am,am+1}Then S(m+1,n)counts the number of ways in which the objects of A can be

distributed among n identical containers, with no container left empty.

1 am+1is in a container by itself.

(i) There are S(m,n1)ways of distributing a1,a2, ...,am

objects among n1 identical containers.

(ii) Placing am+1in the remaining empty (nth) container results in S(m,n1)ways counted in S(m+1,n).

2 am+1is in the same container as another object.

(23)

Proof:

Let A= {a1,a2, ...,am,am+1}Then S(m+1,n)counts the number of ways in which the objects of A can be

distributed among n identical containers, with no container left empty.

1 am+1is in a container by itself.

(i) There are S(m,n1)ways of distributing a1,a2, ...,am

objects among n1 identical containers.

(ii) Placing am+1in the remaining empty (nth) container results in S(m,n1)ways counted in S(m+1,n).

2 am+1is in the same container as another object.

(24)

Proof:

Let A= {a1,a2, ...,am,am+1}Then S(m+1,n)counts the number of ways in which the objects of A can be

distributed among n identical containers, with no container left empty.

1 am+1is in a container by itself.

(i) There are S(m,n1)ways of distributing a1,a2, ...,am

objects among n1 identical containers.

(ii) Placing am+1in the remaining empty (nth) container results in S(m,n1)ways counted in S(m+1,n).

2 am+1is in the same container as another object.

(25)

Proof:

Let A= {a1,a2, ...,am,am+1}Then S(m+1,n)counts the number of ways in which the objects of A can be

distributed among n identical containers, with no container left empty.

1 am+1is in a container by itself.

(i) There are S(m,n1)ways of distributing a1,a2, ...,am

objects among n1 identical containers.

(ii) Placing am+1in the remaining empty (nth) container results in S(m,n1)ways counted in S(m+1,n).

2 am+1is in the same container as another object.

(26)

Proof:

Let A= {a1,a2, ...,am,am+1}Then S(m+1,n)counts the number of ways in which the objects of A can be

distributed among n identical containers, with no container left empty.

1 am+1is in a container by itself.

(i) There are S(m,n1)ways of distributing a1,a2, ...,am

objects among n1 identical containers.

(ii) Placing am+1in the remaining empty (nth) container results in S(m,n1)ways counted in S(m+1,n).

2 am+1is in the same container as another object.

(27)

(i) There are S(m,n)ways of distributing a1,a2, ...,amobjects among n identical containers.

(ii) Placing am+1in the n distinct container results in nS(m,n) ways counted in S(m+1,n).

Totally,S(m+1,n) =S(m,n−1) +nS(m,n).

(28)

(i) There are S(m,n)ways of distributing a1,a2, ...,amobjects among n identical containers.

(ii) Placing am+1in the n distinct container results in nS(m,n) ways counted in S(m+1,n).

Totally,S(m+1,n) =S(m,n−1) +nS(m,n).

(29)

(i) There are S(m,n)ways of distributing a1,a2, ...,amobjects among n identical containers.

(ii) Placing am+1in the n distinct container results in nS(m,n) ways counted in S(m+1,n).

Totally,S(m+1,n) =S(m,n−1) +nS(m,n).

(30)

Thank you.

參考文獻

相關文件

♦ The action functional does not discriminate collision solutions from classical solutions...

An n×n square is called an m–binary latin square if each row and column of it filled with exactly m “1”s and (n–m) “0”s. We are going to study the following question: Find

More precisely, it is the problem of partitioning a positive integer m into n positive integers such that any of the numbers is less than the sum of the remaining n − 1

The purpose of this research is to study a tiling problem: Given an m × n chessboard, how many ways are there to tile the chessboard with 1 × 2 dominoes and also ”diagonal”

The existence and the uniqueness of the same ratio points for given n and k.. The properties about geometric measurement for given n

[r]

Al atoms are larger than N atoms because as you trace the path between N and Al on the periodic table, you move down a column (atomic size increases) and then to the left across

A subgroup N which is open in the norm topology by Theorem 3.1.3 is a group of norms N L/K L ∗ of a finite abelian extension L/K.. Then N is open in the norm topology if and only if