JEE Challenger
More from Permutations and Combinations

Seven Digit Numbers with Repeated Digits Zero and One

Let SS be the set of all seven-digit numbers that can be formed using the digits 00, 11 and 22. For example, 22102222210222 is in SS, but 02102220210222 is NOT in SS.

Then the number of elements xx in SS such that at least one of the digits 00 and 11 appears exactly twice in xx, is equal to _______.

Official Numerical Answer762

Step-by-Step Solution

To find the number of elements in SS such that at least one of the digits 00 and 11 appears exactly twice, we use the Principle of Inclusion-Exclusion.

Let:

  • SS be the set of all 77-digit numbers formed using the digits 0,1,20, 1, 2. The first digit d1{1,2}d_1 \in \{1, 2\}, and the remaining six digits d2,d3,,d7{0,1,2}d_2, d_3, \dots, d_7 \in \{0, 1, 2\}.
  • AA be the set of numbers in SS where the digit 00 appears exactly twice.
  • BB be the set of numbers in SS where the digit 11 appears exactly twice.

We wish to find AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|.


Step 1: Calculate A|A| (Digit 00 appears exactly twice)

Since the first digit d10d_1 \neq 0, both 00's must appear in two of the remaining 66 positions:

  • Choose 22 positions out of 66 for the digit 00: (62)=15\binom{6}{2} = 15 ways.
  • The first digit d1d_1 can be chosen from {1,2}\{1, 2\}: 22 choices.
  • The remaining 44 positions can each be chosen from {1,2}\{1, 2\}: 24=162^4 = 16 choices.

A=(62)×2×24=15×2×16=480|A| = \binom{6}{2} \times 2 \times 2^4 = 15 \times 2 \times 16 = 480


Step 2: Calculate B|B| (Digit 11 appears exactly twice)

We consider two disjoint cases based on the first digit d1d_1:

  1. Case 1: d1=1d_1 = 1

    • The remaining one digit 11 must be placed in one of the other 66 positions: (61)=6\binom{6}{1} = 6 ways.
    • The remaining 55 positions are filled using {0,2}\{0, 2\}: 25=322^5 = 32 ways. Ways=1×6×32=192\text{Ways} = 1 \times 6 \times 32 = 192
  2. Case 2: d1=2d_1 = 2

    • Both digits 11 must be placed in two of the other 66 positions: (62)=15\binom{6}{2} = 15 ways.
    • The remaining 44 positions are filled using {0,2}\{0, 2\}: 24=162^4 = 16 ways. Ways=1×15×16=240\text{Ways} = 1 \times 15 \times 16 = 240

B=192+240=432|B| = 192 + 240 = 432


Step 3: Calculate AB|A \cap B| (Both digits 00 and 11 appear exactly twice)

The digit 00 must occupy 22 of the last 66 positions: (62)=15\binom{6}{2} = 15 ways.

  1. Case 1: d1=1d_1 = 1

    • Digit 11 must occupy 11 of the remaining 44 positions: (41)=4\binom{4}{1} = 4 ways.
    • The other 33 positions are filled with digit 22: 13=11^3 = 1 way. Ways=15×4×1=60\text{Ways} = 15 \times 4 \times 1 = 60
  2. Case 2: d1=2d_1 = 2

    • Digit 11 must occupy 22 of the remaining 44 positions: (42)=6\binom{4}{2} = 6 ways.
    • The other 22 positions are filled with digit 22: 12=11^2 = 1 way. Ways=15×6×1=90\text{Ways} = 15 \times 6 \times 1 = 90

AB=60+90=150|A \cap B| = 60 + 90 = 150


Step 4: Combine using the Principle of Inclusion-Exclusion

AB=A+BAB=480+432150=762|A \cup B| = |A| + |B| - |A \cap B| = 480 + 432 - 150 = 762

The number of elements in SS satisfying the given condition is 762762.

Seven Digit Numbers with Repeated Digits Zero and One | Mathematics PYQ Solution - JEE Challenger