Consider a hash table with $n$ slots that uses chaining for collision resolution, table is initially empty. What is the probability that after $4$ keys are inserted then atleast a chain of size $3$ is created, when the value of $n=9$___________
They have done like
Chain of size $4$ is $1\times \frac{1}{n}\times \frac{1}{n}\times \frac{1}{n}=\frac{1}{n^{3}}$
and Chain of size $3$ is $1\times \frac{1}{n}\times \frac{1}{n}\times \frac{n-1}{n}=\frac{n-1}{n^{3}}$
but my question is , why will it not Chain of size $4$ is $ \frac{1}{n}\times \frac{1}{n}\times \frac{1}{n}\times \frac{1}{n}=\frac{1}{n^{4}}$
and same for chain of size $3??$
Plz chk it