Exam 8: Advanced Counting Techniques

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Suppose that A=B=C=100,AB=60,AC=50,BC=40, and ABC=175| A | = | B | = | C | = 100 , | A \cap B | = 60 , | A \cap C | = 50 , | B \cap C | = 40 , \text { and } | A \cup B \cup C | = 175 How many elements are in ABC?A \cap B \cap C ?

Free
(Essay)
4.8/5
(37)
Correct Answer:
Verified

By the principle of inclusion-exclusion ABC=A+B+CABACBC+ABC| A \cup B \cup C | = | A | + | B | + | C | - | A \cap B | - | A \cap C | - | B \cap C | + | A \cap B \cap C | .
Hence 175=100+100+100-60-50-40+ ABC| A \cap B \cap C | . Therefore ABC| A \cap B \cap C | =175-150=25 .

How many positive integers not exceeding 1000 are not divisible by either 4 or 6?

Free
(Essay)
4.9/5
(39)
Correct Answer:
Verified

The number of positive integers not exceeding 1000 that are not divisible by either 4 or 6 equals 1000 1000/41000/6+1000/12=1000250166+83=667\lfloor 1000 / 4 \rfloor - \lfloor 1000 / 6 \rfloor + \lfloor 1000 / 12 \rfloor = 1000 - 250 - 166 + 83 = 667 . Here we used the fact that the integers divisible by both 4 and 6 are those divisible by 12 .

Find the solution of the recurrence relation an=3an1, with a0=2a _ { n } = 3 a _ { n - 1 } , \text { with } a _ { 0 } = 2

Free
(Essay)
4.8/5
(28)
Correct Answer:
Verified

By iteration we find that an=3an1=3(3an2)=32an2==3na0=23na _ { n } = 3 a _ { n - 1 } = 3 \left( 3 a _ { n - 2 } \right) = 3 ^ { 2 } a _ { n - 2 } = \cdots = 3 ^ { n } a _ { 0 } = 2 \cdot 3 ^ { n } . This can be verified using mathematical induction.

List the derangements of the set {1, 2, 3, 4}.

(Essay)
4.8/5
(33)

How many ways are there to assign six jobs to four employees so that every employee is assigned at least one job?

(Essay)
4.9/5
(30)

How many onto functions are there from a set with six elements to a set with four elements?

(Essay)
4.9/5
(33)

Find the solution of the linear homogeneous recurrence relation an=7an16an2 with a0=1 and a _ { n } = 7 a _ { n - 1 } - 6 a _ { n - 2 } \text { with } a _ { 0 } = - 1 \text { and } a1 = 4.

(Essay)
4.8/5
(31)

How many positive integers not exceeding 1000 are not divisible by 4, 6, or 9?

(Essay)
4.9/5
(31)

Use generating functions to solve the recurrence relation ak=5ak1a _ { k } = 5 a _ { k - 1 } =1,2,3, ... , with initial condition a0=3

(Essay)
4.7/5
(26)

Find a recurrence relation and initial condition for the number of fruit flies in a jar if there are 12 flies initially and every week there are six times as many flies in the jar as there were the previous week.

(Essay)
4.8/5
(27)

Suppose that f(n) satisfies the divide-and-conquer relation f(n)=2f(n/3)+5 and f(1)=7f ( n ) = 2 f ( n / 3 ) + 5 \text { and } f ( 1 ) = 7 What is f(81)?

(Essay)
4.7/5
(27)

Suppose that f(n)f ( n ) satisfies the divide-and-conquer recurrence relation f(n)=3f(n/4)+n2/8 with f(1)=2f ( n ) = 3 f ( n / 4 ) + n ^ { 2 } / 8 \text { with } f ( 1 ) = 2 What is f(64)f ( 64 ) ?

(Essay)
4.7/5
(32)

How many permutations are there of the digits in the string 12345 that leave 3 fixed but leave no other integer fixed? (For instance, 24351 is such a permutation.)

(Essay)
4.8/5
(39)

(a) Find a recurrence relation for the number of ways to climb n stairs if stairs can be climbed two or three at a time. (b) What are the initial conditions? (c) How many ways are there to climb eight stairs?

(Essay)
4.8/5
(34)

What is the solution to the recurrence relation an=8an1+9an2 if a0=3 and a1=7a _ { n } = 8 a _ { n - 1 } + 9 a _ { n - 2 } \text { if } a _ { 0 } = 3 \text { and } a _ { 1 } = 7

(Essay)
4.7/5
(32)

Find a generating function for the sequence 2, 3, 4, 5, . . ..

(Essay)
4.8/5
(31)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)