Here in this question we want to find the expected number of trips made by the caretaker to feed one of the unfed (n-k) cats.
Let us assume Success = Caretaker feeds at one of (n-k) unfed cats
AND Failure = Caretaker feeds one of k fed cats
So, the probability he feeds one of the (n-k) unfed cats is (n-k)/n = p (say) ( probability of success)
and the probability he feeds one of the k cats is k/n = q (say) (probability of failure)
Let us assume that X is the random variable of the number of trips made until the first success comes.
Suppose X=k then the caretaker feeds one of the unfed (n-k) cats at the kth trip.
Now, P{X=k} = qk-1p
So, E[X] =∞∑k=1 kqk-1 p
= (p/q) ∞∑k=0 kqk
= p/q * ( q/(1-q)2) ) ( using the formula ∞∑x=0 xax = (a/(1-a)2 )
= p/q * q/p2
= 1/p.
Thus the expected number of trips to feed one unfed cat is 1/p = 1/ ( (n-k)/n ) = n/(n-k)
So, the required expected number of trips made by the caretaker to feed one unfed cat is n/(n-k) (ANSWER)