Section 16 Inclusion/Exclusion

Slides:



Advertisements
Similar presentations
7.5 Inclusion/Exclusion. Definition and Example- 2 sets |A  B| =|A| + |B| - |A ∩ B| Ex1: |A|=9, |B|=11, |A∩B|=5, |A  B| = ?
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Math 106 – Exam #3 - Review Problems 1. (a) (b) (c) (d) A room contains 90 men where 25 are wearing a hat, 34 are wearing a coat, 33 are wearing a pair.
Math for Elementary Teachers
Foundations 30 Mrs. Wirz.  Introduction – Venn Diagrams Students that play sports Students that have a part-time job All students in Mrs. Wirz’s class.
Lecture 3 Operations on Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
This section will discuss the symbolism and concepts of set theory
What is the difference between a line segment and a line?
P ERMUTATIONS AND C OMBINATIONS Homework: Permutation and Combinations WS.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
9.3 Addition Rule. The basic rule underlying the calculation of the number of elements in a union or difference or intersection is the addition rule.
3.1Set Notation Venn Diagrams Venn Diagram is used to illustrate the idea of sets and subsets. Example 1 X  U(b) A  B X U B A U.
10.3 – Using Permutations and Combinations Permutation: The number of ways in which a subset of objects can be selected from a given set of objects, where.
Homework Review notes Complete Worksheet #1. Homework Let A = {a,b,c,d}, B = {a,b,c,d,e}, C = {a,d}, D = {b, c} Describe any subset relationships. 1.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Permutations and Combinations
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
CompSci 102 Discrete Math for Computer Science
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
Sets & venn diagrams; probability
Section 3.1 Sets and their operation. Definitions A set S is collection of objects. These objects are said to be members or elements of the set, and the.
12/13/2015MATH 106, Section 41 Section 4 Permutations Questions about homework? Submit homework!
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
1 Section 6.5 Inclusion/Exclusion. 2 Finding the number of elements in the union of 2 sets From set theory, we know that the number of elements in the.
Counting Principles Multiplication rule Permutations Combinations.
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
Real Number and the number Line. Number System Real numbers: is number that can be positive or negative and have decimal places after the point. Natural.
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
MATH 2311 Section 2.2. Sets and Venn Diagrams A set is a collection of objects. Two sets are equal if they contain the same elements. Set A is a subset.
MDFP Introduction to Mathematics SETS and Venn Diagrams.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Algebra 2 Properties of Real Numbers Lesson 1-2 Goals Goal To graph and order real numbers. To Identity properties of real numbers. Rubric Level 1 –
CPCS 222 Discrete Structures I
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Dr. Ameria Eldosoky Discrete mathematics
Permutations and Combinations
Sets Finite 7-1.
Section 16 Inclusion/Exclusion
How do you compare and use the properties of real numbers?
Counting and Probability Section 12.1: Sets and Counting IBTWW…
CSE 2353 – September 22nd 2003 Sets.
321 Section, 2-7 Natalie Linnell.
Set and Set Operations Grab a sheet from front.
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Algebra 1 Section 1.1.
Permutations and Combinations
MATH 2311 Section 2.2.
Number Talk What is a Number Talk?
Using Permutations and Combinations
Bellwork Practice Packet 10.3 B side #3.
Counting Elements of Disjoint Sets: The Addition Rule
Permutations and Combinations
Standard DA-5.2 Objective: Apply permutations and combinations to find the number of possibilities of an outcome.
Introduction A set is a collection of objects.
Permutations and Combinations
Permutations and Combinations
Using Permutations and Combinations
10.3 – Using Permutations and Combinations
MATH 2311 Section 2.2.
Probability Notes Math 309 August 20.
Section 1.3 Prime Factorization
Presentation transcript:

Section 16 Inclusion/Exclusion Questions about homework? Submit homework! 2/16/2019 MATH 106, Section 16

Set Notation A set is any well-defined collection of objects. U represents the universal set (i.e., the universe). A  B means that A  B represents A  B represents ~A represents #A represents A is a subset of B, that is, every item in A must also be an item in B. (Every set is a subset of U.) the intersection of A and B, that is, the set of all items that are in both A and B. the union of A and B, that is, the set of all items that are in at least one of A or B. the complement of A, that is, the set of all items that are not in A. the size of A, that is, the number of items that are in A. 2/16/2019 MATH 106, Section 16

