[Math] Probability Question – An elevator & 5 Passengers

combinationsprobability

I'm working on this problem:

An elevator in a building starts with 5 passengers and stops at seven
7 floors. If each passenger is equally likely to get an any floor and
all the passengers leave independently of each other, what is the
probability that no two passengers will get off at the same floor?

I figure you could do 7 P 5 – since the first guy has 7 floors he can get off on, the second 6, etc. But do I need to account for the order that the people can choose their floor, and therefore multiply that by 5 factorial? Or am I approaching this incorrectly in the first place?

Thanks

Best Answer

The number of ways to assing $7$ floors to $5$ passengers is $7 \cdot 7 \cdot 7 \cdot 7 \cdot7$ beacuse for each passenger you can choose one of the $7$ floors.

The number of ways to assign $7$ floors to $5$ passengers without repetition of floors is $7 \cdot 6 \cdot5\cdot 4\cdot3$ because for the first passenger you have $7$ option, for the second you will have $6$ and so on. Note that this number count all possible orders betwen passengers too.

Then, you will guess it, the result is

$$\frac{7 \cdot 6 \cdot5\cdot 4\cdot3}{7^5}.$$