Seven people enter a lift. The lift stops only at three floors (which are unspecified). 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 this can happen?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. 1806
Explanation
Each of the 7 people chooses one of the 3 floors, and every floor must be chosen: the number of onto functions = 3⁷ − 3·2⁷ + 3·1⁷ = 2187 − 384 + 3 = 1806.
More Discrete Structures and Optimization questions
- Consider: A. A group can have zero elements. B. A group cannot have any idempotent element except the identity. C. An isomorphism from a gr…
- The relation R = {(1, 3), (1, 1), (3, 1), (1, 2), (3, 3), (4, 4)} {1, 2, 3, 4} defined in is ____
- The negation of "Some students like hockey" is:
- A relation ' R ' is defined on ordered pairs of integers as (x, y) R(u, v) if x<u and y>v. Then R is
- Consider the Graph below: How many spanning trees can be found?
- Match the List-I and List-II