140 likes | 641 Views
Chapter 6 The principle of inclusion and exclusion. 6.1 排容原則 (the principle of inclusion and exclusion) 6.2 亂序 (derangements) 6.3 城堡多項式 (the rook polynomial). 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.
E N D
Chapter 6 The principle of inclusion and exclusion • 6.1 排容原則 (the principle of inclusionand exclusion) • 6.2 亂序(derangements) • 6.3 城堡多項式 (the rook polynomial)
6.1 排容原則 Determine the number of positive integers n , 1n 30, that are divisible by 2, 3, or 5. Ans: 15+10+6-5-3-2+1=22
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
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.
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.2 亂序(derangements) 例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?
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. 6!-4!-5!+3! 例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.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 rk denote the number of ways of placing k nontaking rooks on the board. r0 = 1 r1 = 4 r2 = 3 R(x) = 1 +4x+3x2
6.3 城堡多項式 (the rook polynomial) Expansion formula:
6.3 城堡多項式 (the rook polynomial) Given a chessboard C, find the rook polynomial of C.