Seven Digit Numbers with Repeated Digits Zero and One
Let be the set of all seven-digit numbers that can be formed using the digits , and . For example, is in , but is NOT in .
Then the number of elements in such that at least one of the digits and appears exactly twice in , is equal to _______.
Official Numerical Answer762
Topics & Concepts
Step-by-Step Solution
To find the number of elements in such that at least one of the digits and appears exactly twice, we use the Principle of Inclusion-Exclusion.
Let:
- be the set of all -digit numbers formed using the digits . The first digit , and the remaining six digits .
- be the set of numbers in where the digit appears exactly twice.
- be the set of numbers in where the digit appears exactly twice.
We wish to find .
Step 1: Calculate (Digit appears exactly twice)
Since the first digit , both 's must appear in two of the remaining positions:
- Choose positions out of for the digit : ways.
- The first digit can be chosen from : choices.
- The remaining positions can each be chosen from : choices.
Step 2: Calculate (Digit appears exactly twice)
We consider two disjoint cases based on the first digit :
-
Case 1:
- The remaining one digit must be placed in one of the other positions: ways.
- The remaining positions are filled using : ways.
-
Case 2:
- Both digits must be placed in two of the other positions: ways.
- The remaining positions are filled using : ways.
Step 3: Calculate (Both digits and appear exactly twice)
The digit must occupy of the last positions: ways.
-
Case 1:
- Digit must occupy of the remaining positions: ways.
- The other positions are filled with digit : way.
-
Case 2:
- Digit must occupy of the remaining positions: ways.
- The other positions are filled with digit : way.
Step 4: Combine using the Principle of Inclusion-Exclusion
The number of elements in satisfying the given condition is .