#1 Consider a universal set consisting of the positive integers up to (and including) 12, that is, U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}. We define the subsets A = multiples of 2 B = multiples of 3 C = multiples of 4 D = multiples of 5 Use set notation to display each subset; then find each of the following: #A = #B = #C = #D = ~A = ~B = ~C = ~D = {2, 4, 6, 8, 10, 12} {3, 6, 9, 12} {4, 8, 12} {5, 10} 2/16/2019 MATH 106, Section 16

Consider a universal set consisting of the positive integers up to (and including) 12, that is, U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}. We define the subsets A = multiples of 2 B = multiples of 3 C = multiples of 4 D = multiples of 5 Use set notation to display each subset; then find each of the following: #A = #B = #C = #D = ~A = ~B = ~C = ~D = {2, 4, 6, 8, 10, 12} {3, 6, 9, 12} {4, 8, 12} {5, 10} 6 4 3 2 {1, 3, 5, 7, 9, 11} {1, 2, 4, 5, 7. 8, 10, 11} {1, 2, 3, 5, 6, 7, 9, 10, 11} {1, 2, 3, 4, 6, 7, 8, 9, 11, 12} 2/16/2019 MATH 106, Section 16

AB = AC = BD = AB = AC = BD = In each section of the Venn diagrams displayed, list the members of the set that section represents. {6, 12} {4, 8, 12} { } or  {2, 3, 4, 6, 8, 9, 10, 12} {2, 4, 6, 8, 10, 12} {3, 5, 6, 9, 10, 12} 1 5 7 11 2 4 8 10 6 12 3 9 A B 2/16/2019 MATH 106, Section 16

1 3 5 7 9 11 2 6 10 4 8 12 A C 1 2 4 7 8 11 3 6 9 12 5 10 B D 2/16/2019 MATH 106, Section 16

Complete each of the following formulas, and then verify that each is true: #(AB) = #A + #B #(AC) = #A + #C #(BD) = #B + #D – #(AB) 8 6 4 2 – #(AC) 6 6 3 3 – #(BD) 6 4 2 2/16/2019 MATH 106, Section 16

#2 Consider a universal set consisting of the positive integers up to (and including) 30, that is, U = {1, 2, …, 29, 30}. We define the subsets A = multiples of 2 B = multiples of 3 C = multiples of 5 Use set notation to display each subset. In each section of the Venn diagram displayed, list the members of the set that section represents. Then find each of the following: {2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30} {3, 6, 9, 12, 15, 18, 21, 24, 27, 30} {5, 10, 15, 20, 25, 30} #A = #B = #C = #(AB) = #(AC) = #(BC) = #(ABC) = 15 10 6 2/16/2019 MATH 106, Section 16

1 7 11 13 17 19 23 29 2 4 8 14 6 12 18 24 3 9 21 27 16 22 26 28 30 A 10 20 15 B 5 25 C 2/16/2019 MATH 106, Section 16

Complete the following formula, and then verify that it is true: #(ABC) = #A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC) 15 10 6 5 3 2 1 This is 22, which is what we count for ABC from the Venn diagram. #A = #B = #C = #(AB) = #(AC) = #(BC) = #(ABC) = 15 10 6 5 3 2 1 2/16/2019 MATH 106, Section 16

U = {1, 2, …, 29, 30} A = multiples of 2 B = multiples of 3 C = multiples of 5 Note the transition from words to set notation and vice versa: = multiples of each (all) of 2 and 3 and 5 = multiples of (at least) one of 2 or 3 or 5 = multiples of none of 2 and 3 and 5 = not a multiple of (at least) one of 2 or 3 or 5 ABC ABC ~(ABC) OR (~A)(~B)(~C) ~(ABC) OR (~A)(~B)(~C)

