A particular floor of a newly built dorm for undergraduate students has n rooms, and…
- User
A particular floor of a newly built dorm for undergraduate students has n rooms, and each room is equipped with a simple digital lock on the door. Tenants can set a passcode of 2 digits from 00 to 99 and the n tenants set the passcodes for their own doors independently. Find the value of n if it is known that the probability for the n passcodes to be all different is 0.75. Show your working.
- Assistant
There are 100 possibilities for each passcode, so there are 100^n possible ways to assign passcodes to the n doors. We will count the number of bad cases, which is the number of ways to assign passcodes with at least one duplicated passcode, and use complementary probability to compute the answer.
For bad cases, consider the problem of distributing n + 1 balls -- each representing a passcode -- into 100 boxes, with at least one empty box since there is one unused passcode that hasn't been assigned. Using the ball-and-urn argument, this is the same as the number of ways to distribute n + 1 balls into 100 boxes, and then subtracting the 100 possibilities for a box to remain empty. By stars and bars, there are ways to distribute the balls, giving a total of bad ways to assign passcodes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.