I would like to ask help regarding an example given in the book of V. Rohatgi and A. Saleh. I think this is a variant of the birthday problem. Here it goes:
Consider a class of $r$ students. The birthdays of these $r$ students form a sample of size $r$ from the 365 days in the year. Next suppose that each of the $r$ students is asked for his or her birth date in order, with the instruction that as soon as a student hears his or her birth date the student is to raise a hand. Let us compute the probability that a hand is first raised when the $k^{th}$ ($k = 1, 2, $...$ , r$) student is asked his or her birth date. Let $p_k$ be the probability that the procedure terminates at the $k_{th}$ student. Then $$p_1 = 1-\left(\frac{364}{365}\right)^{r-1}$$ and $$p_k=\frac{_{365}P_{k-1}}{365^{k-1}}\left(1-\frac{k-1}{365}\right)^{r-k+1}\left[1-\left(\frac{365-k}{365-k+1}\right)^{r-k}\right], k=2,3,...,r$$
What I would like to ask then is how were these answers obtained? I think it would be better that someone help me in understanding the problem "concretely" since I actually cannot get the problem. Thanks.