Docsity

Discrete Math Homework 7: Phone Numbers, Binary Strings, Guest List, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CS173: Discrete Mathematical Structures
Fall 2005
Homework #7
Due 10/23/05, 8a
1. Suppose the last four digits of a telephone number must include at least one
repeated digit. How many such numbers are there?
2. The following problems concern the set of binary strings of length 8 (each
character is either 0 or 1).
a. How many such strings are there?
b. How many begin and end with 0?
c. How many begin or end with 0?
d. How many have 1 as the second digit?
e. How many begin with 111?
f. How many contain exactly one 0?
g. How many begin with 10 or have a 0 as the third digit?
h. How many contain exactly seven 1s?
i. How many contain 2 or more 0s?
3. How many numbers must be chosen from the set {2,4,6,8,10,12,14,16,18,20} to
guarantee that at least one pair adds up to 22?
4. Suppose a hostess wants to invite 6 dinner guests from a list of 14 friends.
a. In how many ways can she choose her guest list?
b. In how many ways can she choose her guest list of 6 of them are boring
and 6 of them are interesting, and she wants to have at least one of each?
c. In how many ways can she choose her guests if two of her friends dislike
each other and neither will come if the other is present?
d. In how many ways can she choose her guests if two of her friends are very
fond of each other and one won’t come without the other?
e. In how many ways can she seat her 6 friends around a round table? Two
seating configurations are considered to be different if one configuration
cannot be created from another by rotating the table (or the seats around
the table).

Partial preview of the text

Download Discrete Math Homework 7: Phone Numbers, Binary Strings, Guest List and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CS173: Discrete Mathematical Structures

Fall 2005

Homework

Due 10/23/05, 8a

  1. Suppose the last four digits of a telephone number must include at least one repeated digit. How many such numbers are there?
  2. The following problems concern the set of binary strings of length 8 (each character is either 0 or 1). a. How many such strings are there? b. How many begin and end with 0? c. How many begin or end with 0? d. How many have 1 as the second digit? e. How many begin with 111? f. How many contain exactly one 0? g. How many begin with 10 or have a 0 as the third digit? h. How many contain exactly seven 1s? i. How many contain 2 or more 0s?
  3. How many numbers must be chosen from the set {2,4,6,8,10,12,14,16,18,20} to guarantee that at least one pair adds up to 22?
  4. Suppose a hostess wants to invite 6 dinner guests from a list of 14 friends. a. In how many ways can she choose her guest list? b. In how many ways can she choose her guest list of 6 of them are boring and 6 of them are interesting, and she wants to have at least one of each? c. In how many ways can she choose her guests if two of her friends dislike each other and neither will come if the other is present? d. In how many ways can she choose her guests if two of her friends are very fond of each other and one won’t come without the other? e. In how many ways can she seat her 6 friends around a round table? Two seating configurations are considered to be different if one configuration cannot be created from another by rotating the table (or the seats around the table).