For next class, do the following problems in the Section 16 Homework: Problem #3: Use #U – #(AB) = #U – [#A + #B – #(AB)] freshmen taking mathematics all freshmen freshmen taking computer science Problem #4: Use #(ABC) = #A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC) children who play tennis children who play soccer children who play baseball Problem #5: Use #U – #(AB) = #U – [#A + #B – #(AB)] all 5-card hands from 52 cards all 5-card hands from the 48 non-king cards all 5-card hands from the 48 non-ace cards all 5-card hands from the 44 non-ace and non-king cards 2/16/2019 MATH 106, Section 16

A = the set of arrangements where the letters E, F are together #3 Let the set of all different possible arrangements (permutations) of the letters EFNOPZ be the universal set. We define the subsets A = the set of arrangements where the letters E, F are together B = the set of arrangements where the letters N, O, P are together (a) (b) Find the size of the universe. #U = 6! = 720 Describe in words each of the sets listed. ~A ~B AB the set of arrangements where the letters E, F are not together the set of arrangements where the letters N, O, P are not together 2/16/2019 MATH 106, Section 16

A = the set of arrangements where the letters E, F are together Let the set of all different possible arrangements (permutations) of the letters EFNOPZ be the universal set. We define the subsets A = the set of arrangements where the letters E, F are together B = the set of arrangements where the letters N, O, P are together (a) (b) Find the size of the universe. #U = 6! = 720 Describe in words each of the sets listed. ~A ~B AB the set of arrangements where the letters E, F are not together the set of arrangements where the letters N, O, P are not together the set of arrangements where the letters E, F are together and the letters N, O, P are together 2/16/2019 MATH 106, Section 16

Find each of the following: #A = #B = 5!  2! = 240 4!  3! = 144 the set of arrangements where the letters E, F are not together or the letters N, O, P are not together the set of arrangements where the letters E, F are together or the letters N, O, P are together the set of arrangements where the letters E, F are not together and the letters N, O, P are not together (c) (d) Find each of the following: #A = #B = 5!  2! = 240 4!  3! = 144 Find the number of arrangements where the letters E, F are together and the letters N, O, P are together. #(AB) = 3!  2!  3! = 72 2/16/2019 MATH 106, Section 16

(e) (f) Find the number of arrangements where the letters E, F are together or the letters N, O, P are together. #(AB) = #A + #B – #(AB) = 240 + 144 – 72 = 312 Find the number of arrangements where the letters E, F are not together and the letters N, O, P are not together. #~(AB) = #U – #(AB) = 720 – 312 = 408 2/16/2019 MATH 106, Section 16

B = the set of all arrangements where the letters O,P,Q,R are together #4 Let the set of all different possible arrangements (permutations) of the letters EFGHIOPQRUVW be the universal set. We define the subsets A = the set of all arrangements where the letters E,F,G,H,I are together B = the set of all arrangements where the letters O,P,Q,R are together C = the set of all arrangements where the letters U,V,W are together (a) (b) Find the size of the universe. #U = 12! = 479,001,600 Describe in words each of the sets listed. ~A ~B ~C set of arrangements where letters E, F, G, H, I are not together set of arrangements where letters O, P, Q, R are not together 2/16/2019 MATH 106, Section 16

B = the set of all arrangements where the letters O,P,Q,R are together Let the set of all different possible arrangements (permutations) of the letters EFGHIOPQRUVW be the universal set. We define the subsets A = the set of all arrangements where the letters E,F,G,H,I are together B = the set of all arrangements where the letters O,P,Q,R are together C = the set of all arrangements where the letters U,V,W are together (a) (b) Find the size of the universe. #U = 12! = 479,001,600 Describe in words each of the sets listed. ~A ~B ~C set of arrangements where letters E, F, G, H, I are not together set of arrangements where letters O, P, Q, R are not together set of arrangements where letters U, V, W are not together 2/16/2019 MATH 106, Section 16

AB AC BC ABC ABC the set of arrangements where the letters E, F, G, H, I are together and the letters O, P, Q, R are together the set of arrangements where the letters E, F, G, H, I are together and the letters U, V, W are together the set of arrangements where the letters O, P, Q, R are together and the letters U, V, W are together the set of arrangements where the letters E, F, G, H, I are together and the letters O, P, Q, R are together and the letters U, V, W are together the set of arrangements where the letters E, F, G, H, I are together or the letters O, P, Q, R are together or the letters U, V, W are together 2/16/2019 MATH 106, Section 16

