4.6.1 problem 79

(a)
Let be the number of guesses made by the hacker. Then, .
(b)
Suppose is the sequence of passwords sampled by the hacker. Since, every permutation of the words is equally likely, the probability that the correct password is is . Then .
(c)
Both and are positively sloped lines, intersecting at . For , . Thus, for all . This makes intuitive sense since when the hacker samples passwords without replacement, the number of possible passwords reduces.
(d)
With replacement, for and .

In the case of sampling without replacement, since all orderings of the passwords sampled by the hacker are equally likely, for , and .