
Seven people leave their bags outside temple and while returning after worshiping the deity, picked one bag each at random. In how many ways at least one and at most three of them get their correct bags?
A. \[{}^7{C_3} \cdot 9 + {}^7{C_5} \cdot 44 + {}^7{C_1} \cdot 265\]
B. \[{}^7{C_6} \cdot 265 + {}^7{C_5} \cdot 9 + {}^7{C_7} \cdot 44\]
C. \[{}^7{C_5} \cdot 9 + {}^7{C_2} \cdot 44 + {}^7{C_1} \cdot 265\]
D. None of these
Answer
224.7k+ views
Hint: There will be three cases that need to be considered. First case one person can pick his correct bag. Second case two person can pick their correct bags. Third case three person pick their correct bags. Add the number of ways of the above case to get the correct answer.
Formula Used: The derangement formula for n objects is \[n!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \cdots + \dfrac{1}{{n!}}} \right)\] when n is even. Or \[n!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \cdots - \dfrac{1}{{n!}}} \right)\] when n is odd.
Complete step by step solution: There are three possible situations.
First case: only one person picks the correct bag and the rest are not.
Second case: Two persons pick the correct bag and the rest are not.
Third case: Three persons pick the correct bag and the rest are not.
First case:
The number of ways that one person picks the correct bag and the rest of the 6 are not is
\[{}^7{C_1} \times \]( derangement of 6 object)
\[ = {}^7{C_1} \times 6!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}} - \dfrac{1}{{5!}} + \dfrac{1}{{6!}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}} - \dfrac{1}{{120}} + \dfrac{1}{{720}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {\dfrac{{360 - 120 + 30 - 6 + 1}}{{720}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {\dfrac{{360 - 120 + 30 - 6 + 1}}{{720}}} \right)\]
\[ = {}^7{C_1} \cdot 6!\left( {\dfrac{{265}}{{720}}} \right)\]
\[ = {}^7{C_1} \times 265\]
second case:
The number of ways that two persons pick the correct bag and the rest of the 5 are not is
\[{}^7{C_2} \times \]( derangement of 5 object)
\[ = {}^7{C_2} \times 5!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}} - \dfrac{1}{{5!}}} \right)\]
\[ = {}^7{C_2} \times 5!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}} - \dfrac{1}{{120}}} \right)\]
\[ = {}^7{C_2} \times 5!\left( {\dfrac{{60 - 20 + 5 - 1}}{{5!}}} \right)\]
\[ = {}^7{C_2} \times 44\]
Third case:
The number of ways that three persons pick the correct bag and the rest of the 4 are not is
\[{}^7{C_3} \times \]( derangement of 4 object)
\[ = {}^7{C_3} \times 4!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}}} \right)\]
\[ = {}^7{C_3} \times 4!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}}} \right)\]
\[ = {}^7{C_3} \times 4!\left( {\dfrac{{12 - 4 + 1}}{{24}}} \right)\]
\[ = {}^7{C_3} \times 9\]
The total number of ways at least one and at most three of them get their correct bags is
\[ = {}^7{C_1} \times 265 + {}^7{C_2} \times 44 + {}^7{C_3} \times 9\]
Option ‘A’ is correct
Note: Students often do mistake to find the ways. They did not multiply derangement with the combination. Here we have to multiply derangement.
Formula Used: The derangement formula for n objects is \[n!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \cdots + \dfrac{1}{{n!}}} \right)\] when n is even. Or \[n!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \cdots - \dfrac{1}{{n!}}} \right)\] when n is odd.
Complete step by step solution: There are three possible situations.
First case: only one person picks the correct bag and the rest are not.
Second case: Two persons pick the correct bag and the rest are not.
Third case: Three persons pick the correct bag and the rest are not.
First case:
The number of ways that one person picks the correct bag and the rest of the 6 are not is
\[{}^7{C_1} \times \]( derangement of 6 object)
\[ = {}^7{C_1} \times 6!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}} - \dfrac{1}{{5!}} + \dfrac{1}{{6!}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}} - \dfrac{1}{{120}} + \dfrac{1}{{720}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {\dfrac{{360 - 120 + 30 - 6 + 1}}{{720}}} \right)\]
\[ = {}^7{C_1} \times 6!\left( {\dfrac{{360 - 120 + 30 - 6 + 1}}{{720}}} \right)\]
\[ = {}^7{C_1} \cdot 6!\left( {\dfrac{{265}}{{720}}} \right)\]
\[ = {}^7{C_1} \times 265\]
second case:
The number of ways that two persons pick the correct bag and the rest of the 5 are not is
\[{}^7{C_2} \times \]( derangement of 5 object)
\[ = {}^7{C_2} \times 5!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}} - \dfrac{1}{{5!}}} \right)\]
\[ = {}^7{C_2} \times 5!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}} - \dfrac{1}{{120}}} \right)\]
\[ = {}^7{C_2} \times 5!\left( {\dfrac{{60 - 20 + 5 - 1}}{{5!}}} \right)\]
\[ = {}^7{C_2} \times 44\]
Third case:
The number of ways that three persons pick the correct bag and the rest of the 4 are not is
\[{}^7{C_3} \times \]( derangement of 4 object)
\[ = {}^7{C_3} \times 4!\left( {1 - \dfrac{1}{{1!}} + \dfrac{1}{{2!}} - \dfrac{1}{{3!}} + \dfrac{1}{{4!}}} \right)\]
\[ = {}^7{C_3} \times 4!\left( {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6} + \dfrac{1}{{24}}} \right)\]
\[ = {}^7{C_3} \times 4!\left( {\dfrac{{12 - 4 + 1}}{{24}}} \right)\]
\[ = {}^7{C_3} \times 9\]
The total number of ways at least one and at most three of them get their correct bags is
\[ = {}^7{C_1} \times 265 + {}^7{C_2} \times 44 + {}^7{C_3} \times 9\]
Option ‘A’ is correct
Note: Students often do mistake to find the ways. They did not multiply derangement with the combination. Here we have to multiply derangement.
Recently Updated Pages
JEE Main 2026 Session 1 Correction Window Started: Check Dates, Edit Link & Fees

JEE Isolation, Preparation and Properties of Non-metals Important Concepts and Tips for Exam Preparation

Isoelectronic Definition in Chemistry: Meaning, Examples & Trends

Ionisation Energy and Ionisation Potential Explained

Iodoform Reactions - Important Concepts and Tips for JEE

Introduction to Dimensions: Understanding the Basics

Trending doubts
JEE Main 2026: City Intimation Slip and Exam Dates Released, Application Form Closed, Syllabus & Eligibility

JEE Main 2026 Application Login: Direct Link, Registration, Form Fill, and Steps

Understanding the Angle of Deviation in a Prism

Hybridisation in Chemistry – Concept, Types & Applications

How to Convert a Galvanometer into an Ammeter or Voltmeter

Ideal and Non-Ideal Solutions Explained for Class 12 Chemistry

Other Pages
JEE Advanced Marks vs Ranks 2025: Understanding Category-wise Qualifying Marks and Previous Year Cut-offs

JEE Advanced 2026 - Exam Date (Released), Syllabus, Registration, Eligibility, Preparation, and More

JEE Advanced 2026 - Exam Date (Released), Syllabus, Registration, Eligibility, Preparation, and More

NCERT Solutions for Class 11 Maths Chapter 10 Conic Sections

NCERT Solutions For Class 11 Maths Chapter 12 Limits And Derivatives

Understanding Atomic Structure for Beginners