Find each of the following: #A = #B = #C = #(AB) = #(AC) = #(BC) = #(ABC) = 8!  5! = 4,838,400 9!  4! = 8,709,120 10!  3! = 21,772,800 5!  5!  4! = 345,600 6!  5!  3! = 518,400 7!  4!  3! = 725,760 3!  5!  4!  3! = 103,680 Find the number of arrangements where the letters E, F, G, H, I are together or the letters O, P, Q, R are together or the letters U, V, W are together. 2/16/2019 MATH 106, Section 16

(d) Find the number of arrangements where the letters E, F, G, H, I are together or the letters O, P, Q, R are together or the letters U, V, W are together. #(ABC) = #A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC) = 4,838,400 + 8,709,120 + 21,772,800 – 345,600 – 518,400 – 725,760 + 103,680 = 33,834,240 2/16/2019 MATH 106, Section 16

do Problem #8 in the Section 16 Homework: For next class, do Problem #5 and the short essay at the end on the Section 16 Handout (to be submitted in a future class), and do Problem #8 in the Section 16 Homework: In Problem #8, use #U – #(AB) = #U – [#A + #B – #(AB)] How many are both a perfect square and a perfect cube? perfect squares perfect cubes 12 = 1 13 = 1 22 = 4 23 = 8 32 = 9 33 = 27 How many of these are there? ( )2 = 1,000,000 How many of these are there? ( )3 = 1,000,000 As time permits, let’s begin work on Problem #5 on the Section 16 Handout.  2/16/2019 MATH 106, Section 16

A = the set of arrangements where the digits 0, 1 are together #5 Let the set of all different possible arrangements (permutations) of the digits 0123456789 be the universal set. We define the subsets A = the set of arrangements where the digits 0, 1 are together B = the set of arrangements where the digits 5, 6 are together (a) (b) Find the size of the universe. #U = 10! = 3,628,800 Describe in words each of the sets listed. ~A ~B AB the set of arrangements where the digits 0, 1 are not together the set of arrangements where the digits 5, 6 are not together 2/16/2019 MATH 106, Section 16

A = the set of arrangements where the digits 0, 1 are together Let the set of all different possible arrangements (permutations) of the digits 0123456789 be the universal set. We define the subsets A = the set of arrangements where the digits 0, 1 are together B = the set of arrangements where the digits 5, 6 are together (a) (b) Find the size of the universe. #U = 10! = 3,628,800 Describe in words each of the sets listed. ~A ~B AB the set of arrangements where the digits 0, 1 are not together the set of arrangements where the digits 5, 6 are not together the set of arrangements where the digits 0, 1 are together and the digits 5, 6 are together 2/16/2019 MATH 106, Section 16

Find each of the following: #A = #B = 9!  2! = 725,760 9!  2! = the set of arrangements where the digits 0, 1 are not together or the digits 5, 6 are not together the set of arrangements where the digits 0, 1 are together or the digits 5, 6 are together the set of arrangements where the digits 0, 1 are not together and the digits 5, 6 are not together (c) (d) Find each of the following: #A = #B = 9!  2! = 725,760 9!  2! = 725,760 Find the number of arrangements where the digits 0, 1 are together and the digits 5, 6 are together. #(AB) = 8!  2!  2! = 161,280 2/16/2019 MATH 106, Section 16

(e) (f) Find the number of arrangements where the digits 0, 1 are together or the digits 5, 6 are together. #(AB) = #A + #B – #(AB) = 725,760 + 725,760 – 161,280 = 1,290,240 Find the number of arrangements where the digits 0, 1 are not together and the digits 5, 6 are not together. #~(AB) = #U – #(AB) = 3,628,800 – 1,290,240 = 2,338,560 2/16/2019 MATH 106, Section 16

A = the set of integers where the digit 5 does not appear #6 Let the set of all integers from 000000 to 999999 be the universal set, where we use leading zeros as needed, i.e., we write integers such as 538 as 000538. We define the subsets A = the set of integers where the digit 5 does not appear B = the set of integers where the digit 6 does not appear (a) (b) Find the size of the universe. #U = 106 = 1,000,000 Describe in words each of the sets listed. ~A ~B the set of integers where the digit 5 appears at least once the set of integers where the digit 6 appears at least once 2/16/2019 MATH 106, Section 16

