Download presentation
Presentation is loading. Please wait.
1
1 Chapter 6 The principle of inclusion and exclusion 6.1 排容原則 (the principle of inclusion and exclusion) 6.2 亂序 (derangements) 6.3 城堡多項式 (the rook polynomial)
2
2 6.1 排容原則 Determine the number of positive integers n, 1 n 30, that are divisible by 2, 3, or 5. Ans: 15+10+6-5-3-2+1=22
3
3 6.1 排容原則 例 1.(a) Find the number of integers between 1 and 250 that are not divisible by any of the integers 2, 3, 5, and 7. (b) the number of integers that not divisible by 2 nor by 7 but are divisible by 5
4
4 6.1 排容原則 例 2.Find the number of r-digit quaternary sequences in which each of the three digits 1, 2, and 3 appears at least once.
5
5 6.2 亂序 (derangements) A permutation of these integers is said to be a derangement of the integers if no integer appears in its natural position.
6
6 6.2 亂序 (derangements)
7
7 例 1.Let n books be distributed to n children. The books are returned and distributed to the children again later on. In how many ways can the books be distributed so that no child will get the same book twice? 例 2.In how many ways can the integers 1, 2, 3, 4, 5, 6, 7, 8, and 9 be permuted such that no odd integer will be in its natural position?
8
8 6.2 亂序 (derangements) 例 3.Find the number of permutations of the letters a, b, c, d, e, and f in which neither the pattern ace nor the pattern fd appears. 例 4.In how many ways can the letters x, x, x, x, y, y, y, z, and z be arranged so that all the letters of the same kind are not in a single block? 6!-4!-5!+3!
9
9 6.3 城堡多項式 (the rook polynomial) The problem of nontaking rooks: a rook is a chessboard piece which “captures” on both rows and column Given a chessboard, let r k denote the number of ways of placing k nontaking rooks on the board. r 0 = 1 r 1 = 4 r 2 = 3 R(x) = 1 +4x+3x 2
10
10 6.3 城堡多項式 (the rook polynomial) Expansion formula:
11
11 6.3 城堡多項式 (the rook polynomial)
12
12 6.3 城堡多項式 (the rook polynomial)
13
13 6.3 城堡多項式 (the rook polynomial) Given a chessboard C, find the rook polynomial of C.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.