Homework 7
Donna Ball
HW 7
4.6
1.) a. Length is 6 and the password must contain at least one digit.
– 1,867,866,560 (36^6 - 26^6)
b. Length is 6 and the password must contain at least one digit and at least one letter.
– 1,866,866,560 (36^6 - 26^6 - 10^6)
2.) a. How many 5-card hands have at least one club?
– 2,023,203 (C(52, 5) – C(39, 5))
b. How many 5-card hands have at least two cards with the same rank?
– 1,098,240
3.) a. How many 8-bit strings have at least two consecutive 0's or two consecutive 1's?
– 254 (2^8 - 2)
b. How many 8-bit strings do not begin with 000?
– 224 (2^8 - 2^5)
4.) a. How many ways are there for the wedding party to line up in which the bride is not
next to the groom?
– 2,903,040 (10! - 2*9!)
b. How many ways are there for the wedding party to line up if the groom is not in the
leftmost position?
– 3,265,920 (10! - 9!)
c. How many ways are there for the wedding party to line up if the groom is not at one end
(i.e. in the leftmost or rightmost positions)?
– 2,903,040 (10! - 2*9!)
4.7
1.) a. NUMBER
– 720 (6!)
b. DISCRETE
This study source was downloaded by 100000900706475 from CourseHero.com on 10-07-2025 23:37:54 GMT -05:00
https://www.coursehero.com/file/21098882/Homework-7/
Donna Ball
HW 7
4.6
1.) a. Length is 6 and the password must contain at least one digit.
– 1,867,866,560 (36^6 - 26^6)
b. Length is 6 and the password must contain at least one digit and at least one letter.
– 1,866,866,560 (36^6 - 26^6 - 10^6)
2.) a. How many 5-card hands have at least one club?
– 2,023,203 (C(52, 5) – C(39, 5))
b. How many 5-card hands have at least two cards with the same rank?
– 1,098,240
3.) a. How many 8-bit strings have at least two consecutive 0's or two consecutive 1's?
– 254 (2^8 - 2)
b. How many 8-bit strings do not begin with 000?
– 224 (2^8 - 2^5)
4.) a. How many ways are there for the wedding party to line up in which the bride is not
next to the groom?
– 2,903,040 (10! - 2*9!)
b. How many ways are there for the wedding party to line up if the groom is not in the
leftmost position?
– 3,265,920 (10! - 9!)
c. How many ways are there for the wedding party to line up if the groom is not at one end
(i.e. in the leftmost or rightmost positions)?
– 2,903,040 (10! - 2*9!)
4.7
1.) a. NUMBER
– 720 (6!)
b. DISCRETE
This study source was downloaded by 100000900706475 from CourseHero.com on 10-07-2025 23:37:54 GMT -05:00
https://www.coursehero.com/file/21098882/Homework-7/