A) What is the probability that the first slot ends up empty?
ans:- => 1 -
(probability of filled up first slot)
$ => 1 - (1/m)$
for n element :- $[1-(1/m)] ^ n$
B) What is the expected number of slots that end up not being empty?
ans:- suppose expected number of slots are L
then,
Probability to fill 1 slots = $[ 1- (1/m) ] ^ n$
for L slot => $L* [ { 1-(1/m) }^n ]$