JEE Main 2026 Mathematics question
A person has three different bags and four different books. The number of ways, in which he can put these books in the bags so that no bag is empty, is:
Answer: (B)
Solution
This counts onto functions from 4 books to 3 bags: 3⁴−3·2⁴+3=36.