Sigma Percentile
JEE Advanced
LEVELJEE Main

Animated Solution for Mathematics - Permutations and Combinations: There are four balls of different colours and four boxes of colours, same as those of the balls. The number of ways in which the balls, one each in a box, could be placed such that a ball does not go to a box of its own colour is .........

Enter Numerical Value:

Visualized Solution

Visualizing the Setup

  • Given: balls and boxes of matching colors.
  • Goal: Place exactly one ball in each box.

The Constraint

  • Constraint: No ball should go into the box of its own color.
  • This means the red ball cannot go into the red box, and so on.

Defining Derangement

  • A Derangement () is a permutation where no element appears in its original position.
  • The formula is:

Substitution for

  • We have objects.
  • Substitute into the formula:

Simplifying the First Terms

  • Look at the first two terms in the bracket:
  • Since and , this becomes .
  • These terms always cancel out in any derangement!

Expanding the Factorials

  • Calculate .
  • Expand the remaining denominators: , , .
  • The expression becomes:

Distributing the Multiplier

  • Multiply with each term inside the bracket.

Final Calculation

  • Perform the final addition and subtraction:
  • There are ways to place the balls such that none are in their matching box.

Pro-Tip for JEE

  • Key Takeaway: .
  • Memorizing small derangement values saves time:
  • , , , ,

The Sigma Insight: Derangement Principle

Solution Diagram

The Art of Perfect Mismatch

Mastering Derangements
Welcome, future engineer! Today, we are diving into a problem that sounds deceptively simple but hides a profound combinatorial truth.
Imagine you are standing in a room with four colored balls—Red, Blue, Green, and Orange—and four corresponding boxes. Your goal is to place exactly one ball in each box, but with a twist: no ball is allowed to rest in the box of its own color.
This is not just a puzzle; it is the gateway to understanding the Derangement—a fundamental concept in probability and combinatorics that frequently appears in JEE Advanced.

Phase 1

Visualizing the Constraint
Why is this hard? If we had no constraints, the number of ways to arrange four balls in four boxes would simply be .
But the constraint—that no ball can be in its own box—acts like a filter. It removes the 'identity' permutation (where everything is correct) and many other 'partially correct' permutations.
We are looking for the total number of permutations where the set of fixed points is empty. In mathematical terms, we are looking for the number of derangements, denoted as . For , we are hunting for .

Phase 2

The Inclusion-Exclusion Principle
To solve this, we use the Principle of Inclusion-Exclusion. We start with the total number of permutations () and subtract the cases where at least one ball is in the correct box.
But wait! If we subtract cases where the Red ball is in the Red box, we might have over-subtracted cases where both the Red and Blue balls are in their correct boxes. We must add those back, then subtract the cases where three are correct, and so on.
This leads us to the elegant formula:
This formula is the heartbeat of the problem. It accounts for all the overlaps and dependencies that make simple multiplication impossible.

Phase 3

The Calculation
Let us apply this to our specific case, . Substituting into our formula, we get:
We know that and . Therefore, the first two terms are .
This is a beautiful, universal property of derangements: the first two terms always cancel out! We are left with:
Distributing the into the parentheses makes the arithmetic trivial:

The Takeaway

There are exactly 9 ways to arrange these balls such that none are in their matching box. It is a small, elegant number, but the journey to get there taught us about the power of the Inclusion-Exclusion Principle.
As a pro-tip for your JEE preparation, do not just memorize the formula; memorize the sequence of derangements: .
Having these at your fingertips will save you precious seconds in the exam hall. Keep practicing, keep visualizing, and remember: even when everything seems to be in the wrong place, there is a beautiful mathematical order governing the chaos.

Similar Questions