Question
Let , where is a large positive integer greater than 1000. Let be a positive integer less than . Let be subsets of with and . We say that a permutation of separates from if one of the following is true.
- All members of appear in the permutation before any of the members of .
- All members of appear in the permutation before any of the members of .
How many permutations of separate from ?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2023 answer key
Solution
Use combinatorics to choose positions and orderings for subsets and .
We want to construct a permutation of of size separating from , where and :
- The total number of elements in is . In any permutation of elements, we choose positions among the available slots in ways.
- The remaining elements of can be placed in the remaining slots in ways.
- For the selected positions:
- Case 1 (All before all ): The first of these positions must be filled by elements of ( ways), and the remaining positions by elements of ( ways). This gives ways.
- Case 2 (All before all ): The first positions are filled by ( ways) and the remaining by ( ways). This gives ways.
- Since , these two cases are mutually exclusive.
- Combining these gives:
Thus, Option (D) is correct.
Option (D)
Omitting the factor of 2 (accounting only for before and forgetting before ).
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 48 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.