the set of integers where neither of the digits 5 and 6 appear AB ~(AB) AB ~(AB) the set of integers where neither of the digits 5 and 6 appear the set of integers where at least one of the digits 5 and 6 appears at least once the set of integers where at least one of the digits 5 and 6 does not appear the set of integers where each of the digits 5 and 6 appears at least once (c) Find each of the following: #A = #B = 96 = 531,441 96 = 531,441 2/16/2019 MATH 106, Section 16

#U – #(A  B) = #U – [#A + #B – #(A  B)] = (d) (e) Find the number of integers where neither of the digits 5 and 6 appear. #(AB) = 86 = 262,144 Find the number of integers where the digits 5 and 6 each appears at least once. #~(A  B) = #U – #(A  B) = #U – [#A + #B – #(A  B)] = 106 – [96 + 96 – 86] = 199,262 2/16/2019 MATH 106, Section 16

A = the set of integers divisible by 10 #7 Let the set of all integers from 1 to 1000 be the universal set. We define the subsets A = the set of integers divisible by 10 B = the set of integers divisible by 15 C = the set of integers divisible by 25 (a) (b) Find the size of the universe. #U = 1000 Describe in words each of the sets listed. ~A ~B ~C set of integers not divisible by 10 set of integers not divisible by 15 set of integers not divisible by 25 2/16/2019 MATH 106, Section 16

the set of integers divisible by both 10 and 15 AB AC BC ABC ABC the set of integers divisible by both 10 and 15 the set of integers divisible by both 10 and 25 the set of integers divisible by both 15 and 25 the set of integers divisible by each of 10, 15, and 25 the set of integers divisible by at least one of of 10, 15, and 25 2/16/2019 MATH 106, Section 16

Find each of the following: #A = #B = #C = #(AB) = 100 110 = 10, 210 = 20, 310 = 30, …, 10010 = 1000 66 115 = 15, 215 = 30, 315 = 45, …, 6615 = 990, 6715 = 1005 40 125 = 25, 225 = 50, 325 = 75, …, 4025 = 1000 33 10 = 25 15 = 35 Integers divisible by each of 10 and 15 must be divisible by 235 = 30 130 = 30, 230 = 60, 330 = 90, …, 3330 = 990, 3430 = 1020 2/16/2019 MATH 106, Section 16

Integers divisible by each of 10 and 25 must be divisible by 255 = #(BC) = #(ABC) = 20 10 = 25 25 = 55 Integers divisible by each of 10 and 25 must be divisible by 255 = 50 150 = 50, 250 = 100, 350 = 150, …, 2050 = 1000 13 15 = 35 25 = 55 Integers divisible by each of 15 and 25 must be divisible by 355 = 75 175 = 75, 275 = 150, 375 = 225, …, 1375 = 975, 1475 = 1050 6 10 = 25 15 = 35 25 = 55 Integers divisible by all of 10, 15, and 25 must be divisible by 2355 = 150 2/16/2019 MATH 106, Section 16

(d) (e) Find the number of integers which are divisible by all of 10, 15, or 25. #(ABC) = 6 Find the number of integers which are divisible by at least one of 10, 15, or 25. #(ABC) = #A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC) = 100 + 66 + 40 – 33 – 20 – 13 + 6 = 146 2/16/2019 MATH 106, Section 16

(f) Find the number of integers which are divisible by none of 10, 15, or 25. #~(ABC) = #U – #(ABC) = 1000 – 146 = 854 2/16/2019 MATH 106, Section 16

For next class, do the following problems in the Section 16 Homework: integers divisible by 15 integers divisible by 12 integers divisible by 18 Problem #6: Use #U – #(ABC) = #U – [#A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC)] You will need to know that 12 = 223, 15 = 35, 18 = 233. integers with no digit 4 integers with no digit 3 integers with no digit 5 Problem #7: Use #U – #(ABC) = #U – [#A + #B + #C – #(AB) – #(AC) – #(BC) + #(ABC)] 2/16/2019 MATH 106, Section 16