All mock tests are FREE till 31 December — register to save your progress
Unit 1 · Discrete Structures and Optimization Paper 2 CS · December 2022 (Shift 1)

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