Lift Problem

Seven distinct people enter a lift. The lift stops at three (unspecified) floors. At each of the three floors, no one enters the lift, but at least one person leaves the lift. After the three floor stops, the lift is empty. In how many ways can this happen?


The answer is 1806.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Let's call the floors A, B and C and number the persons from 1 to 7. Then, we have to count the number of maps f : { 1 , 2 , 3 , 4 , 5 , 6 , 7 } { A , B , C } f:\{1,2,3,4,5,6,7\}\to\{A,B,C\} such that each value A, B and C is taken at least once (i.e., surjective functions). Using inclusion-exclusion principle, the total number of maps is 3 7 3^7 , those which avoid one specific value are 2 7 2^7 , those which avoid two specific values are only one (the constant function taking the third value). Since there are 3 subsets of { A , B , C } \{A,B,C\} with 1 element and 3 subsets with 2 elements, we get that the number is 3 7 3 2 7 + 3 1 = 1806 . 3^7-3\cdot 2^7+3\cdot 1=\boxed{1806}.

so different person going out counts as different way? i thought the idea was how many person out at floor 1, how many at floor 2 ect...

Hai Nam Le - 7 years, 3 months ago

I tried to solve it by partitioning number 7 among the three floors 7 = 1,1,5 ---> 7 6 5! * 3 ways
= 1,2,4 ----> 7 (30) 4! * 6
= 1,3,3 ----> 7 120 3! * 3 = 2,2,3 ---> 42 * 20 * 3! * 3

  this will give 75600


Ossama Ismail - 7 years, 3 months ago

What do you mean by avoiding one specific value and two specific value?

Ashley Shamidha - 3 years, 7 months ago
Vinay Acharya
Mar 10, 2014

Another method: 7 can be split into 3 non-zero parts in the following ways:

  • 1, 1, 5 -->7 * 6 * 3!/2 = 126
  • 1, 2, 4 --> 7 * 6c2 * 3! = 630
  • 1, 3, 3 --> 7 * 6c3 * 3!/2 = 420
  • 2, 2, 3 --> 7c2 * 5c2 * 3!/2 = 630

126 + 630 + 420 + 630 = 1806

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...