1.3.2 problem 26

(a)
The problem is isomorphic (having same structure) to the birthday problem. When sampling with replacement, each person corresponds to a date in the birthday problem, and the size of sample corresponds to the number of people in birthday problem. Hence, taking a random sample of from a population of a million corresponds to asking a thousand people their birth date where there are a total of a million dates. Number of ways to take such a sample is where is size of population. Similarly, number of ways to take sample without replacement corresponds to number of ways of having no birthday match in that situation:
(b)

where .